Remove form mixin from toggler component
This commit is contained in:
parent
3e57579990
commit
0abe27eb36
@ -1,12 +1,10 @@
|
|||||||
import FormMixin from '../mixins/form'
|
|
||||||
import optionsinput from './options_input'
|
import optionsinput from './options_input'
|
||||||
import textinput from './text_input'
|
import textinput from './text_input'
|
||||||
|
import BaseForm from './forms/base_form'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'toggler',
|
name: 'toggler',
|
||||||
|
|
||||||
mixins: [FormMixin],
|
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
initialSelectedSection: {
|
initialSelectedSection: {
|
||||||
type: String,
|
type: String,
|
||||||
@ -18,6 +16,7 @@ export default {
|
|||||||
optionsinput,
|
optionsinput,
|
||||||
textinput,
|
textinput,
|
||||||
optionsinput,
|
optionsinput,
|
||||||
|
BaseForm,
|
||||||
toggler: this,
|
toggler: this,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -78,15 +78,17 @@
|
|||||||
{% call ToggleSection(section_name="edit") %}
|
{% call ToggleSection(section_name="edit") %}
|
||||||
<ul>
|
<ul>
|
||||||
<li class="accordion-table__item-toggle-content__expanded">
|
<li class="accordion-table__item-toggle-content__expanded">
|
||||||
<form action="{{ url_for('applications.update_environment', environment_id=env['id']) }}" method="post" v-on:submit="handleSubmit">
|
<base-form inline-template>
|
||||||
{{ edit_form.csrf_token }}
|
<form action="{{ url_for('applications.update_environment', environment_id=env['id']) }}" method="post" v-on:submit="handleSubmit">
|
||||||
{{ TextInput(edit_form.name, validation='requiredField', optional=False) }}
|
{{ edit_form.csrf_token }}
|
||||||
{{
|
{{ TextInput(edit_form.name, validation='requiredField', optional=False) }}
|
||||||
SaveButton(
|
{{
|
||||||
text=("common.save" | translate)
|
SaveButton(
|
||||||
)
|
text=("common.save" | translate)
|
||||||
}}
|
)
|
||||||
</form>
|
}}
|
||||||
|
</form>
|
||||||
|
</base-form>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user