Update text input vue component so that it only shows the validation icon on mount when the form is not a form that is inset into a page
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
optional=True,
|
||||
showLabel=True,
|
||||
watch=False,
|
||||
show_validation=True) -%}
|
||||
show_validation=True,
|
||||
inset_form=False) -%}
|
||||
|
||||
<textinput
|
||||
v-cloak
|
||||
@@ -28,6 +29,7 @@
|
||||
{% if initial_value or field.data is not none %}initial-value='{{ initial_value or field.data }}'{% endif %}
|
||||
{% if field.errors %}v-bind:initial-errors='{{ field.errors | list }}'{% endif %}
|
||||
v-bind:optional={{ optional|lower }}
|
||||
v-bind:inset-form={{ inset_form|lower }}
|
||||
key='{{ field.name }}'
|
||||
:watch='{{ watch | string | lower }}'
|
||||
inline-template>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{{ portfolio_form.csrf_token }}
|
||||
<div class='form-row'>
|
||||
<div class='form-col form-col--half'>
|
||||
{{ TextInput(portfolio_form.name, validation="portfolioName") }}
|
||||
{{ TextInput(portfolio_form.name, validation="portfolioName", inset_form=True) }}
|
||||
</div>
|
||||
<div class='edit-portfolio-name action-group'>
|
||||
{{ SaveButton(text='Save', additional_classes='usa-button-big') }}
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
</p>
|
||||
<div class="form-row">
|
||||
<div class="form-col form-col--two-thirds">
|
||||
{{ TextInput(application_form.name) }}
|
||||
{{ TextInput(application_form.description, paragraph=True) }}
|
||||
{{ TextInput(application_form.name, inset_form=True) }}
|
||||
{{ TextInput(application_form.description, paragraph=True, inset_form=True) }}
|
||||
</div>
|
||||
<div class="form-col form-col--third">
|
||||
{% if user_can(permissions.DELETE_APPLICATION) %}
|
||||
|
||||
Reference in New Issue
Block a user