Add safe to MultiCheckbox macro so we can use text with html tag

This commit is contained in:
leigh-mil 2019-01-15 10:56:37 -05:00
parent 39b527dc4d
commit 94ea47ca99
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ DEV_TEAM = [
("government_civilians", "Government Civilians"),
("military", "Military "),
("contractor", "Contractor "),
("other", "Other (E.g. University or other partner)"),
("other", "Other <em>(E.g. University or other partner)</em>"),
]
TEAM_EXPERIENCE = [

View File

@ -33,10 +33,10 @@
<li>
{% if choice[0] != 'other' %}
<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 %}
<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">
<input type='text' name='{{ other_input_field.name}}' id='{{ field.name }}-other' v-model:value="otherText" aria-expanded='false' />