Use wtforms_util.render_field_div more in media_collect.html
If we have to render fields individually, we still can use wtforms_util.render_field_div for each field. Makes things much smaller and readable.
This commit is contained in:
parent
aa9ac2b287
commit
d647b62699
@ -47,7 +47,7 @@
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
<p class="form_field_label">
|
||||
<label for="{{ (form.collection.name) }}">{{ _(form.collection.label.text) }}</label>
|
||||
</p>
|
||||
@ -59,20 +59,10 @@
|
||||
<div id="new_collection" class="subform">
|
||||
<h3>{% trans %}Add a new collection{% endtrans %}</h3>
|
||||
|
||||
<p class="form_field_label">
|
||||
<label for="{{ (form.collection_title.name) }}">{{ _(form.collection_title.label.text) }}</label>
|
||||
</p>
|
||||
<div class="form_field_input">
|
||||
{{ form.collection_title }}
|
||||
</div>
|
||||
{{- wtforms_util.render_field_div(form.collection_title) }}
|
||||
{{- wtforms_util.render_field_div(form.collection_description) }}
|
||||
</div>
|
||||
<p class="form_field_label">
|
||||
<label for="{{ (form.note.name) }}">{{ _(form.note.label.text) }}</label>
|
||||
</p>
|
||||
<div class="form_field_input">
|
||||
{{ form.note }}
|
||||
</div>
|
||||
{{- wtforms_util.render_field_div(form.note) }}
|
||||
|
||||
<div class="form_submit_buttons">
|
||||
{# TODO: This isn't a button really... might do unexpected things :) #}
|
||||
|
Loading…
x
Reference in New Issue
Block a user