@@ -0,0 +1,46 | |||||
|
1 | {% extends "dev_conf_edit.html" %} | |||
|
2 | {% load bootstrap3 %} | |||
|
3 | {% load static %} | |||
|
4 | ||||
|
5 | {% block extra-head %} | |||
|
6 | <style type="text/css"> | |||
|
7 | /* show the move cursor as the user moves the mouse over the panel header.*/ | |||
|
8 | .panel-default { cursor: move; } | |||
|
9 | </style> | |||
|
10 | <script src="{% static 'js/jquery-ui.min.js' %}"></script> | |||
|
11 | ||||
|
12 | {% endblock %} | |||
|
13 | ||||
|
14 | {% block content %} | |||
|
15 | <form class="form" method="post"> | |||
|
16 | {% csrf_token %} | |||
|
17 | {% bootstrap_form form layout='horizontal' size='medium' %} | |||
|
18 | <div style="clear: both;"></div> | |||
|
19 | <h2>ABS Beams</h2><hr> | |||
|
20 | <div class="panel-group" id="div_beams" role="tablist" aria-multiselectable="true"> | |||
|
21 | {% include "abs_beams_list.html" %} | |||
|
22 | </div> | |||
|
23 | <div style="clear: both;"></div> | |||
|
24 | <br> | |||
|
25 | <div class="pull-right"> | |||
|
26 | <button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}">Cancel</button> | |||
|
27 | <button type="button" class="btn btn-primary" id="bt_add_beam">Add Beam</button> | |||
|
28 | <button type="submit" class="btn btn-primary">{{button}}</button> | |||
|
29 | </div> | |||
|
30 | </form> | |||
|
31 | {% endblock %} | |||
|
32 | ||||
|
33 | ||||
|
34 | {% block extra-js%} | |||
|
35 | <script type="text/javascript"> | |||
|
36 | ||||
|
37 | $("#bt_toggle").click(function() { | |||
|
38 | $(".panel-collapse").collapse('toggle') | |||
|
39 | }); | |||
|
40 | ||||
|
41 | $("#bt_add_beam").click(function() { | |||
|
42 | document.location = "{% url 'url_add_abs_beam' id_conf %}"; | |||
|
43 | }); | |||
|
44 | ||||
|
45 | </script> | |||
|
46 | {% endblock %} |
General Comments 0
You need to be logged in to leave comments.
Login now