##// END OF EJS Templates
git-svn-id: http://jro-dev.igp.gob.pe/svn/jro_hard/radarsys/trunk/webapp@126 aa17d016-51d5-4e8b-934c-7b2bbb1bbe71
git-svn-id: http://jro-dev.igp.gob.pe/svn/jro_hard/radarsys/trunk/webapp@126 aa17d016-51d5-4e8b-934c-7b2bbb1bbe71

File last commit:

r85:d4fe0e132735
r105:7975f3fc3bdd
Show More
dev_conf.html
80 lines | 3.0 KiB | text/html | HtmlDjangoLexer
{% extends "base.html" %}
{% load bootstrap3 %}
{% load static %}
{% load main_tags %}
{% block search-active %}active{% endblock %}
{% block content-title %}{{title}}{% endblock %}
{% block content-suptitle %}{{suptitle}}{% endblock %}
{% block content %}
{% block menu-actions %}
<span class=" dropdown pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-menu-hamburger gi-2x" aria-hidden="true"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ dev_conf.get_absolute_url_edit }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li>
<li><a href="{{ dev_conf.get_absolute_url_import }}"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Import </a></li>
<li><a href="{{ dev_conf.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li>
{% block extra-menu-actions %}
{% endblock %}
<li><a>----------------</a></li>
<li><a href="{{ dev_conf.get_absolute_url_status }}"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Status</a></li>
{% if not no_play %}
<li><a href="{{ dev_conf.get_absolute_url_start}}"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Start</a></li>
<li><a href="{{ dev_conf.get_absolute_url_stop }}"><span class="glyphicon glyphicon-stop" aria-hidden="true"></span> Stop</a></li>
{% endif %}
<li><a href="{{ dev_conf.get_absolute_url_write }}"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Write</a></li>
<li><a href="{{ dev_conf.get_absolute_url_read }}"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> Read</a></li>
</ul>
</span>
{% endblock %}
<table class="table table-bordered">
<tr>
<th>Status</th>
<td>{%if status != "No connected" %} <span class="glyphicon glyphicon-ok-circle text-success" aria-hidden="true"></span> {{status}} {% else %} <span class="glyphicon glyphicon-remove-circle text-danger" aria-hidden="true"></span> {{status}} {% endif %}</td>
</tr>
{% for key in dev_conf_keys %}
<tr>
<th>{% get_verbose_field_name dev_conf key %}</th>
<td>{{dev_conf|attr:key}}</td>
</tr>
{% endfor %}
</table>
{% block extra-content %}
{% endblock %}
{% endblock %}
{% block sidebar%}
{% include "sidebar_devices.html" %}
{% endblock %}
{% block extra-js%}
<script type="text/javascript">
$("#bt_edit").click(function() {
document.location = "{{ dev_conf.get_absolute_url_edit }}";
});
$("#bt_read").click(function() {
document.location = "{{ dev_conf.get_absolute_url_read }}";
});
$("#bt_write").click(function() {
document.location = "{{ dev_conf.get_absolute_url_write }}";
});
$("#bt_import").click(function() {
document.location = "{{ dev_conf.get_absolute_url_import }}";
});
$("#bt_export").click(function() {
document.location = "{{ dev_conf.get_absolute_url_export }}";
});
</script>
{% endblock %}