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
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
{% 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.add_environment", application_id=application.id) }}' autocomplete="off" enctype="multipart/form-data">
|
||||
{{ form.csrf_token }}
|
||||
<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>
|
||||
@@ -17,7 +19,9 @@
|
||||
<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 %}
|
||||
|
||||
{{
|
||||
|
@@ -128,9 +128,6 @@
|
||||
</div>
|
||||
<div class="panel__footer">
|
||||
<div class="action-group">
|
||||
<a class='icon-link'>
|
||||
{{ "portfolios.applications.add_environment" | translate }}
|
||||
{{ Icon('plus') }}
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user