adding deletes

This commit is contained in:
evilchili
2024-02-04 15:22:54 -08:00
parent 669c9b46d6
commit 99ef4d61f9
4 changed files with 41 additions and 17 deletions
+3 -5
View File
@@ -10,16 +10,14 @@
<form name="character_sheet" method="post" novalidate class="form">
{{ c.form.csrf_token }}
{% if 'process' in c.form.errors %}
Error: {{ c.form.errors.process |join(',') }}
{% endif %}
<ul>
{% for field in c.form %}
{% if field.name not in ['save', 'delete'] %}
<li>{{ field.label }}: {{ field }} {{ field.errors|join(',') }}</li>
{% endif %}
{% endfor %}
</ul>
<button type="submit">Submit</button>
{{ c.form.save }} &nbsp; {{ c.form.delete }}
</form>
</div>
{% endblock %}