Don't use Vue for the environment roles modal
This commit is contained in:
parent
50f9794c34
commit
3c9243686a
@ -50,39 +50,36 @@
|
|||||||
</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='environment_role'
|
||||||
name='env'
|
type='radio'
|
||||||
v-on:change='change'
|
id="environment_role_{{ choice[0] }}"
|
||||||
type='radio'
|
value='choice[0]'
|
||||||
id="env_{{ choice[0] }}"
|
checked='value is choice[0]'
|
||||||
value='{{ choice[0] }}'
|
/>
|
||||||
{% if role == choice[0] %}
|
<label for="environment_role_{{ choice[0] }}">
|
||||||
checked='checked'
|
{% if choice[1].description %}
|
||||||
|
<dl>
|
||||||
|
<dt>{{ choice[1].name }}</dt>
|
||||||
|
<dd>{{ choice[1].description }}</dd>
|
||||||
|
</dl>
|
||||||
|
{% else %}
|
||||||
|
{{ choice[1].name }}
|
||||||
|
{% endif %}
|
||||||
|
</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
/>
|
</li>
|
||||||
<label for="env_{{ choice[0] }}">
|
{% endfor %}
|
||||||
{% if choice[1].description %}
|
</ul>
|
||||||
<dl>
|
</div>
|
||||||
<dt>{{ choice[1].name }}</dt>
|
|
||||||
<dd>{{ choice[1].description }}</dd>
|
|
||||||
</dl>
|
|
||||||
{% else %}
|
|
||||||
{{ choice[1].name }}
|
|
||||||
{% endif %}
|
|
||||||
</label>
|
|
||||||
{% endif %}
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
<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