diff --git a/js/components/options_input.js b/js/components/options_input.js index 66e82838..6c82b39b 100644 --- a/js/components/options_input.js +++ b/js/components/options_input.js @@ -22,7 +22,6 @@ export default { type: String, default: '', }, - insetForm: Boolean, }, created: function() { @@ -37,7 +36,7 @@ export default { const showError = (this.initialErrors && this.initialErrors.length) || false return { showError: showError, - showValid: !this.insetForm && (!showError && !!this.initialValue), + showValid: false, validationError: this.initialErrors.join(' '), value: this.initialValue, } diff --git a/templates/components/options_input.html b/templates/components/options_input.html index 05416d93..38c964f5 100644 --- a/templates/components/options_input.html +++ b/templates/components/options_input.html @@ -9,8 +9,7 @@ show_validation=True, disabled=False, watch=False, - optional=True, - inset_form=False) -%} + optional=True) -%}
diff --git a/templates/fragments/edit_user_form.html b/templates/fragments/edit_user_form.html index f13f5753..f73284fd 100644 --- a/templates/fragments/edit_user_form.html +++ b/templates/fragments/edit_user_form.html @@ -22,9 +22,9 @@ {{ TextInput(form.email, validation='email') }} {{ PhoneInput(form.phone_number, form.phone_ext) }} - {{ OptionsInput(form.service_branch, inset_form=True) }} - {{ OptionsInput(form.citizenship, inset_form=True) }} - {{ OptionsInput(form.designation, inset_form=True) }} + {{ OptionsInput(form.service_branch) }} + {{ OptionsInput(form.citizenship) }} + {{ OptionsInput(form.designation) }}