Purged and flashed errors :D,
management endpoint bugfix, taginput selected autofill fixeddev
parent
305a4cea30
commit
3b568fa8a1
@ -1,31 +0,0 @@
|
||||
{% macro errors(field) %}
|
||||
{% if field.errors %}
|
||||
<ul class=errors>
|
||||
{% for error in field.errors %}
|
||||
<li>{{ error }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
<!-- DEPRECATED + wrong function name, but whatever -->
|
||||
{% macro management_gen_line(field, formfield) %}
|
||||
<span class="show">{{ field }}</span>
|
||||
<span class="edit">{{ formfield() }}</span>
|
||||
{{ errors(formfield) }}
|
||||
{% endmacro %}
|
||||
|
||||
<!-- COPY OF genfield IN management.html -->
|
||||
{% macro genfield(formfield=None) %}
|
||||
{% if not formfield %}
|
||||
<td>
|
||||
<span>{{ caller() }}</span>
|
||||
</td>
|
||||
{% else %}
|
||||
<td>
|
||||
<span class="notedit">{{ caller() }}</span>
|
||||
<span class="edit">{{ formfield() }}</span>
|
||||
{{ errors(formfield) }}
|
||||
</td>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
Loading…
Reference in New Issue