Fix indentation
This commit is contained in:
parent
3ec786b632
commit
783b47b2f7
@ -53,99 +53,98 @@
|
|||||||
{% for project in projects %}
|
{% for project in projects %}
|
||||||
{% set revoke_modal_name = project.name + 'RevokeModal' %}
|
{% set revoke_modal_name = project.name + 'RevokeModal' %}
|
||||||
<edit-project-roles inline-template v-bind:name="'{{ project.name }}'">
|
<edit-project-roles inline-template v-bind:name="'{{ project.name }}'">
|
||||||
<div is='toggler' default-visible class='block-list project-list-item'>
|
<div is='toggler' default-visible class='block-list project-list-item'>
|
||||||
<template slot-scope='props'>
|
<template slot-scope='props'>
|
||||||
<header class='block-list__header'>
|
<header class='block-list__header'>
|
||||||
<button v-on:click='props.toggle' class='icon-link icon-link--large icon-link--default spend-table__project__toggler'>
|
<button v-on:click='props.toggle' class='icon-link icon-link--large icon-link--default spend-table__project__toggler'>
|
||||||
<template v-if='props.isVisible'>{{ Icon('caret_down') }}</template>
|
<template v-if='props.isVisible'>{{ Icon('caret_down') }}</template>
|
||||||
<template v-else>{{ Icon('caret_right') }}</template>
|
<template v-else>{{ Icon('caret_right') }}</template>
|
||||||
<h3 class="block-list__title">{{ project.name }}</h3>
|
<h3 class="block-list__title">{{ project.name }}</h3>
|
||||||
</button>
|
</button>
|
||||||
<span><a v-on:click="openModal('{{ revoke_modal_name }}')" class="icon-link icon-link--danger">revoke all access</a></span>
|
<span><a v-on:click="openModal('{{ revoke_modal_name }}')" class="icon-link icon-link--danger">revoke all access</a></span>
|
||||||
</header>
|
</header>
|
||||||
{% call Modal(name=revoke_modal_name, dismissable=False) %}
|
{% call Modal(name=revoke_modal_name, dismissable=False) %}
|
||||||
<div>
|
<div>
|
||||||
<h1>Revoke Access</h1>
|
<h1>Revoke Access</h1>
|
||||||
<p>
|
<p>
|
||||||
Confirming will revoke access for {{ member.user.full_name }} to any environments associated with {{ project.name }}.
|
Confirming will revoke access for {{ member.user.full_name }} to any environments associated with {{ project.name }}.
|
||||||
</p>
|
</p>
|
||||||
<div class='action-group'>
|
<div class='action-group'>
|
||||||
<a v-on:click="revoke = true; closeModal('{{ revoke_modal_name }}')" class='action-group__action usa-button'>Confirm</a>
|
<a v-on:click="revoke = true; closeModal('{{ revoke_modal_name }}')" class='action-group__action usa-button'>Confirm</a>
|
||||||
<a class='action-group__action icon-link icon-link--danger' v-on:click="closeModal('{{ revoke_modal_name }}'); cancel();">Cancel</a>
|
<a class='action-group__action icon-link icon-link--danger' v-on:click="closeModal('{{ revoke_modal_name }}'); cancel();">Cancel</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endcall %}
|
||||||
{% endcall %}
|
<ul v-show='props.isVisible'>
|
||||||
<ul v-show='props.isVisible'>
|
{% for env in project.environments %}
|
||||||
{% for env in project.environments %}
|
|
||||||
|
|
||||||
{% set role = EnvironmentRoles.get(member.user_id, env.id).role %}
|
{% set role = EnvironmentRoles.get(member.user_id, env.id).role %}
|
||||||
|
|
||||||
<li class='block-list__item'>
|
<li class='block-list__item'>
|
||||||
<edit-environment-role inline-template initial-data='{{ role or "" }}' v-bind:choices='{{ choices | tojson }}' v-bind:revoke='revoke'>
|
<edit-environment-role inline-template initial-data='{{ role or "" }}' v-bind:choices='{{ choices | tojson }}' v-bind:revoke='revoke'>
|
||||||
<div class='project-list-item__environment'>
|
<div class='project-list-item__environment'>
|
||||||
<span class='project-list-item__environment__link'>
|
<span class='project-list-item__environment__link'>
|
||||||
{{ env.name }}
|
{{ env.name }}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class='project-list-item__environment__actions'>
|
<div class='project-list-item__environment__actions'>
|
||||||
<span v-bind:class="label_class" v-html:on=displayName></span>
|
<span v-bind:class="label_class" v-html:on=displayName></span>
|
||||||
<button v-on:click="openModal('{{ env.name }}RolesModal')" type="button" class="icon-link">set role</button>
|
<button v-on:click="openModal('{{ env.name }}RolesModal')" type="button" class="icon-link">set role</button>
|
||||||
{% call Modal(name=env.name + 'RolesModal', dismissable=False) %}
|
{% call Modal(name=env.name + 'RolesModal', dismissable=False) %}
|
||||||
<div class='block-list'>
|
<div class='block-list'>
|
||||||
<div class='block-list__header'>
|
<div class='block-list__header'>
|
||||||
<div>
|
<div>
|
||||||
{% if env_role_modal_description %}
|
{% if env_role_modal_description %}
|
||||||
<h1>{{ env_role_modal_description.header }}</h1>
|
<h1>{{ env_role_modal_description.header }}</h1>
|
||||||
<p>{{ env_role_modal_description.body | safe }}</p>
|
<p>{{ env_role_modal_description.body | safe }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
{% for choice in choices %}
|
||||||
|
<li class='block-list__item block-list__item--selectable'>
|
||||||
|
|
||||||
|
<input
|
||||||
|
name='radio_input_{{ env.id }}'
|
||||||
|
v-on:change='change'
|
||||||
|
type='radio'
|
||||||
|
id="env_{{ env.id }}_{{ choice[0] }}"
|
||||||
|
value='{{ choice[0] }}'
|
||||||
|
{% if role == choice[0] %}
|
||||||
|
checked='checked'
|
||||||
|
{% endif %}
|
||||||
|
/>
|
||||||
|
<label for="env_{{ env.id }}_{{ choice[0] }}">
|
||||||
|
{% if choice[1].description %}
|
||||||
|
<dl>
|
||||||
|
<dt>{{ choice[1].name }}</dt>
|
||||||
|
<dd>{{ choice[1].description }}</dd>
|
||||||
|
</dl>
|
||||||
|
{% else %}
|
||||||
|
{{ choice[1].name }}
|
||||||
|
{% endif %}
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
<input type='hidden' name='env_{{ env.id }}' v-bind:value='newRole'/>
|
||||||
|
<div class='block-list__footer'>
|
||||||
|
<div class='action-group'>
|
||||||
|
<a v-on:click="closeModal('{{ env.name }}RolesModal')" class='action-group__action usa-button'>Select Access Role</a>
|
||||||
|
<a class='action-group__action icon-link icon-link--danger' v-on:click="closeModal('{{ env.name }}RolesModal'); cancel();" value="{{ value if value == role else role }}" >Cancel</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
{% endcall %}
|
||||||
{% for choice in choices %}
|
</div>
|
||||||
<li class='block-list__item block-list__item--selectable'>
|
|
||||||
|
|
||||||
<input
|
|
||||||
name='radio_input_{{ env.id }}'
|
|
||||||
v-on:change='change'
|
|
||||||
type='radio'
|
|
||||||
id="env_{{ env.id }}_{{ choice[0] }}"
|
|
||||||
value='{{ choice[0] }}'
|
|
||||||
{% if role == choice[0] %}
|
|
||||||
checked='checked'
|
|
||||||
autofocus
|
|
||||||
{% endif %}
|
|
||||||
/>
|
|
||||||
<label for="env_{{ env.id }}_{{ choice[0] }}">
|
|
||||||
{% if choice[1].description %}
|
|
||||||
<dl>
|
|
||||||
<dt>{{ choice[1].name }}</dt>
|
|
||||||
<dd>{{ choice[1].description }}</dd>
|
|
||||||
</dl>
|
|
||||||
{% else %}
|
|
||||||
{{ choice[1].name }}
|
|
||||||
{% endif %}
|
|
||||||
</label>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
<input type='hidden' name='env_{{ env.id }}' v-bind:value='newRole'/>
|
|
||||||
<div class='block-list__footer'>
|
|
||||||
<div class='action-group'>
|
|
||||||
<button type='button' v-on:click="closeModal('{{ env.name }}RolesModal')" class='action-group__action usa-button'>Select Access Role</button>
|
|
||||||
<button type='button' class='action-group__action icon-link icon-link--danger' v-on:click="closeModal('{{ env.name }}RolesModal'); cancel();" value="{{ value if value == role else role }}" >Cancel</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endcall %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</edit-environment-role>
|
||||||
</edit-environment-role>
|
</li>
|
||||||
</li>
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</edit-project-roles>
|
</edit-project-roles>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user