Move text into translations file

This commit is contained in:
leigh-mil
2019-08-08 11:39:57 -04:00
parent a6eb89ffb8
commit 1b86147ab6
5 changed files with 34 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
{% block content %}
<form id="add-ccpo-user-form" action="{{ url_for('ccpo.submit_add_new_ccpo_user') }}" method="POST">
{{ form.csrf_token }}
<h1>Add new CCPO user</h1>
<h1>{{ "ccpo.form.add_user_title" | translate }}</h1>
<div class='form-row'>
<div class='form-col form-col--two-thirds'>
{{ TextInput(form.dod_id, validation='dodId') }}
@@ -16,7 +16,7 @@
type='submit'
v-bind:disabled="invalid"
class='action-group__action usa-button'
value='Next'>
value='{{ "common.next" | translate }}'>
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('ccpo.ccpo_users') }}">{{ "common.cancel" | translate }}</a>
</div>
</div>

View File

@@ -5,13 +5,13 @@
{% block content %}
{% if new_user %}
{% call Alert('Confirm new CCPO user') %}
{% call Alert('ccpo.form.confirm_user_title' | translate) %}
<form id="add-ccpo-user-form" action="{{ url_for('ccpo.confirm_new_ccpo_user') }}" method="POST">
{{ form.csrf_token }}
<input type="hidden" name="dod_id" value="{{ form.dod_id.data }}">
<div>
<p>
Please confirm that the user details below match the user being given CCPO permissions.
{{ "ccpo.form.confirm_user_text" | translate }}
</p>
<p>
{{ new_user.full_name }}
@@ -25,17 +25,21 @@
type='submit'
v-bind:disabled="invalid"
class='action-group__action usa-button'
value='Confirm and Add User'>
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('ccpo.ccpo_users') }}">{{ "common.cancel" | translate }}</a>
value='{{ "ccpo.form.confirm_button" | translate }}'>
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('ccpo.ccpo_users') }}">
{{ "common.cancel" | translate }}
</a>
</div>
</form>
{% endcall %}
{% else %}
{% call Alert('forms.ccpo_user.user_not_found' | translate) %}
To add someone as a CCPO user, they must already have an ATAT account.
{% call Alert('ccpo.form.user_not_found_title' | translate) %}
<p>
{{ "ccpo.form.user_not_found_text" | translate }}
</p>
<div class='action-group'>
<a class='action-group__action icon-link icon-link--default' href="{{ url_for('ccpo.ccpo_users') }}">
Return to list of CCPO users
{{ "ccpo.form.return_link" | translate }}
</a>
</div>
{% endcall %}

View File

@@ -5,7 +5,7 @@
{% block content %}
<div class='col'>
<div class="h2">
CCPO Users
{{ "ccpo.users_title" | translate }}
</div>
{% include "fragments/flash.html" %}
@@ -13,9 +13,9 @@
<table>
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>DoD ID</th>
<th>{{ "ccpo.name_heading" | translate }}</th>
<th>{{ "ccpo.email_heading" | translate }}</th>
<th>{{ "ccpo.dod_id_heading" | translate }}</th>
</tr>
</thead>
<tbody>
@@ -32,7 +32,7 @@
{% if user_can(permissions.CREATE_CCPO_USER) %}
<a class="icon-link modal-link" href="{{ url_for('ccpo.add_new_ccpo_user')}}">
Add new CCPO user {{ Icon("plus") }}
{{ "ccpo.add_user" | translate }} {{ Icon("plus") }}
</a>
{% endif %}