Skip to content

Commit

Permalink
Use the default field wrapper which provides the benefit of error and…
Browse files Browse the repository at this point in the history
… the help text as well and others that were included with this field.
  • Loading branch information
chrispelzer committed Jul 25, 2019
1 parent ba138cc commit fd6c2fc
Show file tree
Hide file tree
Showing 2 changed files with 11,010 additions and 17 deletions.
11,007 changes: 11,006 additions & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

20 changes: 4 additions & 16 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,13 @@
<template>
<field-wrapper>
<div class="w-1/5 px-8 py-6">
<slot>
<form-label :for="field.name">
{{ field.name }}
</form-label>
</slot>
</div>

<div class="w-4/5 px-8 py-6">
<default-field :field="field" :errors="errors" :full-width-content="true">
<template slot="field">
<vue-ckeditor
:id="field.name"
v-model="value"
:config="config"
/>

<p v-if="hasError" class="my-2 text-danger">
{{ firstError }}
</p>
</div>
</field-wrapper>
</template>
</default-field>
</template>


Expand Down

0 comments on commit fd6c2fc

Please sign in to comment.