@@ -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 | <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> | |
@@ -24,5 +25,9 | |||||
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 %} |
@@ -27,7 +27,7 | |||||
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 | |||
@@ -51,5 +51,9 | |||||
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 %} |
@@ -14,4 +14,8 | |||||
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