@@ -20,7 +20,7 | |||
|
20 | 20 | <li><a href="{% url 'url_edit_experiment' experiment.id %}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li> |
|
21 | 21 | <li><a href="{% url 'url_delete_experiment' experiment.id %}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Delete</a></li> |
|
22 | 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 | 24 | <li><a>----------------</a></li> |
|
25 | 25 | <li><a href="{{ experiment.get_absolute_url_start}}"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Start</a></li> |
|
26 | 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 | 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 | 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 | 32 | </span> |
|
33 | 33 | {% endblock %} |
|
34 | 34 | |
|
35 | 35 | <table class="table table-bordered"> |
|
36 | 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 | 42 | {% endfor %} |
|
39 | 43 | </table> |
|
40 | 44 | <br> |
@@ -43,12 +47,12 | |||
|
43 | 47 | |
|
44 | 48 | <div class="panel panel-default bootcards-summary"> |
|
45 | 49 | <div class="panel-heading" role="tab"> |
|
46 |
<h4 class="panel-title"> |
|
|
47 |
Devices |
|
|
50 | <h4 class="panel-title"> | |
|
51 | Devices | |
|
48 | 52 | </h4> |
|
49 | 53 | </div> |
|
50 | 54 | <div class="panel-body"> |
|
51 | ||
|
55 | ||
|
52 | 56 | {% for item in configurations %} |
|
53 | 57 | <div class="col-xs-6 col-sm-4" style="padding-top:5px;padding-bottom:5px"> |
|
54 | 58 | <a class="bootcards-summary-item" href="{{item.get_absolute_url}}"><br> |
@@ -67,12 +71,12 | |||
|
67 | 71 | {%endif%} |
|
68 | 72 | <h4>{{item}}<br><small>{{item.device.ip_address}}</small> |
|
69 | 73 | <span class="label label-{{item.device.status_color}}">{{item.device.get_status_display}}</span> |
|
70 |
</h4> |
|
|
74 | </h4> | |
|
71 | 75 | </a> |
|
72 | 76 | </div> |
|
73 | 77 | {% endfor %} |
|
74 | ||
|
75 |
</div> |
|
|
78 | ||
|
79 | </div> | |
|
76 | 80 | </div> |
|
77 | 81 | </div> |
|
78 | 82 | {% endblock %} |
@@ -83,18 +87,18 | |||
|
83 | 87 | |
|
84 | 88 | {% block extra-js%} |
|
85 | 89 | <script type="text/javascript"> |
|
86 | ||
|
90 | ||
|
87 | 91 | $(".clickable-row").click(function() { |
|
88 | 92 | document.location = $(this).data("href"); |
|
89 | 93 | }); |
|
90 | ||
|
94 | ||
|
91 | 95 | $("#bt_edit").click(function() { |
|
92 | 96 | document.location = "{% url 'url_edit_experiment' experiment.id%}"; |
|
93 | 97 | }); |
|
94 | ||
|
98 | ||
|
95 | 99 | $("#bt_add_conf").click(function() { |
|
96 | 100 | document.location = "{% url 'url_add_dev_conf' experiment.id %}"; |
|
97 | 101 | }); |
|
98 | ||
|
102 | ||
|
99 | 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