Don't use Vue for the environment roles modal

This commit is contained in:
Montana 2018-09-11 13:46:46 -04:00
parent 50f9794c34
commit 3c9243686a

View File

@ -50,39 +50,36 @@
</button>
</div>
</div>
{{ Selector(form.environment_role) }}
{% call Modal(name='rolesModal', dismissable=False) %}
<div class='block-list'>
<ul>
{% for choice in form.environment_role.choices %}
<li class='block-list__item block-list__item--selectable'>
{% if choice[0] != "" %}
<input
name='env'
v-on:change='change'
type='radio'
id="env_{{ choice[0] }}"
value='{{ choice[0] }}'
{% if role == choice[0] %}
checked='checked'
<div class='block-list'>
<ul>
{% for choice in form.environment_role.choices %}
<li class='block-list__item block-list__item--selectable'>
{% if choice[0] != "" %}
<input
name='environment_role'
type='radio'
id="environment_role_{{ choice[0] }}"
value='choice[0]'
checked='value is choice[0]'
/>
<label for="environment_role_{{ choice[0] }}">
{% if choice[1].description %}
<dl>
<dt>{{ choice[1].name }}</dt>
<dd>{{ choice[1].description }}</dd>
</dl>
{% else %}
{{ choice[1].name }}
{% endif %}
</label>
{% endif %}
/>
<label for="env_{{ choice[0] }}">
{% if choice[1].description %}
<dl>
<dt>{{ choice[1].name }}</dt>
<dd>{{ choice[1].description }}</dd>
</dl>
{% else %}
{{ choice[1].name }}
{% endif %}
</label>
{% endif %}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
<div class='block-list__footer'>
<div class='action-group'>
<a v-on:click="closeModal('rolesModal')" class='action-group__action usa-button'>Select Access Role</a>