##// END OF EJS Templates
frequency field have been added...
Fiorella Quino -
r268:3e4bbe951750
parent child
Show More
@@ -1,100 +1,104
1 1 {% extends "base.html" %}
2 2 {% load bootstrap3 %}
3 3 {% load static %}
4 4 {% load main_tags %}
5 5 {% block extra-head %}
6 6 <link href="{% static 'css/bootstrap-datetimepicker.min.css' %}" media="screen" rel="stylesheet">
7 7 {% endblock %}
8 8
9 9 {% block exp-active %}active{% endblock %}
10 10
11 11 {% block content-title %}{{title}}{% endblock %}
12 12 {% block content-suptitle %}{{suptitle}}{% endblock %}
13 13
14 14 {% block content %}
15 15
16 16 {% block menu-actions %}
17 17 <span class=" dropdown pull-right">
18 18 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-menu-hamburger gi-2x" aria-hidden="true"></span></a>
19 19 <ul class="dropdown-menu" role="menu">
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>
27 27 <li><a href="{% url 'url_mix_experiment' experiment.id %}"><span class="glyphicon glyphicon-random" aria-hidden="true"></span> Mix RC Configurations </a></li>
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>
41 45
42 46 <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
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>
55 59 {% if item.device.device_type.name == 'cgs' %}
56 60 <i class="fa fa-2x fa-clock-o"></i>
57 61 {% elif item.device.device_type.name == 'rc' %}
58 62 <i class="fa fa-2x fa-microchip"></i>
59 63 {% elif item.device.device_type.name == 'abs' %}
60 64 <i class="fa fa-2x fa-podcast"></i>
61 65 {% elif item.device.device_type.name == 'jars' %}
62 66 <i class="fa fa-2x fa-desktop"></i>
63 67 {% elif item.device.device_type.name == 'dds' %}
64 68 <i class="fa fa-2x fa-bar-chart"></i>
65 69 {% else %}
66 70 <i class="fa fa-3x fa-puzzle-piece"></i>
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 %}
79 83
80 84 {% block sidebar%}
81 85 {% include "sidebar_devices.html" %}
82 86 {% endblock %}
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