From ea441c240be994bf5c6b126b70be63bf7eabd5fa Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Thu, 12 Jul 2018 13:17:56 +0530 Subject: [PATCH] Form - Add Submit Buttons - Disable inputs in submitted form - Simplify FormLayout template --- ui/components/Form/Form.vue | 12 ++++ ui/components/Form/FormActions.vue | 25 ++++++- ui/components/Form/FormLayout.vue | 31 ++++---- ui/components/ModelTable.vue | 11 ++- ui/components/controls/Base.vue | 5 +- ui/components/controls/FrappeControl.vue | 90 ++++++++++++++---------- ui/components/controls/Table.vue | 1 + ui/components/controls/Text.vue | 3 +- 8 files changed, 114 insertions(+), 64 deletions(-) diff --git a/ui/components/Form/Form.vue b/ui/components/Form/Form.vue index 3466ed13..210dd862 100644 --- a/ui/components/Form/Form.vue +++ b/ui/components/Form/Form.vue @@ -4,6 +4,8 @@ v-if="shouldRenderForm" :doc="doc" @save="save" + @submit="submit" + @revert="revert" />
{{ title }}
- {{ _('Save') }} + {{ _('Save') }} + {{ _('Submit') }} + {{ _('Revert') }}