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 } ];