Put app strings into a YAML file for easy editing by product owner

This commit is contained in:
George Drummond
2018-12-13 15:02:52 -05:00
parent 8eecb62034
commit f806425d91
35 changed files with 845 additions and 246 deletions

View File

@@ -1,6 +1,6 @@
{% from "components/text_input.html" import TextInput %}
{% set title_text = 'Edit {} project'.format(project.name) if project else 'Add a new project' %}
{% set title_text = ('fragments.edit_project_form.existing_project_title' | translate({ "project_name": project.name })) if project else ('fragments.edit_project_form.new_project_title' | translate) %}
{{ form.csrf_token }}
<div class="panel">
@@ -10,7 +10,7 @@
<div class="panel__content">
<p>
AT-AT allows you to organize your workspace into multiple projects, each of which may have environments.
{{ "fragments.edit_project_form.explain" | translate }}
</p>
{{ TextInput(form.name) }}
{{ TextInput(form.description, paragraph=True) }}

View File

@@ -23,11 +23,20 @@
{{ OptionsInput(form.service_branch) }}
{{ OptionsInput(form.citizenship) }}
{{ OptionsInput(form.designation) }}
{{ DateInput(form.date_latest_training,tooltip="When was the last time you completed the IA training? <br> Information Assurance (IA) training is an important step in cyber awareness.",placeholder="MM / DD / YYYY", validation="date") }}
{{
DateInput(
form.date_latest_training,
tooltip=("fragments.edit_user_form.date_last_training_tooltip" | translate),
placeholder="MM / DD / YYYY",
validation="date"
)
}}
</div>
</div>
<div class='action-group'>
<button class='usa-button usa-button-big' type='submit'>Save Details</button>
<button class='usa-button usa-button-big' type='submit'>
{{ "fragments.edit_user_form.save_details_button" | translate }}
</button>
</div>
</form>

View File

@@ -1,17 +1,17 @@
{% from "components/icon.html" import Icon %}
<p>
The CCPO will review and respond to your request in 3 business days. Youll be notified via email or phone. Please note if your request is for over $1M of JEDI cloud resources it will require a manual review by the CCPO.
{{ "fragments.pending_ccpo_acceptance_alert.paragraph_1" | translate }}
</p>
<p>
While your request is being reviewed, your next step is to create a Task Order (TO) associated with the JEDI Cloud. Please contact a Contracting Officer (KO), Contracting Officer Representative (COR), or a Financial Manager to help with this step.
{{ "fragments.pending_ccpo_acceptance_alert.paragraph_2" | translate }}
</p>
<div class='alert__actions'>
<a href='/help' class='icon-link'>
{{ Icon('help') }}
Learn more about the JEDI Cloud Task Order and the Financial Verification process.
{{ "fragments.pending_ccpo_acceptance_alert.learn_more_link_text" | translate }}
</a>
</div>

View File

@@ -1,8 +1,8 @@
<p>
The CCPO will review and respond to your Financial Verification submission in 3 business days. You will be notified via email or phone.
{{ "fragments.pending_ccpo_approval_modal.paragraph_1" | translate }}
</p>
<p>
Once the financial verification is approved you will be invited to create your JEDI Workspace and set-up your projects. Click here for more details.
{{ "fragments.pending_ccpo_approval_modal.paragraph_2" | translate }}
</p>

View File

@@ -1,19 +1,16 @@
{% from "components/icon.html" import Icon %}
<p>
The next step is to create a Task Order associated with JEDI Cloud.
Please contact a Contracting Officer (KO), Contracting Officer
Representative (COR), or a Financial Manager to help with this step.
{{ "fragments.pending_financial_verification.paragraph_1" | translate }}
</p>
<p>
Once the Task Order has been created, you will be asked to provide
details about the task order in the Financial Verification step.
{{ "fragments.pending_financial_verification.paragraph_2" | translate }}
</p>
<div class='alert__actions'>
<a href='/help' class='icon-link'>
{{ Icon('help') }}
Learn more about the JEDI Cloud Task Order and the Financial Verification process.
{{ "fragments.pending_financial_verification.learn_more_link_text" | translate }}
</a>
</div>