@@ -0,0 +1,8 | |||
|
1 | {% extends "dev_conf_edit.html" %} | |
|
2 | {% load bootstrap3 %} | |
|
3 | {% load static %} | |
|
4 | {% load main_tags %} | |
|
5 | ||
|
6 | {% block extra-js%} | |
|
7 | <script src="{% static 'js/filters.js' %}"></script> | |
|
8 | {% endblock %} No newline at end of file |
@@ -1,28 +1,33 | |||
|
1 | 1 | {% extends "dev_conf_edit.html" %} |
|
2 | 2 | {% load bootstrap3 %} |
|
3 | 3 | {% load static %} |
|
4 | 4 | {% load main_tags %} |
|
5 | 5 | |
|
6 | 6 | {% block content %} |
|
7 | 7 | <form class="form" method="post"> |
|
8 | 8 | {% csrf_token %} |
|
9 | 9 | {% bootstrap_form form layout='horizontal' size='medium' %} |
|
10 | 10 | <div style="clear: both;"></div> |
|
11 | 11 | <br> |
|
12 | 12 | <div class="pull-right"> |
|
13 | 13 | <button type="button" class="btn btn-primary" id="bt_view_filter">View Filter</button> |
|
14 | <button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}">Cancel</button> | |
|
14 | <!-- <button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}">Cancel</button> --> | |
|
15 | <button type="button" class="btn btn-primary" id="bt_cancel">Cancel</button> | |
|
15 | 16 | <button type="submit" class="btn btn-primary">{{button}}</button> |
|
16 | 17 | </div> |
|
17 | 18 | </form> |
|
18 | 19 | {% endblock %} |
|
19 | 20 | |
|
20 | 21 | {% block extra-js%} |
|
21 | 22 | <script src="{% static 'js/jars.js' %}"></script> |
|
22 | 23 | |
|
23 | 24 | <script type="text/javascript"> |
|
24 | 25 | $("#bt_view_filter").click(function() { |
|
25 | 26 | document.location = "{% url 'url_jars_filter' id_dev filter_id%}"; |
|
26 | 27 | }); |
|
28 | ||
|
29 | $("#bt_cancel").click(function() { | |
|
30 | document.location = "{% url 'url_jars_conf' id_dev %}"; | |
|
31 | }); | |
|
27 | 32 | </script> |
|
28 | 33 | {% endblock %} No newline at end of file |
@@ -1,55 +1,59 | |||
|
1 | 1 | {% extends "base.html" %} |
|
2 | 2 | {% load bootstrap3 %} |
|
3 | 3 | {% load static %} |
|
4 | 4 | {% load main_tags %} |
|
5 | 5 | |
|
6 | 6 | {% block search-active %}active{% endblock %} |
|
7 | 7 | |
|
8 | 8 | {% block content-title %}{{title}}{% endblock %} |
|
9 | 9 | {% block content-suptitle %}{{suptitle}}{% endblock %} |
|
10 | 10 | |
|
11 | 11 | {% block content %} |
|
12 | 12 | |
|
13 | 13 | {% block menu-actions %} |
|
14 | 14 | |
|
15 | 15 | {% endblock %} |
|
16 | 16 | |
|
17 | 17 | <table class="table table-bordered"> |
|
18 | 18 | |
|
19 | 19 | {% for key in dev_conf_keys %} |
|
20 | 20 | <tr> |
|
21 | 21 | <th>{% get_verbose_field_name dev_conf key %}</th> |
|
22 | 22 | <td>{{dev_conf|attr:key}}</td> |
|
23 | 23 | </tr> |
|
24 | 24 | {% endfor %} |
|
25 | 25 | </table> |
|
26 | 26 | {% if button %} |
|
27 | 27 | <div class="pull-right"> |
|
28 | 28 | <button type="button" class="btn btn-primary" id="back_button">{% if cancel %}{{cancel}}{% else %}Back{% endif %}</button> |
|
29 | 29 | <button type="button" id="edit_button" class="btn btn-primary">{{edit_button}}</button> |
|
30 |
<button type="button" id=" |
|
|
30 | <button type="button" id="new_button" class="btn btn-primary">{{add_button}}</button> | |
|
31 | 31 | </div> |
|
32 | 32 | {% endif %} |
|
33 | 33 | |
|
34 | 34 | {% block extra-content %} |
|
35 | 35 | {% endblock %} |
|
36 | 36 | |
|
37 | 37 | {% endblock %} |
|
38 | 38 | |
|
39 | 39 | {% block sidebar%} |
|
40 | 40 | {% include "sidebar_devices.html" %} |
|
41 | 41 | {% endblock %} |
|
42 | 42 | |
|
43 | 43 | {% block extra-js%} |
|
44 | 44 | <script type="text/javascript"> |
|
45 | 45 | |
|
46 | 46 | $("#edit_button").click(function() { |
|
47 | 47 | document.location = "{% url 'url_edit_jars_filter' conf.id filter.id%}"; |
|
48 | 48 | }); |
|
49 | 49 | |
|
50 | 50 | $("#back_button").click(function() { |
|
51 | 51 | document.location = "{% url 'url_edit_jars_conf' conf.id%}"; |
|
52 | 52 | }); |
|
53 | 53 | |
|
54 | $("#new_button").click(function() { | |
|
55 | document.location = "{% url 'url_new_jars_filter' conf.id%}"; | |
|
56 | }); | |
|
57 | ||
|
54 | 58 | </script> |
|
55 | 59 | {% endblock %} No newline at end of file |
@@ -1,17 +1,21 | |||
|
1 | 1 | {% extends "dev_conf_edit.html" %} |
|
2 | 2 | {% load bootstrap3 %} |
|
3 | 3 | {% load static %} |
|
4 | 4 | {% load main_tags %} |
|
5 | 5 | |
|
6 | 6 | {% block content %} |
|
7 | 7 | <form class="form" method="post"> |
|
8 | 8 | {% csrf_token %} |
|
9 | 9 | {% bootstrap_form form layout='horizontal' size='medium' %} |
|
10 | 10 | <div style="clear: both;"></div> |
|
11 | 11 | <br> |
|
12 | 12 | <div class="pull-right"> |
|
13 | 13 | <button type="button" class="btn btn-primary" onclick="{% if previous %}window.location.replace('{{ previous }}');{% else %}history.go(-1);{% endif %}">Cancel</button> |
|
14 | 14 | <button type="submit" class="btn btn-primary">{{button}}</button> |
|
15 | 15 | </div> |
|
16 | 16 | </form> |
|
17 | {% endblock %} | |
|
18 | ||
|
19 | {% block extra-js%} | |
|
20 | <script src="{% static 'js/filters.js' %}"></script> | |
|
17 | 21 | {% endblock %} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now