mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-24 01:28:42 +02:00
feat: first batch of work
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
{% 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"
|
||||
<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-warning btn-outline w-1/2" 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"
|
||||
<input type="radio" class="join-item btn btn-success btn-outline w-1/2" 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>
|
||||
<div class="text-base-content/60 text-sm mt-1">{{ field.help_text|safe }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user