diff --git a/ayanova/src/api/gzmenu.js b/ayanova/src/api/gzmenu.js
index fb80138c..d33292ee 100644
--- a/ayanova/src/api/gzmenu.js
+++ b/ayanova/src/api/gzmenu.js
@@ -43,14 +43,56 @@ export default {
vm.appBar.menuItems.push({ divider: true, inset: false });
}
- //WIKI
+ //WIKI, ATTACHMENTS, RECORD HISTORY
if (formAyaType != 0 && formRecordId != 0) {
+ vm.appBar.menuItems.push({
+ title: window.$gz.locale.get("Attachments"),
+ icon: "paperclip",
+ key: "app:attachments",
+ data: { ayaType: formAyaType, recordId: formRecordId }
+ });
+
vm.appBar.menuItems.push({
title: window.$gz.locale.get("WikiPage"),
icon: "feather",
key: "app:wiki",
data: { ayaType: formAyaType, recordId: formRecordId }
});
+
+ vm.appBar.menuItems.push({
+ title: window.$gz.locale.get("Review"),
+ icon: "calendar-check",
+ key: "app:review",
+ data: { ayaType: formAyaType, recordId: formRecordId }
+ });
+
+ vm.appBar.menuItems.push({
+ title: window.$gz.locale.get("History"),
+ icon: "history",
+ key: "app:history",
+ data: { ayaType: formAyaType, recordId: formRecordId }
+ });
+ }
+
+ //CUSTOMIZE
+ //set custom fields and link to locale text editor
+
+ if (
+ ctx.formData &&
+ ctx.formData.formCustomTemplateKey != undefined &&
+ window.$gz.role.hasRole(window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull)
+ ) {
+ //add customize menu item
+ //DIVIDER
+ //Insert the devider between context and global items
+ vm.appBar.menuItems.push({ divider: true, inset: false });
+ //customize
+ vm.appBar.menuItems.push({
+ title: window.$gz.locale.get("Customize"),
+ icon: "sliders-h",
+ data: ctx.formData.formCustomTemplateKey,
+ key: "app:customize"
+ });
}
//GLOBAL BOTTOM PORTION
@@ -61,13 +103,6 @@ export default {
//global menu items
- //LOGOUT
- vm.appBar.menuItems.push({
- title: window.$gz.locale.get("Logout"),
- icon: "sign-out-alt",
- key: "app:logout"
- });
-
//divider
vm.appBar.menuItems.push({ divider: true, inset: false });
@@ -94,27 +129,12 @@ export default {
key: "app:nav:abt",
data: "ay-about"
});
-
- //CUSTOMIZE
- //set custom fields and link to locale text editor
-
- if (
- ctx.formData &&
- ctx.formData.formCustomTemplateKey != undefined &&
- window.$gz.role.hasRole(window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull)
- ) {
- //add customize menu item
- //DIVIDER
- //Insert the devider between context and global items
- vm.appBar.menuItems.push({ divider: true, inset: false });
- //customize
- vm.appBar.menuItems.push({
- title: window.$gz.locale.get("Customize"),
- icon: "sliders-h",
- data: ctx.formData.formCustomTemplateKey,
- key: "app:customize"
- });
- }
+ //LOGOUT
+ vm.appBar.menuItems.push({
+ title: window.$gz.locale.get("Logout"),
+ icon: "sign-out-alt",
+ key: "app:logout"
+ });
},
///////////////////////////////
// CHANGE HANDLER
@@ -182,12 +202,30 @@ export default {
params: { ayatype: item.data }
});
break;
+ case "attachments":
+ vm.$router.push({
+ name: "ay-attachments",
+ params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
+ });
+ break;
case "wiki":
vm.$router.push({
name: "ay-wiki",
params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
});
break;
+ case "review":
+ vm.$router.push({
+ name: "ay-review",
+ params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
+ });
+ break;
+ case "history":
+ vm.$router.push({
+ name: "ay-history",
+ params: { ayatype: item.data.ayaType, recordid: item.data.recordId }
+ });
+ break;
case "logout":
vm.$router.push("/login");
break;
diff --git a/ayanova/src/router.js b/ayanova/src/router.js
index ae17e220..876d39c7 100644
--- a/ayanova/src/router.js
+++ b/ayanova/src/router.js
@@ -376,13 +376,31 @@ export default new Router({
component: () =>
import(/* webpackChunkName: "ay" */ "./views/ay-customize.vue")
},
+ {
+ path: "/ay-attachments/:ayatype/:recordid",
+ name: "ay-attachments",
+ component: () =>
+ import(/* webpackChunkName: "home" */ "./views/ay-attachments.vue")
+ },
{
path: "/ay-wiki/:ayatype/:recordid",
name: "ay-wiki",
component: () =>
import(/* webpackChunkName: "home" */ "./views/ay-wiki.vue")
},
-
+ {
+ path: "/ay-review/:ayatype/:recordid",
+ name: "ay-review",
+ component: () =>
+ import(/* webpackChunkName: "home" */ "./views/ay-review.vue")
+ },
+ {
+ path: "/ay-history/:ayatype/:recordid",
+ name: "ay-history",
+ component: () =>
+ import(/* webpackChunkName: "home" */ "./views/ay-history.vue")
+ },
+ //TEST TEST TEST TEST TEST
{
//TEST WIDGETS
path: "/testinventory",
diff --git a/ayanova/src/views/ay-history.vue b/ayanova/src/views/ay-history.vue
new file mode 100644
index 00000000..28bbb412
--- /dev/null
+++ b/ayanova/src/views/ay-history.vue
@@ -0,0 +1,21 @@
+
+
+
+
+