mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-14 16:52:53 +02:00
feat: first batch of work
This commit is contained in:
@@ -4,21 +4,21 @@
|
||||
{{ field }}
|
||||
{% else %}
|
||||
{% if field|is_checkbox %}
|
||||
<div id="div_{{ field.auto_id }}" class="tw:form-control tw:inline-flex{% if wrapper_class %} {{ wrapper_class }}{% endif %}">
|
||||
<label class="tw:label tw:cursor-pointer tw:gap-2">
|
||||
{% crispy_field field 'class' 'tw:checkbox' %}
|
||||
<span class="tw:label-text">{{ field.label }}</span>
|
||||
<div id="div_{{ field.auto_id }}" class="form-control inline-flex{% if wrapper_class %} {{ wrapper_class }}{% endif %}">
|
||||
<label class="label cursor-pointer gap-2">
|
||||
{% crispy_field field 'class' 'checkbox' %}
|
||||
<span class="label-text">{{ field.label }}</span>
|
||||
</label>
|
||||
</div>
|
||||
{% else %}
|
||||
<div id="div_{{ field.auto_id }}"{% if wrapper_class %} class="{{ wrapper_class }}"{% endif %}>
|
||||
<label for="{{ field.id_for_label }}" class="tw:sr-only">
|
||||
<label for="{{ field.id_for_label }}" class="sr-only">
|
||||
{{ field.label }}
|
||||
</label>
|
||||
{% if field.errors %}
|
||||
{% crispy_field field 'class' 'tw:input tw:input-bordered tw:input-error' 'placeholder' field.label %}
|
||||
{% crispy_field field 'class' 'input input-bordered input-error' 'placeholder' field.label %}
|
||||
{% else %}
|
||||
{% crispy_field field 'class' 'tw:input tw:input-bordered' 'placeholder' field.label %}
|
||||
{% crispy_field field 'class' 'input input-bordered' 'placeholder' field.label %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user