Add form errors display in QuickForm

This commit is contained in:
Bubka 2020-11-14 18:39:24 +01:00
parent 9dd8b1f169
commit 0f53e6f93e

View File

@ -13,6 +13,15 @@
</token-displayer> </token-displayer>
</div> </div>
</div> </div>
<div class="columns is-mobile" v-if="form.errors.any()">
<div class="column">
<p v-for="field in form.errors.errors" class="help is-danger">
<ul>
<li v-for="(error, index) in field">{{ error }}</li>
</ul>
</p>
</div>
</div>
<div class="columns is-mobile"> <div class="columns is-mobile">
<div class="column quickform-footer"> <div class="column quickform-footer">
<div class="field is-grouped is-grouped-centered"> <div class="field is-grouped is-grouped-centered">