Don't use Vue for the environment roles modal
This commit is contained in:
parent
50f9794c34
commit
3c9243686a
@ -50,26 +50,22 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ Selector(form.environment_role) }}
|
|
||||||
|
|
||||||
{% call Modal(name='rolesModal', dismissable=False) %}
|
{% call Modal(name='rolesModal', dismissable=False) %}
|
||||||
<div class='block-list'>
|
<div class='block-list'>
|
||||||
<ul>
|
<ul>
|
||||||
{% for choice in form.environment_role.choices %}
|
{% for choice in form.environment_role.choices %}
|
||||||
<li class='block-list__item block-list__item--selectable'>
|
<li class='block-list__item block-list__item--selectable'>
|
||||||
|
|
||||||
{% if choice[0] != "" %}
|
{% if choice[0] != "" %}
|
||||||
<input
|
<input
|
||||||
name='env'
|
name='environment_role'
|
||||||
v-on:change='change'
|
|
||||||
type='radio'
|
type='radio'
|
||||||
id="env_{{ choice[0] }}"
|
id="environment_role_{{ choice[0] }}"
|
||||||
value='{{ choice[0] }}'
|
value='choice[0]'
|
||||||
{% if role == choice[0] %}
|
checked='value is choice[0]'
|
||||||
checked='checked'
|
|
||||||
{% endif %}
|
|
||||||
/>
|
/>
|
||||||
<label for="env_{{ choice[0] }}">
|
<label for="environment_role_{{ choice[0] }}">
|
||||||
{% if choice[1].description %}
|
{% if choice[1].description %}
|
||||||
<dl>
|
<dl>
|
||||||
<dt>{{ choice[1].name }}</dt>
|
<dt>{{ choice[1].name }}</dt>
|
||||||
@ -83,6 +79,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
<div class='block-list__footer'>
|
<div class='block-list__footer'>
|
||||||
<div class='action-group'>
|
<div class='action-group'>
|
||||||
<a v-on:click="closeModal('rolesModal')" class='action-group__action usa-button'>Select Access Role</a>
|
<a v-on:click="closeModal('rolesModal')" class='action-group__action usa-button'>Select Access Role</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user