@@ -20,7 +20,7 | |||||
20 | <li><a href="{% url 'url_edit_experiment' experiment.id %}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li> |
|
20 | <li><a href="{% url 'url_edit_experiment' experiment.id %}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li> | |
21 | <li><a href="{% url 'url_delete_experiment' experiment.id %}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Delete</a></li> |
|
21 | <li><a href="{% url 'url_delete_experiment' experiment.id %}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Delete</a></li> | |
22 | <li><a href="{{ experiment.get_absolute_url_import }}"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Import </a></li> |
|
22 | <li><a href="{{ experiment.get_absolute_url_import }}"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Import </a></li> | |
23 |
<li><a href="{{ experiment.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li> |
|
23 | <li><a href="{{ experiment.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li> | |
24 | <li><a>----------------</a></li> |
|
24 | <li><a>----------------</a></li> | |
25 | <li><a href="{{ experiment.get_absolute_url_start}}"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Start</a></li> |
|
25 | <li><a href="{{ experiment.get_absolute_url_start}}"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Start</a></li> | |
26 | <li><a href="{{ experiment.get_absolute_url_stop }}"><span class="glyphicon glyphicon-stop" aria-hidden="true"></span> Stop</a></li> |
|
26 | <li><a href="{{ experiment.get_absolute_url_stop }}"><span class="glyphicon glyphicon-stop" aria-hidden="true"></span> Stop</a></li> | |
@@ -28,13 +28,17 | |||||
28 | <li><a href="{% url 'url_add_dev_conf' experiment.id %}"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> Add Configuration</a></li> |
|
28 | <li><a href="{% url 'url_add_dev_conf' experiment.id %}"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> Add Configuration</a></li> | |
29 | <li><a href="{% url 'url_sum_experiment' experiment.id %}"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> Summary</a></li> |
|
29 | <li><a href="{% url 'url_sum_experiment' experiment.id %}"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> Summary</a></li> | |
30 |
|
30 | |||
31 | </ul> |
|
31 | </ul> | |
32 | </span> |
|
32 | </span> | |
33 | {% endblock %} |
|
33 | {% endblock %} | |
34 |
|
34 | |||
35 | <table class="table table-bordered"> |
|
35 | <table class="table table-bordered"> | |
36 | {% for key in experiment_keys %} |
|
36 | {% for key in experiment_keys %} | |
37 | <tr><th>{{key|title}}</th><td>{{experiment|attr:key}}</td></tr> |
|
37 | {% if key == 'freq' %} | |
|
38 | <tr><th>Operating Freq. (MHz)</th><td>{{experiment|attr:key}}</td></tr> | |||
|
39 | {% else %} | |||
|
40 | <tr><th>{{key|title}}</th><td>{{experiment|attr:key}}</td></tr> | |||
|
41 | {% endif %} | |||
38 | {% endfor %} |
|
42 | {% endfor %} | |
39 | </table> |
|
43 | </table> | |
40 | <br> |
|
44 | <br> | |
@@ -43,12 +47,12 | |||||
43 |
|
47 | |||
44 | <div class="panel panel-default bootcards-summary"> |
|
48 | <div class="panel panel-default bootcards-summary"> | |
45 | <div class="panel-heading" role="tab"> |
|
49 | <div class="panel-heading" role="tab"> | |
46 |
<h4 class="panel-title"> |
|
50 | <h4 class="panel-title"> | |
47 |
Devices |
|
51 | Devices | |
48 | </h4> |
|
52 | </h4> | |
49 | </div> |
|
53 | </div> | |
50 | <div class="panel-body"> |
|
54 | <div class="panel-body"> | |
51 |
|
55 | |||
52 | {% for item in configurations %} |
|
56 | {% for item in configurations %} | |
53 | <div class="col-xs-6 col-sm-4" style="padding-top:5px;padding-bottom:5px"> |
|
57 | <div class="col-xs-6 col-sm-4" style="padding-top:5px;padding-bottom:5px"> | |
54 | <a class="bootcards-summary-item" href="{{item.get_absolute_url}}"><br> |
|
58 | <a class="bootcards-summary-item" href="{{item.get_absolute_url}}"><br> | |
@@ -67,12 +71,12 | |||||
67 | {%endif%} |
|
71 | {%endif%} | |
68 | <h4>{{item}}<br><small>{{item.device.ip_address}}</small> |
|
72 | <h4>{{item}}<br><small>{{item.device.ip_address}}</small> | |
69 | <span class="label label-{{item.device.status_color}}">{{item.device.get_status_display}}</span> |
|
73 | <span class="label label-{{item.device.status_color}}">{{item.device.get_status_display}}</span> | |
70 |
</h4> |
|
74 | </h4> | |
71 | </a> |
|
75 | </a> | |
72 | </div> |
|
76 | </div> | |
73 | {% endfor %} |
|
77 | {% endfor %} | |
74 |
|
78 | |||
75 |
</div> |
|
79 | </div> | |
76 | </div> |
|
80 | </div> | |
77 | </div> |
|
81 | </div> | |
78 | {% endblock %} |
|
82 | {% endblock %} | |
@@ -83,18 +87,18 | |||||
83 |
|
87 | |||
84 | {% block extra-js%} |
|
88 | {% block extra-js%} | |
85 | <script type="text/javascript"> |
|
89 | <script type="text/javascript"> | |
86 |
|
90 | |||
87 | $(".clickable-row").click(function() { |
|
91 | $(".clickable-row").click(function() { | |
88 | document.location = $(this).data("href"); |
|
92 | document.location = $(this).data("href"); | |
89 | }); |
|
93 | }); | |
90 |
|
94 | |||
91 | $("#bt_edit").click(function() { |
|
95 | $("#bt_edit").click(function() { | |
92 | document.location = "{% url 'url_edit_experiment' experiment.id%}"; |
|
96 | document.location = "{% url 'url_edit_experiment' experiment.id%}"; | |
93 | }); |
|
97 | }); | |
94 |
|
98 | |||
95 | $("#bt_add_conf").click(function() { |
|
99 | $("#bt_add_conf").click(function() { | |
96 | document.location = "{% url 'url_add_dev_conf' experiment.id %}"; |
|
100 | document.location = "{% url 'url_add_dev_conf' experiment.id %}"; | |
97 | }); |
|
101 | }); | |
98 |
|
102 | |||
99 | </script> |
|
103 | </script> | |
100 | {% endblock %} No newline at end of file |
|
104 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now