Hardcode form

This commit is contained in:
Joachim
2021-11-22 18:52:57 +01:00
parent 0b46db49a3
commit 47cfc2f157
5 changed files with 30 additions and 33 deletions

View File

@@ -1,11 +0,0 @@
{% with id=widget.attrs.id %}
<div{% if id %} id="{{ id }}"{% endif %} class="field">
<div class="control">
{% for group, options, index in widget.optgroups %}
{% for option in options %}
{% include option.template_name with widget=option %}
{% endfor %}
{% endfor %}
</div>
</div>
{% endwith %}

View File

@@ -1,4 +0,0 @@
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>
{% include "django/forms/widgets/input.html" %}
{{ widget.label }}
</label>