Update app members blank slate and section header text

This commit is contained in:
leigh-mil 2019-10-21 15:23:57 -04:00
parent 176b9b4e25
commit f71f2c91fb
2 changed files with 23 additions and 49 deletions

View File

@ -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,26 +142,25 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% if user_can(permissions.CREATE_APPLICATION_MEMBER) %}
<a class="usa-button usa-button-secondary add-new-button" v-on:click="openModal('{{ new_member_modal_name }}')">
{{ "portfolios.applications.add_member" | translate }}
</a>
{% endif %}
</div> </div>
{% if user_can(permissions.CREATE_APPLICATION_MEMBER) %}
{{ 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 %}
</section> </section>
{% endif %} {% endif %}
{% 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 }}')">
{{ "portfolios.applications.add_member" | 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>
{% endmacro %} {% endmacro %}

View File

@ -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