@@ -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 |
@@ -11,7 +11,8 | |||
|
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> |
@@ -24,5 +25,9 | |||
|
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 |
@@ -27,7 +27,7 | |||
|
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 | |
@@ -51,5 +51,9 | |||
|
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 |
General Comments 0
You need to be logged in to leave comments.
Login now