Fix inputs in member modal forms
This commit is contained in:
parent
2665094136
commit
c5e31975e2
@ -5,17 +5,11 @@
|
|||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input__inline-fields {
|
|
||||||
text-align: left;
|
|
||||||
|
|
||||||
.usa-input__choices label {
|
|
||||||
font-weight: $font-bold;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.input__inline-fields {
|
.input__inline-fields {
|
||||||
padding: $gap * 2;
|
padding: $gap * 2;
|
||||||
border: 1px solid $color-gray-lighter;
|
border: 1px solid $color-gray-lighter;
|
||||||
|
text-align: left;
|
||||||
|
max-width: 100%;
|
||||||
|
|
||||||
&.checked {
|
&.checked {
|
||||||
border: 1px solid $color-blue;
|
border: 1px solid $color-blue;
|
||||||
@ -33,7 +27,7 @@
|
|||||||
|
|
||||||
.user-info {
|
.user-info {
|
||||||
.usa-input {
|
.usa-input {
|
||||||
width: 45rem;
|
max-width: $max-input-width;
|
||||||
|
|
||||||
input,
|
input,
|
||||||
label,
|
label,
|
||||||
@ -53,8 +47,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#modal--add-app-mem,
|
.form-content--member-form {
|
||||||
#modal--add-portfolio-manager {
|
|
||||||
.modal__body {
|
.modal__body {
|
||||||
min-width: 75rem;
|
min-width: 75rem;
|
||||||
}
|
}
|
||||||
|
@ -371,19 +371,15 @@ select {
|
|||||||
.phone-input {
|
.phone-input {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
&__phone {
|
&__phone {
|
||||||
margin-right: $gap * 4;
|
margin-right: $gap * 4;
|
||||||
|
flex-grow: 1;
|
||||||
|
|
||||||
.usa-input {
|
.usa-input {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
input,
|
|
||||||
label,
|
|
||||||
.usa-input__message {
|
|
||||||
max-width: 20rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-validation {
|
.icon-validation {
|
||||||
left: 20rem;
|
left: 20rem;
|
||||||
}
|
}
|
||||||
@ -391,7 +387,8 @@ select {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&__extension {
|
&__extension {
|
||||||
margin-left: $gap * 4;
|
margin-right: $gap * 4;
|
||||||
|
flex-grow: 0;
|
||||||
|
|
||||||
.usa-input {
|
.usa-input {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
{% set invite_expired = member.role_status == 'invite_expired' %}
|
{% set invite_expired = member.role_status == 'invite_expired' %}
|
||||||
{%- if user_can(permissions.EDIT_APPLICATION_MEMBER) %}
|
{%- if user_can(permissions.EDIT_APPLICATION_MEMBER) %}
|
||||||
{% set modal_name = "edit_member-{}".format(loop.index) %}
|
{% set modal_name = "edit_member-{}".format(loop.index) %}
|
||||||
{% call Modal(modal_name, classes="form-content--app-mem") %}
|
{% call Modal(modal_name, classes="form-content--member-form") %}
|
||||||
<div class="modal__form--header">
|
<div class="modal__form--header">
|
||||||
<h1>{{ Icon('avatar') }} {{ "portfolios.applications.members.form.edit_access_header" | translate({ "user": member.user_name }) }}</h1>
|
<h1>{{ Icon('avatar') }} {{ "portfolios.applications.members.form.edit_access_header" | translate({ "user": member.user_name }) }}</h1>
|
||||||
</div>
|
</div>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
{%- if invite_pending or invite_expired %}
|
{%- if invite_pending or invite_expired %}
|
||||||
{% set resend_invite_modal = "resend_invite-{}".format(member.role_id) %}
|
{% set resend_invite_modal = "resend_invite-{}".format(member.role_id) %}
|
||||||
{% call Modal(resend_invite_modal, classes="form-content--app-mem") %}
|
{% call Modal(resend_invite_modal, classes="form-content--member-form") %}
|
||||||
<div class="modal__form--header">
|
<div class="modal__form--header">
|
||||||
<h1>{{ "portfolios.applications.members.new.verify" | translate }}</h1>
|
<h1>{{ "portfolios.applications.members.new.verify" | translate }}</h1>
|
||||||
</div>
|
</div>
|
||||||
@ -183,6 +183,7 @@
|
|||||||
modal=new_member_modal_name,
|
modal=new_member_modal_name,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
classes="form-content--member-form",
|
||||||
) }}
|
) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro MultiStepModalForm(name, form, form_action, steps, dismissable=False) -%}
|
{% macro MultiStepModalForm(name, form, form_action, steps, dismissable=False, classes="") -%}
|
||||||
{% set step_count = steps|length %}
|
{% set step_count = steps|length %}
|
||||||
<multi-step-modal-form inline-template :steps={{ step_count }}>
|
<multi-step-modal-form inline-template :steps={{ step_count }}>
|
||||||
{% call Modal(name=name, dismissable=dismissable) %}
|
{% call Modal(name=name, dismissable=dismissable, classes=classes) %}
|
||||||
<form id="{{ name }}" action="{{ form_action }}" method="POST" v-on:submit="handleSubmit">
|
<form id="{{ name }}" action="{{ form_action }}" method="POST" v-on:submit="handleSubmit">
|
||||||
{{ form.csrf_token }}
|
{{ form.csrf_token }}
|
||||||
<div v-if="$root.activeModal === '{{ name }}'">
|
<div v-if="$root.activeModal === '{{ name }}'">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
{% set invite_expired = member.status == 'invite_expired' %}
|
{% set invite_expired = member.status == 'invite_expired' %}
|
||||||
|
|
||||||
{% set modal_name = "edit_member-{}".format(loop.index) %}
|
{% set modal_name = "edit_member-{}".format(loop.index) %}
|
||||||
{% call Modal(modal_name, classes="form-content--app-mem") %}
|
{% call Modal(modal_name, classes="form-content--member-form") %}
|
||||||
<div class="modal__form--header">
|
<div class="modal__form--header">
|
||||||
<h1>{{ Icon('avatar') }} {{ "portfolios.applications.members.form.edit_access_header" | translate({ "user": member.user_name }) }}</h1>
|
<h1>{{ Icon('avatar') }} {{ "portfolios.applications.members.form.edit_access_header" | translate({ "user": member.user_name }) }}</h1>
|
||||||
</div>
|
</div>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
{% if invite_pending or invite_expired -%}
|
{% if invite_pending or invite_expired -%}
|
||||||
{% set resend_invite_modal = "resend_invite-{}".format(member.role_id) %}
|
{% set resend_invite_modal = "resend_invite-{}".format(member.role_id) %}
|
||||||
{% call Modal(resend_invite_modal, classes="form-content--app-mem") %}
|
{% call Modal(resend_invite_modal, classes="form-content--member-form") %}
|
||||||
<div class="modal__form--header">
|
<div class="modal__form--header">
|
||||||
<h1>{{ "portfolios.applications.members.new.verify" | translate }}</h1>
|
<h1>{{ "portfolios.applications.members.new.verify" | translate }}</h1>
|
||||||
</div>
|
</div>
|
||||||
@ -182,6 +182,7 @@
|
|||||||
modal=new_manager_modal,
|
modal=new_manager_modal,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
classes="form-content--member-form",
|
||||||
) }}
|
) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user