forked from StydeNet/html
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
130 lines (120 loc) · 3.66 KB
/
config.php
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
126
127
128
129
130
<?php
return [
/*
* Set the HTML theme for the components
* like alerts, form fields, menus, etc.
*/
'theme' => 'bootstrap4',
/*
* Set the folder to store the custom templates
*/
'custom' => 'themes',
/*
* Set to false to deactivate the AccessHandler component
* Doing so the component will run slightly faster but
* the logged and roles checkers won't be available
*/
'control_access' => true,
/*
* Set to false to deactivate the Translator for the alert and menu
* components, doing so they will run slightly faster but won't
* search for Lang keys to translate texts.
*
* Note: the FieldBuilder will always use the translator
* to search for attribute names and other texts,
* regardless of this configuration value.
*/
'translate_texts' => true,
/*
* Set to true to deactivate HTML5 form validation
* and test the backend validation
*/
'novalidate' => false,
/*
* Specify abbreviations for the form field attributes
*/
'abbreviations' => [
'ph' => 'placeholder',
'max' => 'maxlength',
'tpl' => 'template'
],
/*
* Set the configuration for each theme
*/
'themes' => [
/**
* Default configuration for Bootstrap v3
*/
'bootstrap' => [
/*
* Set a specific HTML template for a field type if the
* type is not set, the default template will be used
*/
'field_templates' => [
// type => template
'checkbox' => 'checkbox',
'checkboxes' => 'collections',
'radios' => 'collections'
],
/*
* Set the default classes for each field type
*/
'field_classes' => [
// type => class or classes
'default' => 'form-control',
'checkbox' => '',
'error' => 'error'
],
],
/**
* Default configuration for Bootstrap v4
*/
'bootstrap4' => [
/*
* Set a specific HTML template for a field type if the
* type is not set, the default template will be used
*/
'field_templates' => [
// type => template
'checkbox' => 'checkbox',
'checkboxes' => 'collections',
'radios' => 'collections'
],
/*
* Set the default classes for each field type
*/
'field_classes' => [
// type => class or classes
'default' => 'form-control',
'checkbox' => 'form-check-input',
'error' => 'is-invalid'
],
],
/**
* configuration for BulmaCss
*/
'bulma' => [
/*
* Set a specific HTML template for a field type if the
* type is not set, the default template will be used
*/
'field_templates' => [
// type => template
'checkbox' => 'checkbox',
'checkboxes' => 'collections',
'radios' => 'collections',
'select'=>'selects',
],
/*
* Set the default classes for each field type
*/
'field_classes' => [
// type => class or classes
'textarea'=>'textarea',
'default' => 'input',
'checkbox' => 'checkbox',
'error' => 'is-danger'
],
]
]
];