summaryrefslogtreecommitdiffstats
path: root/templates/w3/layout/radioselect.html
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-04 12:07:17 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-04 12:07:17 +0100
commit370b16f4156ccdc9956dedc00e5dfb6106380d9d (patch)
treed5d3b1ed80c8e84680f3512a1b4286472dfffffd /templates/w3/layout/radioselect.html
parenta26857dfb80c5427fd819fd231994ea5be187a9f (diff)
UI changes
- ripped out more w3 stuff - better login page template - redirects to home after successful login
Diffstat (limited to 'templates/w3/layout/radioselect.html')
-rw-r--r--templates/w3/layout/radioselect.html29
1 files changed, 0 insertions, 29 deletions
diff --git a/templates/w3/layout/radioselect.html b/templates/w3/layout/radioselect.html
deleted file mode 100644
index d9c9e5a..0000000
--- a/templates/w3/layout/radioselect.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% load crispy_forms_filters %}
-{% load l10n %}
-
-<div {% if field_class %}class="{{ field_class }}"{% endif %}{% if flat_attrs %} {{ flat_attrs }}{% endif %}>
-
- {% for group, options, index in field|optgroups %}
- {% if group %}<strong>{{ group }}</strong>{% endif %}
- {% for option in options %}
- <div class="{%if use_custom_control%}custom-control custom-radio{% if inline_class %} custom-control-inline{% endif %}{% else %}form-check{% if inline_class %} form-check-inline{% endif %}{% endif %}">
- <input type="radio" class="{%if use_custom_control%}custom-control-input{% else %}form-check-input{% endif %}{% if field.errors %} is-invalid{% endif %}" name="{{ field.html_name }}" value="{{ option.value|unlocalize }}" {% include "w3/layout/attrs.html" with widget=option %}>
- <label class="{%if use_custom_control%}custom-control-label{% else %}form-check-label{% endif %}" for="{{ option.attrs.id }}">
- {{ option.label|unlocalize }}
- </label>
- {% if field.errors and forloop.last and not inline_class and forloop.parentloop.last %}
- {% include 'w3/layout/field_errors_block.html' %}
- {% endif %}
- </div>
- {% endfor %}
- {% endfor %}
- {% if field.errors and inline_class %}
- <div class="w-100 {%if use_custom_control%}custom-control custom-radio{% if inline_class %} custom-control-inline{% endif %}{% else %}form-check{% if inline_class %} form-check-inline{% endif %}{% endif %}">
- {# the following input is only meant to allow boostrap to render the error message as it has to be after an invalid input. As the input has no name, no data will be sent. #}
- <input type="checkbox" class="custom-control-input {% if field.errors %}is-invalid{%endif%}">
- {% include 'w3/layout/field_errors_block.html' %}
- </div>
- {% endif %}
-
- {% include 'w3/layout/help_text.html' %}
-</div>