Fix radio buttons so they properly track the selected role
This commit is contained in:
parent
c7471f9e8b
commit
9bb77208e2
@ -103,16 +103,13 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% for choice in choices %}
|
{% for choice in choices %}
|
||||||
<li class='block-list__item block-list__item--selectable'>
|
<li class='block-list__item block-list__item--selectable'>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
name='radio_input_{{ env.id }}'
|
name='radio_input_{{ env.id }}'
|
||||||
v-on:change.prevent='change'
|
v-on:change.prevent='change'
|
||||||
type='radio'
|
type='radio'
|
||||||
id="env_{{ env.id }}_{{ choice[0] }}"
|
id="env_{{ env.id }}_{{ choice[0] }}"
|
||||||
value='{{ choice[0] }}'
|
value='{{ choice[0] }}'
|
||||||
{% if "!{new_role}" == choice[0] %}
|
:checked="new_role === '{{ choice[0]}}'"
|
||||||
checked='checked'
|
|
||||||
{% endif %}
|
|
||||||
/>
|
/>
|
||||||
<label for="env_{{ env.id }}_{{ choice[0] }}">
|
<label for="env_{{ env.id }}_{{ choice[0] }}">
|
||||||
{% if choice[1].description %}
|
{% if choice[1].description %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user