diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-04 12:07:17 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-04 12:07:17 +0100 |
commit | 370b16f4156ccdc9956dedc00e5dfb6106380d9d (patch) | |
tree | d5d3b1ed80c8e84680f3512a1b4286472dfffffd /templates/w3/table_inline_formset.html | |
parent | a26857dfb80c5427fd819fd231994ea5be187a9f (diff) |
UI changes
- ripped out more w3 stuff
- better login page template
- redirects to home after successful login
Diffstat (limited to 'templates/w3/table_inline_formset.html')
-rw-r--r-- | templates/w3/table_inline_formset.html | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/templates/w3/table_inline_formset.html b/templates/w3/table_inline_formset.html deleted file mode 100644 index a4b951d..0000000 --- a/templates/w3/table_inline_formset.html +++ /dev/null @@ -1,57 +0,0 @@ -{% load crispy_forms_tags %} -{% load crispy_forms_utils %} -{% load crispy_forms_field %} - -{% 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> - - <table{% if form_id %} id="{{ form_id }}_table"{% endif%} class="table table-striped table-sm"> - <thead> - {% if formset.readonly and not formset.queryset.exists %} - {% else %} - <tr> - {% for field in formset.forms.0 %} - {% if field.label and not field.is_hidden %} - <th for="{{ field.auto_id }}" class="col-form-label {% if field.field.required %}requiredField{% endif %}"> - {{ field.label }}{% if field.field.required and not field|is_checkbox %}<span class="asteriskField">*</span>{% endif %} - </th> - {% endif %} - {% endfor %} - </tr> - {% endif %} - </thead> - - <tbody> - <tr class="d-none empty-form"> - {% for field in formset.empty_form %} - {% include 'w3/field.html' with tag="td" form_show_labels=False %} - {% endfor %} - </tr> - - {% for form in formset %} - {% if form_show_errors and not form.is_extra %} - {% include "w3/errors.html" %} - {% endif %} - - <tr> - {% for field in form %} - {% include 'w3/field.html' with tag="td" form_show_labels=False %} - {% endfor %} - </tr> - {% endfor %} - </tbody> - </table> - - {% include "w3/inputs.html" %} - -{% if formset_tag %}</form>{% endif %} -{% endspecialspaceless %} |