53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
{% from "components/multi_checkbox_input.html" import MultiCheckboxInput %}
|
|
{% from "components/options_input.html" import OptionsInput %}
|
|
{% from "components/save_button.html" import SaveButton %}
|
|
{% from "components/text_input.html" import TextInput %}
|
|
{% from "components/sticky_cta.html" import StickyCTA %}
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<main class="usa-section usa-content">
|
|
{% include "fragments/flash.html" %}
|
|
<div class='portfolio-header__name'>
|
|
<p>{{ "portfolios.header" | translate }}</p>
|
|
<h1>{{ "New Portfolio" }}</h1>
|
|
</div>
|
|
{{ StickyCTA(text="Create New Portfolio") }}
|
|
<base-form inline-template>
|
|
<form id="portfolio-create" action="{{ url_for('portfolios.create_portfolio') }}" method="POST">
|
|
{{ form.csrf_token }}
|
|
<div class="form-row form-row--separated">
|
|
<div class="form-col">
|
|
{{ TextInput(form.name, optional=False) }}
|
|
{{"forms.portfolio.name.help_text" | translate | safe }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row form-row--separated">
|
|
<div class="form-col">
|
|
{{ TextInput(form.description, paragraph=True) }}
|
|
{{"forms.portfolio.description.help_text" | translate | safe }}
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-col">
|
|
{{ MultiCheckboxInput(form.defense_component, optional=False) }}
|
|
{{ "forms.portfolio.defense_component.help_text" | translate | safe }}
|
|
</div>
|
|
</div>
|
|
<div class='action-group'>
|
|
{{
|
|
SaveButton(
|
|
text=('common.save' | translate),
|
|
form="portfolio-create",
|
|
element="input",
|
|
)
|
|
}}
|
|
</div>
|
|
</form>
|
|
</base-form>
|
|
</main>
|
|
{% endblock %}
|
|
|