@@ -17,7 +17,10 | |||||
17 | <tr><th>{{key|title}}</th><td>{{campaign|attr:key}}</td></tr> |
|
17 | <tr><th>{{key|title}}</th><td>{{campaign|attr:key}}</td></tr> | |
18 | {% endfor %} |
|
18 | {% endfor %} | |
19 | </table> |
|
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 | <br></br> |
|
24 | <br></br> | |
22 | <br></br> |
|
25 | <br></br> | |
23 |
|
26 | |||
@@ -71,7 +74,7 | |||||
71 | document.location = $(this).data("href"); |
|
74 | document.location = $(this).data("href"); | |
72 | }); |
|
75 | }); | |
73 |
|
76 | |||
74 |
$("#bt_edit |
|
77 | $("#bt_edit").click(function() { | |
75 | document.location = "{% url 'url_edit_campaign' campaign.id%}"; |
|
78 | document.location = "{% url 'url_edit_campaign' campaign.id%}"; | |
76 | }); |
|
79 | }); | |
77 |
|
80 |
@@ -14,7 +14,9 | |||||
14 | <tr><th>{{key|title}}</th><td>{{dev_conf|attr:key}}</td></tr> |
|
14 | <tr><th>{{key|title}}</th><td>{{dev_conf|attr:key}}</td></tr> | |
15 | {% endfor %} |
|
15 | {% endfor %} | |
16 | </table> |
|
16 | </table> | |
17 |
<button class="btn btn-primary pull-right" id="bt_ |
|
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 | <br></br> |
|
20 | <br></br> | |
19 | <br></br> |
|
21 | <br></br> | |
20 | {% endblock %} |
|
22 | {% endblock %} | |
@@ -26,7 +28,7 | |||||
26 | {% block extra-js%} |
|
28 | {% block extra-js%} | |
27 | <script type="text/javascript"> |
|
29 | <script type="text/javascript"> | |
28 |
|
30 | |||
29 |
$("#bt_edit |
|
31 | $("#bt_edit").click(function() { | |
30 | document.location = "{% url 'url_edit_dev_conf' dev_conf.id%}"; |
|
32 | document.location = "{% url 'url_edit_dev_conf' dev_conf.id%}"; | |
31 | }); |
|
33 | }); | |
32 |
|
34 |
@@ -14,7 +14,7 | |||||
14 | <tr><th>{{key|title}}</th><td>{{device|attr:key}}</td></tr> |
|
14 | <tr><th>{{key|title}}</th><td>{{device|attr:key}}</td></tr> | |
15 | {% endfor %} |
|
15 | {% endfor %} | |
16 | </table> |
|
16 | </table> | |
17 |
<button class="btn btn-primary pull-right" id="bt_edit_device">Edit |
|
17 | <button class="btn btn-primary pull-right" style="margin-left: 10px" id="bt_edit_device">Edit</button> | |
18 | <br></br> |
|
18 | <br></br> | |
19 | <br></br> |
|
19 | <br></br> | |
20 | {% endblock %} |
|
20 | {% endblock %} |
@@ -17,7 +17,8 | |||||
17 | <tr><th>{{key|title}}</th><td>{{experiment|attr:key}}</td></tr> |
|
17 | <tr><th>{{key|title}}</th><td>{{experiment|attr:key}}</td></tr> | |
18 | {% endfor %} |
|
18 | {% endfor %} | |
19 | </table> |
|
19 | </table> | |
20 |
<button class="btn btn-primary pull-right" id="bt_e |
|
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 | <br></br> |
|
22 | <br></br> | |
22 | <br></br> |
|
23 | <br></br> | |
23 |
|
24 | |||
@@ -65,13 +66,12 | |||||
65 | <script src="{% static 'js/moment.min.js' %}"></script> |
|
66 | <script src="{% static 'js/moment.min.js' %}"></script> | |
66 | <script src="{% static 'js/bootstrap-datetimepicker.min.js' %}"></script> |
|
67 | <script src="{% static 'js/bootstrap-datetimepicker.min.js' %}"></script> | |
67 | <script type="text/javascript"> |
|
68 | <script type="text/javascript"> | |
68 | $('.input-group.date').datetimepicker({"format": "YYYY-MM-DD HH:mm"}); |
|
|||
69 |
|
69 | |||
70 | $(".clickable-row").click(function() { |
|
70 | $(".clickable-row").click(function() { | |
71 | document.location = $(this).data("href"); |
|
71 | document.location = $(this).data("href"); | |
72 | }); |
|
72 | }); | |
73 |
|
73 | |||
74 |
$("#bt_edit |
|
74 | $("#bt_edit").click(function() { | |
75 | document.location = "{% url 'url_edit_experiment' experiment.id%}"; |
|
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