@@ -90,17 +90,19 | |||
|
90 | 90 | <div id="page" class="row" style="min-height:600px"> |
|
91 | 91 | |
|
92 | 92 | {% if no_sidebar %} |
|
93 | <div class="col-md-0 hidden-xs hidden-sm" role="complementary"> | |
|
93 | <div class="col-md-0 hidden-xs hidden-sm" role="complementary"></div> | |
|
94 | 94 | |
|
95 | 95 | {% else %} |
|
96 | 96 | <div class="col-md-3 hidden-xs hidden-sm" role="complementary"> |
|
97 | <br><br> | |
|
98 | <div id="sidebar"> | |
|
99 | {% block sidebar%} | |
|
100 | {% include "sidebar_devices.html" %} | |
|
101 | {% endblock %} | |
|
102 | </div> | |
|
103 | </div> | |
|
97 | 104 | {% endif %} |
|
98 | <br><br> | |
|
99 | <div id="sidebar"> | |
|
100 | {% block sidebar%} | |
|
101 | {% endblock %} | |
|
102 | </div> | |
|
103 | </div> | |
|
105 | ||
|
104 | 106 | |
|
105 | 107 | {% if no_sidebar %} |
|
106 | 108 | <div class="col-md-12 col-xs-12" role="main"> |
@@ -17,7 +17,7 | |||
|
17 | 17 | <li><a href="{{ dev_conf.get_absolute_url_edit }}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li> |
|
18 | 18 | <li><a href="{% url 'url_delete_dev_conf' dev_conf.id %}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Delete</a></li> |
|
19 | 19 | <li><a href="{{ dev_conf.get_absolute_url_import }}"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Import </a></li> |
|
20 |
<li><a href="{{ dev_conf.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li> |
|
|
20 | <li><a href="{{ dev_conf.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li> | |
|
21 | 21 | {% block extra-menu-actions %} |
|
22 | 22 | {% endblock %} |
|
23 | 23 | <li><a>----------------</a></li> |
@@ -30,16 +30,16 | |||
|
30 | 30 | {% endif %} |
|
31 | 31 | <li><a href="{{ dev_conf.get_absolute_url_write }}"><span class="glyphicon glyphicon-download" aria-hidden="true"></span> Write</a></li> |
|
32 | 32 | <li><a href="{{ dev_conf.get_absolute_url_read }}"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> Read</a></li> |
|
33 | </ul> | |
|
33 | </ul> | |
|
34 | 34 | </span> |
|
35 | 35 | {% endblock %} |
|
36 | 36 | |
|
37 | 37 | <table class="table table-bordered"> |
|
38 | 38 | <tr> |
|
39 | 39 | <th>Status</th> |
|
40 | <td class="text-{{dev_conf.device.status_color}}"> {{dev_conf.device.get_status_display}} </td> | |
|
40 | <td class="text-{{dev_conf.device.status_color}}"> {% if dev_conf.device.device_type.name == 'abs' %} {{connected_modules}} {% else %} {{dev_conf.device.get_status_display}}{% endif %} </td> | |
|
41 | 41 | </tr> |
|
42 | ||
|
42 | ||
|
43 | 43 | {% for key in dev_conf_keys %} |
|
44 | 44 | <tr> |
|
45 | 45 | <th>{% get_verbose_field_name dev_conf key %}</th> |
@@ -53,17 +53,15 | |||
|
53 | 53 | |
|
54 | 54 | {% endblock %} |
|
55 | 55 | |
|
56 | {% block sidebar%} | |
|
57 | {% include "sidebar_devices.html" %} | |
|
58 | {% endblock %} | |
|
56 | ||
|
59 | 57 | |
|
60 | 58 | {% block extra-js%} |
|
61 | 59 | <script type="text/javascript"> |
|
62 | ||
|
60 | ||
|
63 | 61 | $("#bt_edit").click(function() { |
|
64 | 62 | document.location = "{{ dev_conf.get_absolute_url_edit }}"; |
|
65 | 63 | }); |
|
66 | ||
|
64 | ||
|
67 | 65 | $("#bt_read").click(function() { |
|
68 | 66 | document.location = "{{ dev_conf.get_absolute_url_read }}"; |
|
69 | 67 | }); |
@@ -79,6 +77,6 | |||
|
79 | 77 | $("#bt_export").click(function() { |
|
80 | 78 | document.location = "{{ dev_conf.get_absolute_url_export }}"; |
|
81 | 79 | }); |
|
82 | ||
|
80 | ||
|
83 | 81 | </script> |
|
84 | {% endblock %} No newline at end of file | |
|
82 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now