LT-67: Displaying the validation error messages inside the form

This commit is contained in:
Bruno Alves de Faria committed 2016-08-31 19:17:00 -03:00
1 parent a47ecf0aac
commit 33e7297064
9 files changed
+84 -8

No files matched your search

@@ -2,7 +2,6 @@
<div
id="{{this.id}}"
class="{{this.class}}"
data-key="{{this.pathKey}}"
{{this.tagAttributes}}
>
{{>UI.contentBlock}}
@@ -11,6 +11,13 @@
target="{{this.target}}"
{{this.tagAttributes}}
>
{{#if validationErrors}}
<div class="validation-error-container alert alert-danger" role="alert">
{{#each error in validationErrors}}
<p><a href="#" class="text-danger" data-target="{{error.key}}">{{error.message}}</a></p>
{{/each}}
</div>
{{/if}}
{{>UI.contentBlock}}
</form>
</template>
@@ -6,7 +6,6 @@
name="{{this.name}}"
value="{{reactive this.value}}"
placeholder="{{this.placeholder}}"
data-key="{{this.pathKey}}"
{{this.tagAttributes}}
>
{{>UI.contentBlock}}
@@ -5,7 +5,6 @@
name="{{this.name}}"
multiple="{{#if this.multiple}}multiple{{/if}}"
disabled="{{#if this.disabled}}disabled{{/if}}"
data-key="{{this.pathKey}}"
{{this.tagAttributes}}
>
{{>UI.contentBlock}}