##// END OF EJS Templates
Task #95: Modulo CGS "no-play" "no-stop"...
Fiorella Quino -
r60:c69d50668166
parent child
Show More
@@ -1,72 +1,74
1 {% extends "base.html" %}
1 {% extends "base.html" %}
2 {% load bootstrap3 %}
2 {% load bootstrap3 %}
3 {% load static %}
3 {% load static %}
4 {% load main_tags %}
4 {% load main_tags %}
5
5
6 {% block conf-active %}active{% endblock %}
6 {% block conf-active %}active{% endblock %}
7
7
8 {% block content-title %}{{title}}{% endblock %}
8 {% block content-title %}{{title}}{% endblock %}
9 {% block content-suptitle %}{{suptitle}}{% endblock %}
9 {% block content-suptitle %}{{suptitle}}{% endblock %}
10
10
11 {% block content %}
11 {% block content %}
12
12
13 <span class=" dropdown pull-right">
13 <span class=" dropdown pull-right">
14 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span> <span class="caret"></span></a>
14 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span> <span class="caret"></span></a>
15 <ul class="dropdown-menu" role="menu">
15 <ul class="dropdown-menu" role="menu">
16 <li><a href="{{ dev_conf.get_absolute_url_edit }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li>
16 <li><a href="{{ dev_conf.get_absolute_url_edit }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li>
17 <li><a href="{{ dev_conf.get_absolute_url_import }}"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Import </a></li>
17 <li><a href="{{ dev_conf.get_absolute_url_import }}"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Import </a></li>
18 <li><a href="{{ dev_conf.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li>
18 <li><a href="{{ dev_conf.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li>
19 <li><a>----------------</a></li>
19 <li><a>----------------</a></li>
20 <li><a href="{{ dev_conf.get_absolute_url_status }}"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Status</a></li>
20 <li><a href="{{ dev_conf.get_absolute_url_status }}"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> Status</a></li>
21 {% if not no_play %}
21 <li><a href="{{ dev_conf.get_absolute_url_start}}"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Start</a></li>
22 <li><a href="{{ dev_conf.get_absolute_url_start}}"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Start</a></li>
22 <li><a href="{{ dev_conf.get_absolute_url_stop }}"><span class="glyphicon glyphicon-stop" aria-hidden="true"></span> Stop</a></li>
23 <li><a href="{{ dev_conf.get_absolute_url_stop }}"><span class="glyphicon glyphicon-stop" aria-hidden="true"></span> Stop</a></li>
24 {% endif %}
23 <li><a href="{{ dev_conf.get_absolute_url_write }}"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Write</a></li>
25 <li><a href="{{ dev_conf.get_absolute_url_write }}"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Write</a></li>
24 <li><a href="{{ dev_conf.get_absolute_url_read }}"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> Read</a></li>
26 <li><a href="{{ dev_conf.get_absolute_url_read }}"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> Read</a></li>
25 </ul>
27 </ul>
26 </span>
28 </span>
27
29
28 <table class="table table-bordered">
30 <table class="table table-bordered">
29 <tr>
31 <tr>
30 <th>Status</th>
32 <th>Status</th>
31 <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>
33 <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>
32 </tr>
34 </tr>
33
35
34 {% for key in dev_conf_keys %}
36 {% for key in dev_conf_keys %}
35 <tr>
37 <tr>
36 <th>{% get_verbose_field_name dev_conf key %}</th>
38 <th>{% get_verbose_field_name dev_conf key %}</th>
37 <td>{{dev_conf|attr:key}}</td>
39 <td>{{dev_conf|attr:key}}</td>
38 </tr>
40 </tr>
39 {% endfor %}
41 {% endfor %}
40 </table>
42 </table>
41
43
42 {% endblock %}
44 {% endblock %}
43
45
44 {% block sidebar%}
46 {% block sidebar%}
45 {% include "sidebar_devices.html" %}
47 {% include "sidebar_devices.html" %}
46 {% endblock %}
48 {% endblock %}
47
49
48 {% block extra-js%}
50 {% block extra-js%}
49 <script type="text/javascript">
51 <script type="text/javascript">
50
52
51 $("#bt_edit").click(function() {
53 $("#bt_edit").click(function() {
52 document.location = "{{ dev_conf.get_absolute_url_edit }}";
54 document.location = "{{ dev_conf.get_absolute_url_edit }}";
53 });
55 });
54
56
55 $("#bt_read").click(function() {
57 $("#bt_read").click(function() {
56 document.location = "{{ dev_conf.get_absolute_url_read }}";
58 document.location = "{{ dev_conf.get_absolute_url_read }}";
57 });
59 });
58
60
59 $("#bt_write").click(function() {
61 $("#bt_write").click(function() {
60 document.location = "{{ dev_conf.get_absolute_url_write }}";
62 document.location = "{{ dev_conf.get_absolute_url_write }}";
61 });
63 });
62
64
63 $("#bt_import").click(function() {
65 $("#bt_import").click(function() {
64 document.location = "{{ dev_conf.get_absolute_url_import }}";
66 document.location = "{{ dev_conf.get_absolute_url_import }}";
65 });
67 });
66
68
67 $("#bt_export").click(function() {
69 $("#bt_export").click(function() {
68 document.location = "{{ dev_conf.get_absolute_url_export }}";
70 document.location = "{{ dev_conf.get_absolute_url_export }}";
69 });
71 });
70
72
71 </script>
73 </script>
72 {% endblock %} No newline at end of file
74 {% endblock %}
General Comments 0
You need to be logged in to leave comments. Login now