Add safe to MultiCheckbox macro so we can use text with html tag
This commit is contained in:
parent
39b527dc4d
commit
94ea47ca99
@ -198,7 +198,7 @@ DEV_TEAM = [
|
|||||||
("government_civilians", "Government Civilians"),
|
("government_civilians", "Government Civilians"),
|
||||||
("military", "Military "),
|
("military", "Military "),
|
||||||
("contractor", "Contractor "),
|
("contractor", "Contractor "),
|
||||||
("other", "Other (E.g. University or other partner)"),
|
("other", "Other <em>(E.g. University or other partner)</em>"),
|
||||||
]
|
]
|
||||||
|
|
||||||
TEAM_EXPERIENCE = [
|
TEAM_EXPERIENCE = [
|
||||||
|
@ -33,10 +33,10 @@
|
|||||||
<li>
|
<li>
|
||||||
{% if choice[0] != 'other' %}
|
{% if choice[0] != 'other' %}
|
||||||
<input type='checkbox' name='{{ field.name }}' id='{{ field.name }}-{{ loop.index0 }}' value='{{ choice[0] }}' v-model="selections"/>
|
<input type='checkbox' name='{{ field.name }}' id='{{ field.name }}-{{ loop.index0 }}' value='{{ choice[0] }}' v-model="selections"/>
|
||||||
<label for='{{ field.name }}-{{ loop.index0 }}'>{{ choice[1] }}</label>
|
<label for='{{ field.name }}-{{ loop.index0 }}'>{{ choice[1] | safe }}</label>
|
||||||
{% else %}
|
{% else %}
|
||||||
<input @click="otherToggle" type='checkbox' name='{{ field.name }}' id='{{ field.name }}-{{ loop.index0 }}' value='other' v-model="selections"/>
|
<input @click="otherToggle" type='checkbox' name='{{ field.name }}' id='{{ field.name }}-{{ loop.index0 }}' value='other' v-model="selections"/>
|
||||||
<label for='{{ field.name }}-{{ loop.index0 }}'>{{ choice[1] }}</label>
|
<label for='{{ field.name }}-{{ loop.index0 }}'>{{ choice[1] | safe }}</label>
|
||||||
|
|
||||||
<div v-show="otherChecked">
|
<div v-show="otherChecked">
|
||||||
<input type='text' name='{{ other_input_field.name}}' id='{{ field.name }}-other' v-model:value="otherText" aria-expanded='false' />
|
<input type='text' name='{{ other_input_field.name}}' id='{{ field.name }}-other' v-model:value="otherText" aria-expanded='false' />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user