Commit c8f2a9fa authored by Patrick Kimber's avatar Patrick Kimber

Add optional 'help_text' to the default form (used by the GDPR app)

parent 671f6903
......@@ -13,6 +13,8 @@ form_class: Additional css classes to apply to the form tag
form_id: Id attribute for the form e.g. id_search_form
help_text: Message to display under the form legend
inline_checkbox: Boolean variable, if true checkboxes are displayed inline
regardless of whether the form is stacked or aligned, styling
is determined by aligned variable
......@@ -44,6 +46,9 @@ submit_2_id and submit_2_name and submit_2_value: three variables to allow
{% if legend %}
<legend>{{ legend }}</legend>
{% endif %}
{% if help_text %}
{{ help_text }}
{% endif %}
{% for field in form.visible_fields %}
{% if inline_checkbox and field.field.widget.input_type %}
{% include '_form_field.html' with field=field field_type=field.field.widget.input_type %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment