Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{# NB: 'RichTextCheckboxInput' is defined in the EL code because it needs access to the simple rich text block #}
<div
class="waf--field-container {% if field.errors %}waf--field-container--error{% endif %}"
data-waf-field
>
<div class="waf--checkbox-container">
{{ field }}
<label class="waf--field-label-choice" for="{{ field.id_for_label }}">
{{ field.field.widget.attrs.display_text|safe }}
</label>
</div>
{% if field.help_text %}
{% include "wagtail_advanced_form_builder/field_helpers/field_help_text.html" %}
{% endif %}
{% include "wagtail_advanced_form_builder/field_helpers/field_error.html" %}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
{% include "wagtail_advanced_form_builder/fields/text_area_field.html" with field=field %}
{% elif field|fieldtype == 'FieldToggleInput' %}
{% include "wagtail_advanced_form_builder/fields/field_toggle.html" with field=field %}
{% elif field|fieldtype == 'RichTextCheckboxInput' %}
{# NB: 'RichTextCheckboxInput' is defined in the EL code because it needs access to the simple rich text block #}
{% include "wagtail_advanced_form_builder/fields/richtext_checkbox_field.html" with field=field %}
{% else %}
{% include "wagtail_advanced_form_builder/fields/default_field.html" with field=field %}
{% endif %}
Expand Down