Remove form mixin from toggler component

This commit is contained in:
leigh-mil 2019-11-13 14:08:51 -05:00
parent 3e57579990
commit 0abe27eb36
2 changed files with 13 additions and 12 deletions

View File

@ -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,
}, },

View File

@ -78,6 +78,7 @@
{% 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">
<base-form inline-template>
<form action="{{ url_for('applications.update_environment', environment_id=env['id']) }}" method="post" v-on:submit="handleSubmit"> <form action="{{ url_for('applications.update_environment', environment_id=env['id']) }}" method="post" v-on:submit="handleSubmit">
{{ edit_form.csrf_token }} {{ edit_form.csrf_token }}
{{ TextInput(edit_form.name, validation='requiredField', optional=False) }} {{ TextInput(edit_form.name, validation='requiredField', optional=False) }}
@ -87,6 +88,7 @@
) )
}} }}
</form> </form>
</base-form>
</li> </li>
</ul> </ul>
{% endcall %} {% endcall %}