Move text into translations

This commit is contained in:
leigh-mil 2019-08-08 14:14:00 -04:00
parent e35399d8f5
commit 0745539853
2 changed files with 7 additions and 3 deletions

View File

@ -35,7 +35,7 @@
<td>{{ user.dod_id }}</td> <td>{{ user.dod_id }}</td>
<td> <td>
<a v-on:click="openModal('{{ modal_id }}')" class='usa-button {{ disable_button_class }}'> <a v-on:click="openModal('{{ modal_id }}')" class='usa-button {{ disable_button_class }}'>
Disable {{ "common.disable" | translate }}
</a> </a>
</td> </td>
</tr> </tr>
@ -58,7 +58,7 @@
{{ {{
Alert( Alert(
title=("components.modal.destructive_title" | translate), title=("components.modal.destructive_title" | translate),
message="Confirm removing CCPO superuser access from {}".format(user.full_name), message=("ccpo.disable_user.alert_message" | translate("user_name": user.full_name)),
level="warning" level="warning"
) )
}} }}
@ -76,7 +76,7 @@
<div class="action-group"> <div class="action-group">
<form method="POST" action="{{ url_for('ccpo.remove_ccpo_access', user_id=user.id)}}"> <form method="POST" action="{{ url_for('ccpo.remove_ccpo_access', user_id=user.id)}}">
<button class="usa-button button-danger" v-bind:disabled="!valid"> <button class="usa-button button-danger" v-bind:disabled="!valid">
Remove Access {{ 'ccpo.disable_user.remove_button' | translate }}
</button> </button>
</form> </form>
<div class="action-group"> <div class="action-group">

View File

@ -37,6 +37,9 @@ ccpo:
return_link: Return to list of CCPO users return_link: Return to list of CCPO users
user_not_found_title: User not found user_not_found_title: User not found
user_not_found_text: To add someone as a CCPO user, they must already have an ATAT account. user_not_found_text: To add someone as a CCPO user, they must already have an ATAT account.
disable_user:
alert_message: "Confirm removing CCPO superuser access from {user_name}"
remove_button: Remove Access
common: common:
cancel: Cancel cancel: Cancel
close: Close close: Close
@ -46,6 +49,7 @@ common:
deactivate: Deactivate deactivate: Deactivate
delete_confirm: 'Please type the word {word} to confirm:' delete_confirm: 'Please type the word {word} to confirm:'
dod_id: DoD ID dod_id: DoD ID
disable: Disable
edit: Edit edit: Edit
email: Email email: Email
members: Members members: Members