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