mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-26 18:48:42 +02:00
feat: automated replacement
This commit is contained in:
30
app/templates/crispy-daisyui/whole_uni_formset.html
Normal file
30
app/templates/crispy-daisyui/whole_uni_formset.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% load crispy_forms_tags %}
|
||||
{% load crispy_forms_utils %}
|
||||
|
||||
{% specialspaceless %}
|
||||
{% if formset_tag %}
|
||||
<form {{ flat_attrs }} method="{{ form_method }}" {% if formset.is_multipart %} enctype="multipart/form-data"{% endif %}>
|
||||
{% endif %}
|
||||
{% if formset_method|lower == 'post' and not disable_csrf %}
|
||||
{% csrf_token %}
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
{{ formset.management_form|crispy }}
|
||||
</div>
|
||||
|
||||
{% include "crispy-daisyui/errors_formset.html" %}
|
||||
|
||||
{% for form in formset %}
|
||||
{% include "crispy-daisyui/display_form.html" %}
|
||||
{% endfor %}
|
||||
|
||||
{% if inputs %}
|
||||
<div class="tw:flex tw:gap-2 tw:mt-4">
|
||||
{% for input in inputs %}
|
||||
{% include "crispy-daisyui/layout/baseinput.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if formset_tag %}</form>{% endif %}
|
||||
{% endspecialspaceless %}
|
||||
Reference in New Issue
Block a user