Reorder form and update text
This commit is contained in:
parent
dcb70ad925
commit
b32d7e1f97
@ -34,90 +34,58 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% macro MemberStepTwo(new_member_form, application) %}
|
{% macro MemberStepTwo(new_member_form, application) %}
|
||||||
<div class="modal__form">
|
<div class="modal__form--header">
|
||||||
<div class="modal__form--header">
|
<h1>{{ Icon('avatar') }} Set Permissions and Roles</h1>
|
||||||
<h1>{{ "portfolios.applications.members.new.assign_roles" | translate }}</h1>
|
<hr>
|
||||||
<a class='icon-link'>
|
</div>
|
||||||
{{ Icon('info') }}
|
|
||||||
{{ "portfolios.applications.members.new.learn_more" | translate }}
|
<h4>Project Permissions</h4>
|
||||||
</a>
|
{{ CheckboxInput(new_member_form.permission_sets.perms_team_mgmt, classes="input__inline-fields") }}
|
||||||
<div class="environment-roles-new">
|
{{ CheckboxInput(new_member_form.permission_sets.perms_env_mgmt, classes="input__inline-fields") }}
|
||||||
<div class="form-row">
|
{{ CheckboxInput(new_member_form.permission_sets.perms_del_env, classes="input__inline-fields") }}
|
||||||
<div class="form-col form-col--quarter">
|
|
||||||
<span class="environment-roles-new__head">
|
<div class="environment-roles-new">
|
||||||
{{ "common.resource_names.environments" | translate }}:
|
<h4>Environment Access</h4>
|
||||||
</span>
|
<hr>
|
||||||
</div>
|
{% for environment_data in new_member_form.environment_roles %}
|
||||||
<div class="form-col form-col--three-quarters">
|
<optionsinput inline-template
|
||||||
<span class="environment-roles-new__head">
|
v-bind:initial-value="'{{ environment_data.role.data | string }}'"
|
||||||
{{ "common.choose_role" | translate }}:
|
v-bind:name="'{{ environment_data.name | string }}'"
|
||||||
</span>
|
v-bind:optional="true"
|
||||||
</div>
|
>
|
||||||
</div>
|
<div class="usa-input">
|
||||||
{% for environment_data in new_member_form.environment_roles %}
|
<fieldset data-ally-disabled="true" class="usa-input__choices">
|
||||||
<optionsinput inline-template
|
<div class="form-row">
|
||||||
v-bind:initial-value="'{{ environment_data.role.data | string }}'"
|
<div class="form-col form-col--two-thirds">
|
||||||
v-bind:name="'{{ environment_data.name | string }}'"
|
<legend>
|
||||||
v-bind:optional="true"
|
<div v-bind:class='["usa-input__title-inline", {"environment-name--gray": value === "None" }]'>
|
||||||
>
|
{{ environment_data.environment_name.data }}
|
||||||
<div class="usa-input">
|
|
||||||
<fieldset data-ally-disabled="true" class="usa-input__choices">
|
|
||||||
<div class="form-row">
|
|
||||||
<div class="form-col form-col--quarter">
|
|
||||||
<legend>
|
|
||||||
<div v-bind:class='["usa-input__title-inline", {"environment-name--gray": value === "None" }]'>
|
|
||||||
{{ environment_data.environment_name.data }}
|
|
||||||
</div>
|
|
||||||
</legend>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-col form-col--three-quarters">
|
</legend>
|
||||||
{{ environment_data.role(**{"v-model": "value"}) }}
|
</div>
|
||||||
</div>
|
<div class="form-col form-col--third">
|
||||||
</div>
|
{{ environment_data.role(**{"v-model": "value"}) }}
|
||||||
</fieldset>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</optionsinput>
|
</fieldset>
|
||||||
{{ environment_data.environment_id() }}
|
</div>
|
||||||
{% endfor %}
|
</optionsinput>
|
||||||
</div>
|
{{ environment_data.environment_id() }}
|
||||||
<h1>{{ "portfolios.applications.members.new.manage_perms" | translate({"application_name": application.name}) }}</h1>
|
<hr>
|
||||||
{{ CheckboxInput(new_member_form.permission_sets.perms_team_mgmt, classes="input__inline-fields") }}
|
{% endfor %}
|
||||||
{% call CheckboxInput(new_member_form.permission_sets.perms_env_mgmt, classes="input__inline-fields") %}
|
</div>
|
||||||
{% set field=new_member_form.permission_sets.perms_del_env %}
|
|
||||||
<nestedcheckboxinput
|
<div class='action-group'>
|
||||||
name='{{ field.name }}'
|
<input
|
||||||
inline-template
|
type="submit"
|
||||||
key='{{ field.name }}'
|
class='action-group__action usa-button'
|
||||||
v-bind:is-parent-checked="isChecked"
|
form="add-app-mem"
|
||||||
>
|
value='Add Member'>
|
||||||
<div class="usa-input input__inline-fields input__inline-fields--indented">
|
<a class='action-group__action icon-link icon-link--default' v-on:click="closeModal('{{ new_port_mem }}')">{{ "common.cancel" | translate }}</a>
|
||||||
<fieldset data-ally-disabled="true" class="usa-input__choices usa-input__choices--inline">
|
<input
|
||||||
<legend>
|
type='button'
|
||||||
<input
|
v-on:click="previous()"
|
||||||
id="permission_sets-perms_del_env"
|
class='action-group__action usa-button action-group__action--left'
|
||||||
name="permission_sets-perms_del_env"
|
value='Previous'>
|
||||||
type="checkbox"
|
|
||||||
v-model="isChecked"
|
|
||||||
v-bind:disabled="!$parent.isChecked">
|
|
||||||
{{ field.label | safe }}
|
|
||||||
</legend>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</checkboxinput>
|
|
||||||
{% endcall %}
|
|
||||||
</div>
|
|
||||||
<div class='action-group'>
|
|
||||||
<input
|
|
||||||
type="submit"
|
|
||||||
class='action-group__action usa-button'
|
|
||||||
form="add-app-mem"
|
|
||||||
value='Invite member'>
|
|
||||||
<a class='action-group__action icon-link icon-link--default' v-on:click="closeModal('{{ new_port_mem }}')">{{ "common.cancel" | translate }}</a>
|
|
||||||
<input
|
|
||||||
type='button'
|
|
||||||
v-on:click="previous()"
|
|
||||||
class='action-group__action usa-button action-group__action--left'
|
|
||||||
value='Previous step'>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user