Skip to content

Commit

Permalink
fix: aligned with issue #84
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed Oct 7, 2016
1 parent 0b1df2c commit 5d6c0c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/formGenerator.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<div>
<fieldset v-if="schema != null" class="vue-form-generator">
<div v-for="field in fields" v-if="fieldVisible(field)" :class="getFieldRowClasses(field)" class="form-group">
<template v-for="field in fields">
<div v-if="fieldVisible(field)" :class="getFieldRowClasses(field)" class="form-group">
<label>{{ field.label }}<span v-if="field.help" class="help"><i class="icon"></i>
<div v-html="field.help" class="helpText"></div></span></label>
<div class="field-wrap">
Expand All @@ -13,6 +14,7 @@
<div v-if="field.hint" class="hint">{{ field.hint }}</div>
<div v-if="errorsVisibility(field)" class="errors"><span v-for="error in field.errors" track-by="$index">{{ error }}</span></div>
</div>
</template>
</fieldset>
</div>
</template>
Expand Down

0 comments on commit 5d6c0c7

Please sign in to comment.