Update app members blank slate and section header text
This commit is contained in:
parent
176b9b4e25
commit
f71f2c91fb
@ -24,33 +24,11 @@
|
|||||||
<div class="panel">
|
<div class="panel">
|
||||||
{% if not application.members %}
|
{% if not application.members %}
|
||||||
<div class='empty-state panel__content'>
|
<div class='empty-state panel__content'>
|
||||||
<p class='empty-state__message'>{{ ("portfolios.applications.team_settings.blank_slate.title" | translate) }}</p>
|
<p class='empty-state__message'>
|
||||||
|
{{ ("portfolios.applications.members.blank_slate" | translate) }}
|
||||||
{{ Icon('avatar') }}
|
</p>
|
||||||
|
|
||||||
{% if not user_can(permissions.CREATE_APPLICATION_MEMBER) %}
|
|
||||||
<p class='empty-state__sub-message'>{{ ("portfolios.applications.team_settings.blank_slate.sub_message" | translate) }}</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if user_can(permissions.CREATE_APPLICATION_MEMBER) %}
|
|
||||||
{% set new_member_modal_name = "add-app-mem" %}
|
|
||||||
<a class="usa-button usa-button-big" v-on:click="openModal('{{ new_member_modal_name }}')">
|
|
||||||
{{ "portfolios.applications.team_settings.blank_slate.action_label" | translate }}
|
|
||||||
</a>
|
|
||||||
{{ MultiStepModalForm(
|
|
||||||
name=new_member_modal_name,
|
|
||||||
form=new_member_form,
|
|
||||||
form_action=url_for(action, application_id=application.id),
|
|
||||||
steps=[
|
|
||||||
member_steps.MemberStepOne(new_member_form),
|
|
||||||
member_steps.MemberStepTwo(new_member_form, application)
|
|
||||||
],
|
|
||||||
) }}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set new_member_modal_name = "add-app-mem" %}
|
|
||||||
|
|
||||||
{% for member in members %}
|
{% for member in members %}
|
||||||
{%- if user_can(permissions.EDIT_APPLICATION_MEMBER) %}
|
{%- if user_can(permissions.EDIT_APPLICATION_MEMBER) %}
|
||||||
@ -115,7 +93,7 @@
|
|||||||
<table class="atat-table">
|
<table class="atat-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Member</th>
|
<th>Name</th>
|
||||||
<th>Application Permissions</th>
|
<th>Application Permissions</th>
|
||||||
<th>Environment Access</th>
|
<th>Environment Access</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -164,14 +142,15 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
{% if user_can(permissions.CREATE_APPLICATION_MEMBER) %}
|
{% if user_can(permissions.CREATE_APPLICATION_MEMBER) %}
|
||||||
|
{% set new_member_modal_name = "add-app-mem" %}
|
||||||
<a class="usa-button usa-button-secondary add-new-button" v-on:click="openModal('{{ new_member_modal_name }}')">
|
<a class="usa-button usa-button-secondary add-new-button" v-on:click="openModal('{{ new_member_modal_name }}')">
|
||||||
{{ "portfolios.applications.add_member" | translate }}
|
{{ "portfolios.applications.add_member" | translate }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if user_can(permissions.CREATE_APPLICATION_MEMBER) %}
|
|
||||||
{{ MultiStepModalForm(
|
{{ MultiStepModalForm(
|
||||||
name=new_member_modal_name,
|
name=new_member_modal_name,
|
||||||
form=new_member_form,
|
form=new_member_form,
|
||||||
@ -182,8 +161,6 @@
|
|||||||
],
|
],
|
||||||
) }}
|
) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
@ -310,7 +310,7 @@ portfolios:
|
|||||||
applications:
|
applications:
|
||||||
add_application_text: Add a new application
|
add_application_text: Add a new application
|
||||||
add_environment: Create an Environment
|
add_environment: Create an Environment
|
||||||
add_member: Add a New Team Member
|
add_member: Add Team Member
|
||||||
add_another_environment: Add another environment
|
add_another_environment: Add another environment
|
||||||
app_settings_text: App settings
|
app_settings_text: App settings
|
||||||
new:
|
new:
|
||||||
@ -376,13 +376,9 @@ portfolios:
|
|||||||
settings_heading: Application Settings
|
settings_heading: Application Settings
|
||||||
settings:
|
settings:
|
||||||
name_description: Application name and description
|
name_description: Application name and description
|
||||||
team_members: Team Members
|
team_members: Application Team
|
||||||
environments: Application Environments
|
environments: Application Environments
|
||||||
team_settings:
|
team_settings:
|
||||||
blank_slate:
|
|
||||||
action_label: Invite a new team member
|
|
||||||
sub_message: Please contact your JEDI Cloud portfolio administrator to invite new members.
|
|
||||||
title: There are currently no team members for this application.
|
|
||||||
environments: Environments
|
environments: Environments
|
||||||
section:
|
section:
|
||||||
table:
|
table:
|
||||||
@ -394,6 +390,7 @@ portfolios:
|
|||||||
add_to_environment: Add to existing environment
|
add_to_environment: Add to existing environment
|
||||||
team_text: Team
|
team_text: Team
|
||||||
members:
|
members:
|
||||||
|
blank_slate: This Application has no members
|
||||||
form:
|
form:
|
||||||
env_mgmt:
|
env_mgmt:
|
||||||
label: Manage Environments
|
label: Manage Environments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user