From 41d3cb79e65ddc9039eae6fdc0ff7135bd27fe10 Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Fri, 13 Jul 2018 10:46:15 +0530 Subject: [PATCH] [add] PrintView component --- ui/components/Form/Form.vue | 5 +++++ ui/components/Form/FormActions.vue | 2 ++ ui/components/PrintView.vue | 20 ++++++++++++++++++++ ui/pages/ListAndPrintView.vue | 27 +++++++++++++++++++++++++++ ui/routes/index.js | 7 +++++++ 5 files changed, 61 insertions(+) create mode 100644 ui/components/PrintView.vue create mode 100644 ui/pages/ListAndPrintView.vue diff --git a/ui/components/Form/Form.vue b/ui/components/Form/Form.vue index 180201a8..82905614 100644 --- a/ui/components/Form/Form.vue +++ b/ui/components/Form/Form.vue @@ -7,6 +7,7 @@ @save="save" @submit="submit" @revert="revert" + @print="print" />
{{ _('Save') }} {{ _('Submit') }} {{ _('Revert') }} + {{ _('Print') }}
+ diff --git a/ui/pages/ListAndPrintView.vue b/ui/pages/ListAndPrintView.vue new file mode 100644 index 00000000..97b0f0c4 --- /dev/null +++ b/ui/pages/ListAndPrintView.vue @@ -0,0 +1,27 @@ + + + diff --git a/ui/routes/index.js b/ui/routes/index.js index 5c1eef87..e713e42e 100644 --- a/ui/routes/index.js +++ b/ui/routes/index.js @@ -1,4 +1,5 @@ import ListAndForm from '../pages/ListAndForm'; +import ListAndPrintView from '../pages/ListAndPrintView'; export default [ { @@ -12,5 +13,11 @@ export default [ name: 'Form', component: ListAndForm, props: true + }, + { + path: '/print/:doctype/:name', + name: 'PrintView', + component: ListAndPrintView, + props: true } ];