Skip to content
Snippets Groups Projects
Commit 09ad002e authored by Parbhat Puri's avatar Parbhat Puri Committed by Fredrik Jonsson
Browse files

Add help_link attribute to form field

parent 2b4e042e
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ class BaseStreamForm:
if isinstance(block, FormFieldBlock):
field_from_block = block.get_field(struct_value)
field_from_block.help_link = struct_value.get('help_link')
field_from_block.group_number = group_counter if is_in_group else 1
if isinstance(block, GroupToggleBlock) and not is_in_group:
field_from_block.group_number = 1
......
......@@ -24,8 +24,8 @@
<p class="form__help">{{ field.help_text|safe }}</p>
{% endif %}
{% if field.help_link %}
<a class="form__help-link" href="{{ field.help_link|safe }}">See help guide for more information.</a>
{% if field.field.help_link %}
<a class="form__help-link" href="{{ field.field.help_link }}" target="_blank">See help guide for more information.</a>
{% endif %}
<div class="form__item">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment