diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-07 16:52:02 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 10:46:13 +0200 |
| commit | 8b3347dd635eef93e7af1a71c4183630277a7f5f (patch) | |
| tree | 68d54bb40b2006fc2a3d5ae938108e9b950eca59 /ishtar_common/templates/blocks | |
| parent | 07f24f648504004adbb57b16bd18fbd23a3c3998 (diff) | |
| download | Ishtar-8b3347dd635eef93e7af1a71c4183630277a7f5f.tar.bz2 Ishtar-8b3347dd635eef93e7af1a71c4183630277a7f5f.zip | |
Document form: add related fields (refs #4107)
Diffstat (limited to 'ishtar_common/templates/blocks')
| -rw-r--r-- | ishtar_common/templates/blocks/bs_form_snippet.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ishtar_common/templates/blocks/bs_form_snippet.html b/ishtar_common/templates/blocks/bs_form_snippet.html index 47779cdc1..74dbadf5c 100644 --- a/ishtar_common/templates/blocks/bs_form_snippet.html +++ b/ishtar_common/templates/blocks/bs_form_snippet.html @@ -63,13 +63,26 @@ {% if field.name in form.HEADERS %} {% if forloop.counter0 %} </div>{% endif %} -<h3>{{field.name|from_dict:form.HEADERS|call:'render'}}</h3> + +{% if form.current_header %} + {{form.current_header|call:'render_end'}} +{% endif %} + +{% with "headers,"|add:field.name as call_arg %} +{{form|call:call_arg|call:"render"}} +{% endwith %} + <div class="form-row{% if odd %} odd{% endif %}"> {% elif not search and not forloop.counter0 or search and forloop.counter0 == 1 %} <div class="form-row{% if odd %} odd{% endif %}"> {% endif %} {% include "blocks/bs_field_snippet.html" %} {% if forloop.last %} + +{% if form.current_header %} + {{form.current_header|call:'render_end'}} +{% endif %} + {% if search and forloop.counter0 >= 1 %} </div> <div class="modal-footer"> |
