diff --git a/templates/applications/fragments/members.html b/templates/applications/fragments/members.html index 4c758178..a04df7b8 100644 --- a/templates/applications/fragments/members.html +++ b/templates/applications/fragments/members.html @@ -24,33 +24,11 @@
{% if not application.members %}
-

{{ ("portfolios.applications.team_settings.blank_slate.title" | translate) }}

- - {{ Icon('avatar') }} - - {% if not user_can(permissions.CREATE_APPLICATION_MEMBER) %} -

{{ ("portfolios.applications.team_settings.blank_slate.sub_message" | translate) }}

- {% endif %} - - {% if user_can(permissions.CREATE_APPLICATION_MEMBER) %} - {% set new_member_modal_name = "add-app-mem" %} - - {{ "portfolios.applications.team_settings.blank_slate.action_label" | translate }} - - {{ 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 %} +

+ {{ ("portfolios.applications.members.blank_slate" | translate) }} +

- {% else %} - {% set new_member_modal_name = "add-app-mem" %} {% for member in members %} {%- if user_can(permissions.EDIT_APPLICATION_MEMBER) %} @@ -115,7 +93,7 @@ - + @@ -164,26 +142,25 @@ {% endfor %}
MemberName Application Permissions Environment Access
- {% if user_can(permissions.CREATE_APPLICATION_MEMBER) %} - - {{ "portfolios.applications.add_member" | translate }} - - {% endif %}
- - {% 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 %} {% endif %} + {% if user_can(permissions.CREATE_APPLICATION_MEMBER) %} + {% set new_member_modal_name = "add-app-mem" %} + + {{ "portfolios.applications.add_member" | translate }} + + + {{ 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 %} {% endmacro %} diff --git a/translations.yaml b/translations.yaml index 7ff39092..b3c5a0a4 100644 --- a/translations.yaml +++ b/translations.yaml @@ -310,7 +310,7 @@ portfolios: applications: add_application_text: Add a new application add_environment: Create an Environment - add_member: Add a New Team Member + add_member: Add Team Member add_another_environment: Add another environment app_settings_text: App settings new: @@ -376,13 +376,9 @@ portfolios: settings_heading: Application Settings settings: name_description: Application name and description - team_members: Team Members + team_members: Application Team environments: Application Environments 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 section: table: @@ -394,6 +390,7 @@ portfolios: add_to_environment: Add to existing environment team_text: Team members: + blank_slate: This Application has no members form: env_mgmt: label: Manage Environments