mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-25 02:41:15 +01:00
20 lines
1.0 KiB
HTML
20 lines
1.0 KiB
HTML
{% load i18n %}
|
|
{% load crispy_forms_field %}
|
|
|
|
<div class="mb-3">
|
|
<div class="join w-full" role="group" aria-label="{{ field.label }}">
|
|
<input type="radio" class="join-item btn btn-neutral btn-outline w-1/3" name="{{ field.name }}" id="{{ field.id_for_label }}_null"
|
|
value="" aria-label="{% trans 'Unchanged' %}" {% if not field.value %}checked{% endif %}>
|
|
|
|
<input type="radio" class="join-item btn btn-primary btn-outline w-1/3" name="{{ field.name }}" id="{{ field.id_for_label }}_false"
|
|
value="false" aria-label="{% trans 'Projected' %}" {% if field.value is False %}checked{% endif %}">
|
|
|
|
<input type="radio" class="join-item btn btn-success btn-outline w-1/3" name="{{ field.name }}" id="{{ field.id_for_label }}_true"
|
|
value="true" aria-label="{% trans 'Paid' %}" {% if field.value is True %}checked{% endif %}>
|
|
</div>
|
|
|
|
{% if field.help_text %}
|
|
<div class="text-base-content/60 text-sm mt-1">{{ field.help_text|safe }}</div>
|
|
{% endif %}
|
|
</div>
|