Update copy on new portfolio form. Style cancel link as a button.

This commit is contained in:
leigh-mil 2020-01-19 07:09:25 -05:00
parent 0893ec18ce
commit 7c78e59624
3 changed files with 11 additions and 5 deletions

View File

@ -28,6 +28,7 @@ class PortfolioForm(BaseForm):
class PortfolioCreationForm(PortfolioForm):
defense_component = SelectMultipleField(
translate("forms.portfolio.defense_component.title"),
choices=SERVICE_BRANCHES,
widget=ListWidget(prefix_label=False),
option_widget=CheckboxInput(),

View File

@ -12,9 +12,9 @@
{% include "fragments/flash.html" %}
<div class='portfolio-header__name'>
<p>{{ "portfolios.header" | translate }}</p>
<h1>{{ "New Portfolio" }}</h1>
<h1>{{ "portfolios.new.title" | translate }}</h1>
</div>
{{ StickyCTA(text="Create New Portfolio") }}
{{ StickyCTA(text="portfolios.new.cta_step_1"|translate, context=("portfolios.new.sticky_header_context"|translate({"step": "1"}) )) }}
<base-form inline-template>
<div class="row">
<form id="portfolio-create" class="col" action="{{ url_for('portfolios.create_portfolio') }}" method="POST">
@ -39,9 +39,9 @@
</div>
<div class='action-group-footer'>
{% block next_button %}
{{ SaveButton(text=('common.save' | translate), form="portfolio-create", element="input") }}
{{ SaveButton(text=('portfolios.new.save' | translate), form="portfolio-create", element="input") }}
{% endblock %}
<a href="{{ url_for('atst.home') }}">
<a class="usa-button usa-button-secondary" href="{{ url_for('atst.home') }}">
Cancel
</a>
</form>
@ -49,4 +49,3 @@
</base-form>
</main>
{% endblock %}

View File

@ -260,6 +260,7 @@ forms:
marine_corps: Marine Corps
navy: Navy
other: Other
title: Select DoD component(s) funding your Portfolio
validation_message: You must select at least one defense component.
help_text: |
<p>
@ -450,6 +451,11 @@ portfolios:
'False': ""
'True': Delete Application
header: PORTFOLIO
new:
title: New Portfolio
cta_step_1: Name and Describe Portfolio
sticky_header_context: 'Step {step} of 1'
save: Save Portfolio
members:
archive_button: Delete member
reports: