diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-26 17:42:05 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-26 17:42:05 +0100 |
commit | 9e192c466a0cc5a498f532d896cf9ce2154709d3 (patch) | |
tree | 02239608d9c87ca48e1c6c40ae15f7757c7f93d8 | |
parent | 049c6075bf2663841545134365ba6bb3678d980c (diff) | |
download | Ishtar-9e192c466a0cc5a498f532d896cf9ce2154709d3.tar.bz2 Ishtar-9e192c466a0cc5a498f532d896cf9ce2154709d3.zip |
Document generation: fix and improve layout (refs #3934)
-rw-r--r-- | archaeological_files/templates/ishtar/administrativeact_document.html | 36 | ||||
-rw-r--r-- | scss/custom.scss | 4 |
2 files changed, 31 insertions, 9 deletions
diff --git a/archaeological_files/templates/ishtar/administrativeact_document.html b/archaeological_files/templates/ishtar/administrativeact_document.html index 104e5063e..f8ab213fe 100644 --- a/archaeological_files/templates/ishtar/administrativeact_document.html +++ b/archaeological_files/templates/ishtar/administrativeact_document.html @@ -6,15 +6,37 @@ {% endblock %} {% block content %} +{% if template_form.non_field_errors %} +<div class="alert alert-warning alert-dismissible fade show" role="alert"> + {{template_form.non_field_errors}} + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> + <span aria-hidden="true">×</span> +</button> +</div> +{% endif %} <h2>{% trans "Document generation" %}</h2> -<form action="." method="post">{% csrf_token %} -<div class='form'> +<form action="." class='wizard-form' id="wizard-form" method="post" name='wizard'>{% csrf_token %} +<div class='form search'> {{ search_form.as_p }} -<h4>{% trans "Choose the type of document" %}</h4> -<table> -{{ template_form }} -</table> -<input type="submit" id="submit_form" name='validate' value="{% trans "Generate" %}"/> +</div> +{% endblock %} + +{% block footer %} +<div id="footer"> + <div class="confirm-message row justify-content-center"> + <div class="col-2"> + <label>{{template_form.document_template.label}}</label> + </div> + <div class="col-4"> + {{template_form.document_template}} + </div> + <div class="col-2"> + <button type="submit" id="submit_form" name='validate' class="btn btn-success"> + {% trans "Generate" %} + </button> + </div> + </div> + {% include 'ishtar/blocks/footer.html' %} </div> </form> {% endblock %} diff --git a/scss/custom.scss b/scss/custom.scss index d2c6dbc0f..37cdaff26 100644 --- a/scss/custom.scss +++ b/scss/custom.scss @@ -207,7 +207,7 @@ textarea { #context-menu, #reminder, -p.confirm-message, +.confirm-message, div#validation-bar{ background-color: $ishtar-secondary-color; color: $dark-secondary-color; @@ -217,7 +217,7 @@ div#validation-bar{ padding: 0.6em 1em 0.1em 1em; } -p.confirm-message{ +.confirm-message{ text-align:center; margin: 0; padding: 0.5rem; |