mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-27 20:01:18 +01:00
20 lines
1002 B
HTML
20 lines
1002 B
HTML
{% load i18n %}
|
|
{% load crispy_forms_field %}
|
|
|
|
<div class="form-group mb-3">
|
|
<div class="join w-full" role="group" aria-label="{{ field.label }}">
|
|
<input type="radio" class="join-item btn btn-neutral" name="{{ field.name }}" id="{{ field.id_for_label }}_null"
|
|
value="" aria-label="{% trans 'Unchanged' %}" {% if field.value is None %}checked{% endif %}>
|
|
|
|
<input type="radio" class="join-item btn btn-primary" 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" 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>
|