Move text to translations file

This commit is contained in:
leigh-mil 2019-05-09 14:32:26 -04:00
parent be178733cf
commit e0872d1095
2 changed files with 14 additions and 6 deletions

View File

@ -5,9 +5,9 @@
{% for env_form in members_form.envs %} {% for env_form in members_form.envs %}
{% if env_form.env_id.data == env['id'] %} {% if env_form.env_id.data == env['id'] %}
<div class='app-team-settings-link'> <div class='app-team-settings-link'>
Need to add someone new to the team? {{ 'fragments.edit_environment_team_form.add_new_member_text' | translate }}
<a href='{{ url_for("applications.team", application_id=application.id) }}'> <a href='{{ url_for("applications.team", application_id=application.id) }}'>
Jump to Team Settings {{ 'fragments.edit_environment_team_form.add_new_member_link' | translate }}
</a> </a>
</div> </div>
<form <form
@ -20,13 +20,15 @@
v-bind:initial-roles='{{ env_form.team_roles.data | tojson }}'> v-bind:initial-roles='{{ env_form.team_roles.data | tojson }}'>
<div> <div>
<div v-for='(role, roleindex) in roles' class='environment-role'> <div v-for='(role, roleindex) in roles' class='environment-role'>
<h4 v-if='checkNoAccess(role.role)'>Unassigned (No Access)</h4> <h4 v-if='checkNoAccess(role.role)'>
{{ 'fragments.edit_environment_team_form.unassigned_title' | translate }}
</h4>
<h4 v-else v-html='role.role'></h4> <h4 v-else v-html='role.role'></h4>
<ul class='environment-role__users'> <ul class='environment-role__users'>
<div <div
v-if="role.members && !role.members.length" v-if="role.members && !role.members.length"
class='environment-role__no-user'> class='environment-role__no-user'>
Currently no members are in this role {{ 'fragments.edit_environment_team_form.no_members' | translate }}
</div> </div>
<li <li
v-for='(member, memberindex) in role.members' v-for='(member, memberindex) in role.members'
@ -58,7 +60,9 @@
v-bind:value='role.role'> v-bind:value='role.role'>
<label <label
v-bind:for="'envs-{{ loop.index0 }}-team_roles-' + roleindex + '-members-' + memberindex + '-role-' + roleinputindex"> v-bind:for="'envs-{{ loop.index0 }}-team_roles-' + roleindex + '-members-' + memberindex + '-role-' + roleinputindex">
<span v-if='checkNoAccess(role.role)'>No Access</span> <span v-if='checkNoAccess(role.role)'>
{{ 'fragments.edit_environment_team_form.no_access' | translate }}
</span>
<span v-else v-html='role.role'></span> <span v-else v-html='role.role'></span>
</label> </label>
</li> </li>

View File

@ -332,7 +332,11 @@ fragments:
explain: AT-AT allows you to create multiple applications within a portfolio. Each application can then be broken down into its own customizable environments. explain: AT-AT allows you to create multiple applications within a portfolio. Each application can then be broken down into its own customizable environments.
new_application_title: Add a new application new_application_title: Add a new application
edit_environment_team_form: edit_environment_team_form:
delete_environment_title: Are you sure you want to delete this environment? delete_environment_title: Are you sure you want to delete this environment?add_new_member_text: Need to add someone new to the team?
add_new_member_link: Jump to Team Settings
unassigned_title: Unassigned (No Access)
no_members: Currently no members are in this role
no_access: No Access
edit_user_form: edit_user_form:
date_last_training_tooltip: When was the last time you completed the IA training? <br> Information Assurance (IA) training is an important step in cyber awareness. date_last_training_tooltip: When was the last time you completed the IA training? <br> Information Assurance (IA) training is an important step in cyber awareness.
save_details_button: Save save_details_button: Save