From c00bf4758844378ce2b3777e92ca2c15a74bbf30 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Thu, 22 Mar 2018 12:20:23 -0300 Subject: [PATCH] Adds button to HelpButton component. Create getHelperMessage and getHelperTitle functions on i18n object to access Help information on each entities. --- .../components/edition/field-edition-form.vue | 55 ++++++++++------ .../edition/filter-edition-form.vue | 34 +++++++--- src/admin/components/lists/fields-list.vue | 15 +++-- src/admin/components/lists/filters-list.vue | 15 +++-- .../{help-tooltip.vue => help-button.vue} | 64 ++++++++++++++++--- src/admin/js/main.js | 3 + src/admin/js/utilities.js | 26 +++++++- src/admin/other/grip-icon.vue | 11 ---- src/admin/scss/tainacan-admin.scss | 9 --- 9 files changed, 161 insertions(+), 71 deletions(-) rename src/admin/components/other/{help-tooltip.vue => help-button.vue} (51%) delete mode 100644 src/admin/other/grip-icon.vue diff --git a/src/admin/components/edition/field-edition-form.vue b/src/admin/components/edition/field-edition-form.vue index 9c6c7c9ed..bb9421671 100644 --- a/src/admin/components/edition/field-edition-form.vue +++ b/src/admin/components/edition/field-edition-form.vue @@ -7,8 +7,12 @@ :message="formErrors['name'] != undefined ? formErrors['name'] : ''"> + * + + + @@ -16,9 +20,13 @@ :addons="false" :type="formErrors['description'] != undefined ? 'is-danger' : ''" :message="formErrors['description'] != undefined ? formErrors['description'] : ''"> - + @@ -26,7 +34,13 @@ :addons="false" :type="formErrors['status'] != undefined ? 'is-danger' : ''" :message="formErrors['status'] != undefined ? formErrors['status'] : ''"> - +
{{ $i18n.get('label_required') }} - + + {{ $i18n.get('label_allow_multiple') }} - + + {{ $i18n.get('label_unique_value') }} - + + + :errors="formErrors['field_type_options']" + v-if="(editForm.field_type_object && editForm.field_type_object.form_component) || editForm.edit_form == ''" + :is="editForm.field_type_object.form_component" + :field="editForm" + v-model="editForm.field_type_options">
@@ -117,7 +140,6 @@