PluginProbe
The Innovative Form Builder – IvyForms / 0.8
The Innovative Form Builder – IvyForms v0.8
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / constants / templateCategories.ts

templateCategories.ts in The Innovative Form Builder – IvyForms 0.8, at frontend/src/constants/templateCategories.ts

79 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { computed } from 'vue'
2 import type { MenuItem } from '@/views/_components/menu/IvyMenuAccordion.vue'
3 import { useLabels } from '@/composables/useLabels'
4
5 export const templateCategories = computed<MenuItem[]>(() => {
6 const { getLabel } = useLabels()
7
8 return [
9 {
10 index: 'all',
11 label: getLabel('all_templates'),
12 },
13 {
14 index: 'favourites',
15 label: getLabel('favourites'),
16 },
17 {
18 index: 'business-sales',
19 label: getLabel('business_sales_forms'),
20 subItems: [
21 {
22 index: 'order-forms',
23 label: getLabel('order_forms'),
24 },
25 {
26 index: 'contact-forms',
27 label: getLabel('contact_forms'),
28 },
29 ],
30 },
31 {
32 index: 'requests-approvals',
33 label: getLabel('requests_approvals'),
34 subItems: [
35 {
36 index: 'maintenance-request',
37 label: getLabel('maintenance_request_forms'),
38 },
39 {
40 index: 'leave-request',
41 label: getLabel('leave_request_forms'),
42 },
43 ],
44 },
45 {
46 index: 'event-booking',
47 label: getLabel('event_booking_forms'),
48 subItems: [
49 {
50 index: 'event-registration',
51 label: getLabel('event_registration_form'),
52 },
53 {
54 index: 'booking-forms',
55 label: getLabel('booking_forms'),
56 },
57 {
58 index: 'waiver-forms',
59 label: getLabel('waiver_forms'),
60 },
61 ],
62 },
63 {
64 index: 'consents-releases',
65 label: getLabel('consents_releases'),
66 subItems: [
67 {
68 index: 'consent-forms',
69 label: getLabel('consent_forms'),
70 },
71 {
72 index: 'release-forms',
73 label: getLabel('release_forms'),
74 },
75 ],
76 },
77 ]
78 })
79