diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-09-11 17:44:09 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-24 12:06:08 +0200 |
| commit | df09e512f1b52cf785b039e5accef6dc4b63e1f3 (patch) | |
| tree | 3a848bc6b55ac7bfaf59e9d0afdb6119839f4ece /ishtar_common/templates/ishtar/qa_form.html | |
| parent | 05c85f7b03233cc5df9b1f817636a47e7445af3e (diff) | |
| download | Ishtar-df09e512f1b52cf785b039e5accef6dc4b63e1f3.tar.bz2 Ishtar-df09e512f1b52cf785b039e5accef6dc4b63e1f3.zip | |
Generic QA form - QA find basket form
Diffstat (limited to 'ishtar_common/templates/ishtar/qa_form.html')
| -rw-r--r-- | ishtar_common/templates/ishtar/qa_form.html | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/ishtar_common/templates/ishtar/qa_form.html b/ishtar_common/templates/ishtar/qa_form.html deleted file mode 100644 index fe373ed57..000000000 --- a/ishtar_common/templates/ishtar/qa_form.html +++ /dev/null @@ -1,76 +0,0 @@ -{% load i18n inline_formset table_form %} - -<div class="modal-dialog modal-lg modal-dialog-centered"> - <div class="modal-content"> - <div class="modal-header"> - <h2>{{page_name|safe}}</h2> - <button type="button" class="close" data-dismiss="modal" aria-label="Close"> - <span aria-hidden="true">×</span> - </button> - </div> - <form enctype="multipart/form-data" action="{{url}}" method="post" - id="qa-action">{% csrf_token %} - <div class="modal-body body-scroll"> - <div class='form'> - {% for error in form.non_field_errors %} - <p>{{ error }}</p> - {% endfor %} - {% bs_form form %} - - {% if confirm %} - <input type="hidden" name="confirm" value="1"/> - <h4>{% trans "Modified items" %}</h4> - <ul>{% for item in items %} - <li>{{item}}</li>{% endfor %} - </ul> - <h4>{% trans "Modification" %}</h4> - <table> - {% for field in form %} - {% if field.value %} - <tr> - <th>{{field.label}}{% trans ":" %} </th> - <td>{% if field.field.rendered_value %} - {{ field.field.rendered_value }} - {% else %} - {{ field.value }} - {% endif %} - </td> - </tr> - {% endif %} - {% endfor %} - </table> - {% endif %} - </div> - </div> - <div class="modal-footer"> - <button type="submit" id="submit_form" name='validate' - value="validate" class="btn btn-success"> - {% if confirm %} - {% trans "Confirm" %} - {% else %} - {% trans "Modify" %} - {% endif %} - </button> - <button type="button" data-dismiss="modal" - aria-label="Close" class="btn btn-secondary"> - {% trans "Cancel" %} - </button> - </div> - </form> - </div> -</div> -<script type="text/javascript"> - $('#qa-action').on('submit', function(event){ - event.preventDefault(); - $('#modal-dynamic-form').modal("hide"); - short_wait(); - ajax_post( - "{{url}}", $(this).serialize(), "#modal-dynamic-form", - function(){ - $('#modal-dynamic-form').modal("show"); - } - ); - }); -</script> - - |
