Files
atst/templates/fragments/applications/add_new_environment.html
Montana f07ea38b9b Functionality for adding an env
- uses two route functions - one for update app, another for add
environment
- uses a second form for the app settings page
- uses the /environments/new url naming convention
2019-05-14 11:51:10 -04:00

38 lines
1.3 KiB
HTML

{% from 'components/save_button.html' import SaveButton %}
{% from "components/text_input.html" import TextInput %}
{% from "components/toggle_list.html" import ToggleButton, ToggleSection %}
<form method='POST' id="add-new-env" action='{{ url_for("applications.new_environment", application_id=application.id) }}' autocomplete="off" enctype="multipart/form-data">
{{ new_env_form.csrf_token }}
<toggler inline-template>
<div>
{% set add_env_link %}
<a class='icon-link'>
{{ "portfolios.applications.add_environment" | translate }}
{{ Icon('plus') }}
</a>
{% endset %}
{% call ToggleSection(section_name="add-new-environment") %}
<div class="accordion-table__item-content">
<span>{{ "portfolios.applications.create_new_env" | translate }}</span>
<div>{{ "portfolios.applications.create_new_env_info" | translate }}</div>
<span>{{ "portfolios.applications.enter_env_name" | translate }}</span>
{{ TextInput(new_env_form.name) }}
</div>
{{ SaveButton(text=('common.save' | translate), element="input", form="add-new-env") }}
{% endcall %}
{{
ToggleButton(
open_html=add_env_link,
close_html=add_env_link,
section_name="add-new-environment"
)
}}
</div>
</toggler>
</form>