Add markdown notice to collection description.
Use wtforms_util.render_field_div on the collection description, so that the markdown notice in the wtform is actually rendered to html.
This commit is contained in:
parent
fc6616ed26
commit
b4ea20fa98
@ -57,8 +57,7 @@
|
||||
</div>
|
||||
|
||||
<div id="new_collection" class="subform">
|
||||
|
||||
<h3>{% trans %}Add a new collection{% endtrans %}</h3>
|
||||
<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>
|
||||
@ -66,13 +65,7 @@
|
||||
<div class="form_field_input">
|
||||
{{ form.collection_title }}
|
||||
</div>
|
||||
<p class="form_field_label">
|
||||
<label for="{{ (form.collection_description.name) }}">{{ _(form.collection_description.label.text) }}</label>
|
||||
</p>
|
||||
<div class="form_field_input">
|
||||
{{ form.collection_description }}
|
||||
</div>
|
||||
|
||||
{{- wtforms_util.render_field_div(form.collection_description) }}
|
||||
</div>
|
||||
<p class="form_field_label">
|
||||
<label for="{{ (form.note.name) }}">{{ _(form.note.label.text) }}</label>
|
||||
|
@ -28,7 +28,7 @@
|
||||
<p class="form_field_error">{{ _(error) }}</p>
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
{% if field.description -%}
|
||||
{%- if field.description %}
|
||||
<p class="form_field_description">{{ _(field.description)|safe }}</p>
|
||||
{%- endif %}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user