##// END OF EJS Templates
Export and Send buttons added to templates...
Miguel Urco -
r15:78ae9462c516
parent child
Show More
@@ -17,7 +17,10
17 17 <tr><th>{{key|title}}</th><td>{{campaign|attr:key}}</td></tr>
18 18 {% endfor %}
19 19 </table>
20 <button class="btn btn-primary pull-right" id="bt_edit_campaign">Edit Campaign</button>
20
21 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_export">Export</button>
22 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit">Edit</button>
23
21 24 <br></br>
22 25 <br></br>
23 26
@@ -71,7 +74,7
71 74 document.location = $(this).data("href");
72 75 });
73 76
74 $("#bt_edit_campaign").click(function() {
77 $("#bt_edit").click(function() {
75 78 document.location = "{% url 'url_edit_campaign' campaign.id%}";
76 79 });
77 80
@@ -14,7 +14,9
14 14 <tr><th>{{key|title}}</th><td>{{dev_conf|attr:key}}</td></tr>
15 15 {% endfor %}
16 16 </table>
17 <button class="btn btn-primary pull-right" id="bt_edit_device">Edit Device Conf</button>
17 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_send">Send</button>
18 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_export">Export</button>
19 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit">Edit</button>
18 20 <br></br>
19 21 <br></br>
20 22 {% endblock %}
@@ -26,7 +28,7
26 28 {% block extra-js%}
27 29 <script type="text/javascript">
28 30
29 $("#bt_edit_device").click(function() {
31 $("#bt_edit").click(function() {
30 32 document.location = "{% url 'url_edit_dev_conf' dev_conf.id%}";
31 33 });
32 34
@@ -14,7 +14,7
14 14 <tr><th>{{key|title}}</th><td>{{device|attr:key}}</td></tr>
15 15 {% endfor %}
16 16 </table>
17 <button class="btn btn-primary pull-right" id="bt_edit_device">Edit Device</button>
17 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit_device">Edit</button>
18 18 <br></br>
19 19 <br></br>
20 20 {% endblock %}
@@ -17,7 +17,8
17 17 <tr><th>{{key|title}}</th><td>{{experiment|attr:key}}</td></tr>
18 18 {% endfor %}
19 19 </table>
20 <button class="btn btn-primary pull-right" id="bt_edit_experiment">Edit Experiment</button>
20 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_export">Export</button>
21 <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit">Edit</button>
21 22 <br></br>
22 23 <br></br>
23 24
@@ -65,13 +66,12
65 66 <script src="{% static 'js/moment.min.js' %}"></script>
66 67 <script src="{% static 'js/bootstrap-datetimepicker.min.js' %}"></script>
67 68 <script type="text/javascript">
68 $('.input-group.date').datetimepicker({"format": "YYYY-MM-DD HH:mm"});
69 69
70 70 $(".clickable-row").click(function() {
71 71 document.location = $(this).data("href");
72 72 });
73 73
74 $("#bt_edit_experiment").click(function() {
74 $("#bt_edit").click(function() {
75 75 document.location = "{% url 'url_edit_experiment' experiment.id%}";
76 76 });
77 77
General Comments 0
You need to be logged in to leave comments. Login now