-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.yml
126 lines (105 loc) · 3.45 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# This is the main configuration file of your Dancer app
# env-related settings should go to environments/$env.yml
# all the settings in this file will be loaded at Dancer's startup.
charset: "UTF-8"
session: Storable
session_expires: 8 hours
### In case application is not on the root of domain
#base_url: "admin/"
# Template engine for front page
template: "template_toolkit"
# include timestamp in log format
logger_format: "%t [%P] %L @%D> %m in %f l. %l"
engines:
JSON:
allow_blessed: '1'
canonical: '1'
convert_blessed: '1'
plugins:
Ajax:
content_type: 'application/json'
# Sample configuration for authentication with Dancer::Plugin::Auth::Extensible
Auth::Extensible:
disable_roles: 0
no_login_handler: 1
login_page: /login
logout_page: /logout
denied_page: /login/denied
no_default_pages: 1
no_api_change_warning: 1
realms:
config:
provider: Config
users:
- user: admin
pass:
roles: [superadmin]
### Sample configuration with users in DB
# users:
# provider: 'DBIC'
# db_connection_name: 'default'
# users_resultset: User
# roles_relationship: roles
# role_column: name
# username_column: username
# password_column: password
# password_check: check_password
# Use different name to avoid conflicts in case
# we share domain with another Dancer application
session_name: tedit.session
TableEditor:
### Limit where dropdown field transforms into autocomplete (for related items)
dropdown_threshold: 300
### Default page size on grid view
page_size: 10
### User choices for page size on grid view
page_sizes: [10, 20, 50, 100]
### Url delimiter for items with multiple primary keys
primary_key_delimiter: "_"
### Full permission for "superadmin" role
full: [superadmin]
### Other global permission options
# read: [analyst, secretary]
# update: []
# delete: [boss]
# create: []
# full: [admin]
### Sidebar menu
menu_settings:
### Show "update" link for application upgrade.
update: 0
### Class specific settings
classes:
SomeSampleUserClassName:
### Class specific permissions
read: [normalUserRole]
write: [importantRole, bossRole]
### Rename default class name
label: Employees
### Limit columns shown in grid view
grid_columns: [users_id, username]
### Default grid sort
grid_sort: username
### Limit columns shown in form view (also limits grid columns if not set separately)
form_columns: [users_id, username, email]
### Strigification of object. Function gets $self TableEdit::RowInfo object and should return string.
to_string: |
my $company = $self->company || "";
return "$self->username ($self->id) $company";
### Column specific settings
columns:
last_name:
label: 'Family name'
first_name:
label: 'Name'
created_date:
readonly: 1
# HTML widget field type. Avaliable options: autocomplete, boolean, date, datetime, dropdown, html, image_upload, text, textfield, tinymce
column_type: 'date'
internal_code:
hidden: 1
description:
column_type: 'html'
vip_user:
subset:
importantRole: 1