mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-31 14:33:39 +02:00
17 lines
798 B
HTML
17 lines
798 B
HTML
{% load i18n %}
|
|
{% load crispy_forms_field %}
|
|
|
|
<div class="tw:form-group tw:mb-3">
|
|
<div class="tw:join tw:w-full" role="group" aria-label="{{ field.label }}">
|
|
<input type="radio" class="tw:join-item tw:btn tw:btn-primary" name="{{ field.name }}" id="{{ field.id_for_label }}_false"
|
|
value="false" aria-label="{% trans 'Projected' %}" {% if not field.value %}checked{% endif %}>
|
|
|
|
<input type="radio" class="tw:join-item tw:btn tw:btn-success" name="{{ field.name }}" id="{{ field.id_for_label }}_true"
|
|
value="true" aria-label="{% trans 'Paid' %}" {% if field.value %}checked{% endif %}>
|
|
</div>
|
|
|
|
{% if field.help_text %}
|
|
<div class="tw:text-base-content/60 tw:text-sm tw:mt-1">{{ field.help_text|safe }}</div>
|
|
{% endif %}
|
|
</div>
|