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