163 lines
No EOL
3.6 KiB
JavaScript
163 lines
No EOL
3.6 KiB
JavaScript
export const settingsFields = [
|
|
{
|
|
id: 'deptInfo',
|
|
title: 'Information',
|
|
tab: 'department',
|
|
cards: [
|
|
{
|
|
id: 'companyInfo',
|
|
label: 'Company Information',
|
|
fields: [
|
|
{
|
|
id: 'employee_count',
|
|
label: 'Employee Count',
|
|
type: 'header',
|
|
readOnly: true
|
|
},
|
|
{
|
|
id: 'subs_expiration',
|
|
label: 'Subscription Expiration',
|
|
type: 'header',
|
|
readOnly: true
|
|
},
|
|
{
|
|
id: 'company',
|
|
label: 'Company Name',
|
|
type: 'text',
|
|
readOnly: true
|
|
},
|
|
{
|
|
id: 'billing_address',
|
|
label: 'Billing Address',
|
|
type: 'text'
|
|
},
|
|
{
|
|
id: 'town',
|
|
label: 'Town',
|
|
type: 'text'
|
|
},
|
|
{
|
|
id: 'state',
|
|
label: 'State',
|
|
type: 'text'
|
|
},
|
|
{
|
|
id: 'postal',
|
|
label: 'Postal Code',
|
|
type: 'text'
|
|
},
|
|
{
|
|
id: 'country',
|
|
label: 'Country',
|
|
type: 'text'
|
|
},
|
|
{
|
|
id: 'phone',
|
|
label: 'Phone Number',
|
|
type: 'phone'
|
|
},
|
|
{
|
|
id: 'display_time',
|
|
label: 'Display Time',
|
|
type: 'select',
|
|
options: [
|
|
{ label: '12 Hour AM/PM', value: '12' },
|
|
{ label: '24 Hour', value: '24' }
|
|
]
|
|
},
|
|
{
|
|
id: 'start_day',
|
|
label: 'Calendar Start Day',
|
|
type: 'select',
|
|
options: [
|
|
{ label: 'Sunday', value: 'sunday' },
|
|
{ label: 'Monday', value: 'monday' }
|
|
]
|
|
}
|
|
],
|
|
accessRequired: 'administrator'
|
|
}
|
|
],
|
|
accessRequired: 'administrator'
|
|
},
|
|
{
|
|
id: 'deptRoles',
|
|
title: 'Roles',
|
|
tab: 'department',
|
|
cards: [
|
|
// Need to decide if Admins should be able to Add other Admins
|
|
// {
|
|
// id: 'companyAdmins',
|
|
// label: 'Company Administrators',
|
|
// fields: [
|
|
// {
|
|
// id: 'administrators',
|
|
// type: 'transfer',
|
|
// origList: 'users',
|
|
// oldListLabel: 'Users',
|
|
// newListLabel: 'Administrators'
|
|
// },
|
|
// ],
|
|
// accessRequired: 'administrator',
|
|
// removeEdit: true
|
|
// },
|
|
{
|
|
id: 'companyMgrs',
|
|
label: 'Company Managers',
|
|
fields: [
|
|
{
|
|
id: 'managers',
|
|
type: 'transfer',
|
|
origList: 'users',
|
|
oldListLabel: 'Users',
|
|
newListLabel: 'Managers'
|
|
},
|
|
],
|
|
accessRequired: 'administrator',
|
|
removeEdit: true
|
|
},
|
|
{
|
|
id: 'companySched',
|
|
label: 'Company Schedulers',
|
|
fields: [
|
|
{
|
|
id: 'schedulers',
|
|
type: 'transfer',
|
|
origList: 'users',
|
|
oldListLabel: 'Users',
|
|
newListLabel: 'Schedulers'
|
|
},
|
|
],
|
|
accessRequired: 'manager',
|
|
removeEdit: true
|
|
}
|
|
],
|
|
accessRequired: 'manager'
|
|
},
|
|
{
|
|
id: 'deptSubs',
|
|
title: 'Subscriptions',
|
|
tab: 'department',
|
|
cards: [],
|
|
accessRequired: 'administrator'
|
|
},
|
|
{
|
|
id: 'personalInfo',
|
|
title: 'Information',
|
|
tab: 'personal',
|
|
cards: []
|
|
},
|
|
{
|
|
id: 'personalNoti',
|
|
title: 'Notifications',
|
|
tab: 'personal',
|
|
cards: []
|
|
},
|
|
{
|
|
id: 'deptNoti',
|
|
title: 'Notifications',
|
|
tab: 'department',
|
|
cards: [],
|
|
accessRequired: 'administrator'
|
|
}
|
|
]; |