... | ... |
@@ -142,7 +142,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
142 | 142 |
'exclude' => true, |
143 | 143 |
'inputType' => 'checkbox', |
144 | 144 |
'foreignKey' => 'tl_vr_wa_lage.title', |
145 |
- 'eval' => array('mandatory' => false, 'multiple' => true, 'csv'=>',','tl_class' => 'w50'), |
|
145 |
+ 'eval' => array('mandatory' => true, 'multiple' => true, 'csv'=>',','tl_class' => 'w50'), |
|
146 | 146 |
'sql' => "blob NULL", |
147 | 147 |
'relation' => array('type' => 'hasMany', 'load' => 'lazy') |
148 | 148 |
), |
... | ... |
@@ -76,7 +76,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
76 | 76 |
), |
77 | 77 |
'toggle' => array |
78 | 78 |
( |
79 |
- 'href' => 'act=toggle&field=buchbar', |
|
79 |
+ 'href' => 'act=toggle&field=published', |
|
80 | 80 |
'icon' => 'visible.svg', |
81 | 81 |
'showInHeader' => true |
82 | 82 |
), |
... | ... |
@@ -91,7 +91,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
91 | 91 |
'palettes' => array |
92 | 92 |
( |
93 | 93 |
'__selector__' => array('addEnclosure'), |
94 |
- 'default' => '{time_legend},date,time;{type_legend},lage,behaelter,sorten,ernteart;{info_legend},anmerkungen,addEnclosure;{booking_legend},buchbar,buchbar_bis' |
|
94 |
+ 'default' => '{time_legend},date,time;{type_legend},behaelter,sorten,lage,ernteart;{info_legend},anmerkungen,addEnclosure;{booking_legend},published,buchbar_ab,buchbar_bis' |
|
95 | 95 |
), |
96 | 96 |
|
97 | 97 |
// Subpalettes |
... | ... |
@@ -140,11 +140,11 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
140 | 140 |
'lage' => array |
141 | 141 |
( |
142 | 142 |
'exclude' => true, |
143 |
- 'inputType' => 'select', |
|
143 |
+ 'inputType' => 'checkbox', |
|
144 | 144 |
'foreignKey' => 'tl_vr_wa_lage.title', |
145 |
- 'eval' => array('mandatory' => false, 'includeBlankOption' => true, 'chosen'=>true,'tl_class' => 'w50'), |
|
146 |
- 'sql' => "smallint(3) unsigned NOT NULL default 0", |
|
147 |
- 'relation' => array('type' => 'hasOne', 'load' => 'lazy') |
|
145 |
+ 'eval' => array('mandatory' => false, 'multiple' => true, 'csv'=>',','tl_class' => 'w50'), |
|
146 |
+ 'sql' => "blob NULL", |
|
147 |
+ 'relation' => array('type' => 'hasMany', 'load' => 'lazy') |
|
148 | 148 |
), |
149 | 149 |
'behaelter' => array |
150 | 150 |
( |
... | ... |
@@ -193,7 +193,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
193 | 193 |
'exclude' => true, |
194 | 194 |
'inputType' => 'checkbox', |
195 | 195 |
'options' => array('handlese','vollernter'), |
196 |
- 'eval' => array('mandatory'=>true,'multiple'=>true,'csv'=>','), |
|
196 |
+ 'eval' => array('mandatory'=>true,'multiple'=>true,'csv'=>',', 'tl_class'=>'w50'), |
|
197 | 197 |
'reference' => $GLOBALS['TL_LANG']['REF']['wa_ernteart'], |
198 | 198 |
'sql' => "blob NULL" |
199 | 199 |
), |
... | ... |
@@ -219,7 +219,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
219 | 219 |
'eval' => array('multiple'=>true, 'fieldType'=>'checkbox', 'filesOnly'=>true, 'isDownloads'=>true, 'extensions'=>Config::get('allowedDownload'), 'mandatory'=>true, 'isSortable'=>true), |
220 | 220 |
'sql' => "blob NULL" |
221 | 221 |
), |
222 |
- 'buchbar' => array |
|
222 |
+ 'published' => array |
|
223 | 223 |
( |
224 | 224 |
'exclude' => true, |
225 | 225 |
'toggle' => true, |
... | ... |
@@ -230,11 +230,18 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
230 | 230 |
'eval' => array('doNotCopy' => true), |
231 | 231 |
'sql' => "char(1) NOT NULL default ''" |
232 | 232 |
), |
233 |
+ 'buchbar_ab' => array |
|
234 |
+ ( |
|
235 |
+ 'exclude' => true, |
|
236 |
+ 'inputType' => 'text', |
|
237 |
+ 'eval' => array('rgxp' => 'datim', 'datepicker' => true, 'tl_class' => 'clr w50 wizard'), |
|
238 |
+ 'sql' => "int(10) unsigned NULL" |
|
239 |
+ ), |
|
233 | 240 |
'buchbar_bis' => array |
234 | 241 |
( |
235 | 242 |
'exclude' => true, |
236 | 243 |
'inputType' => 'text', |
237 |
- 'eval' => array('rgxp' => 'datim', 'mandatory' => true, 'datepicker' => true, 'tl_class' => 'clr w50 wizard'), |
|
244 |
+ 'eval' => array('rgxp' => 'datim', 'mandatory' => true, 'datepicker' => true, 'tl_class' => 'w50 wizard'), |
|
238 | 245 |
'sql' => "int(10) unsigned NULL" |
239 | 246 |
), |
240 | 247 |
) |
... | ... |
@@ -91,7 +91,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
91 | 91 |
'palettes' => array |
92 | 92 |
( |
93 | 93 |
'__selector__' => array('addEnclosure'), |
94 |
- 'default' => '{time_legend},date,time;{type_legend},behaelter,sorten;{info_legend},anmerkungen,addEnclosure;{booking_legend},buchbar,buchbar_bis' |
|
94 |
+ 'default' => '{time_legend},date,time;{type_legend},lage,behaelter,sorten,ernteart;{info_legend},anmerkungen,addEnclosure;{booking_legend},buchbar,buchbar_bis' |
|
95 | 95 |
), |
96 | 96 |
|
97 | 97 |
// Subpalettes |
... | ... |
@@ -137,6 +137,15 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
137 | 137 |
'eval' => array('rgxp' => 'time', 'mandatory' => true, 'tl_class' => 'w50'), |
138 | 138 |
'sql' => "int(10) NULL" |
139 | 139 |
), |
140 |
+ 'lage' => array |
|
141 |
+ ( |
|
142 |
+ 'exclude' => true, |
|
143 |
+ 'inputType' => 'select', |
|
144 |
+ 'foreignKey' => 'tl_vr_wa_lage.title', |
|
145 |
+ 'eval' => array('mandatory' => false, 'includeBlankOption' => true, 'chosen'=>true,'tl_class' => 'w50'), |
|
146 |
+ 'sql' => "smallint(3) unsigned NOT NULL default 0", |
|
147 |
+ 'relation' => array('type' => 'hasOne', 'load' => 'lazy') |
|
148 |
+ ), |
|
140 | 149 |
'behaelter' => array |
141 | 150 |
( |
142 | 151 |
'exclude' => true, |
... | ... |
@@ -179,6 +188,15 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
179 | 188 |
), |
180 | 189 |
'sql' => "blob NULL", |
181 | 190 |
), |
191 |
+ 'ernteart' => array |
|
192 |
+ ( |
|
193 |
+ 'exclude' => true, |
|
194 |
+ 'inputType' => 'checkbox', |
|
195 |
+ 'options' => array('handlese','vollernter'), |
|
196 |
+ 'eval' => array('mandatory'=>true,'multiple'=>true,'csv'=>','), |
|
197 |
+ 'reference' => $GLOBALS['TL_LANG']['REF']['wa_ernteart'], |
|
198 |
+ 'sql' => "blob NULL" |
|
199 |
+ ), |
|
182 | 200 |
'anmerkungen' => array |
183 | 201 |
( |
184 | 202 |
'exclude' => true, |
... | ... |
@@ -129,9 +129,10 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
129 | 129 |
'time' => array |
130 | 130 |
( |
131 | 131 |
'exclude' => true, |
132 |
+ 'filter' => true, |
|
132 | 133 |
'default' => time(), |
133 | 134 |
'sorting' => true, |
134 |
- 'flag' => DataContainer::SORT_MONTH_ASC, |
|
135 |
+ 'flag' => DataContainer::SORT_DAY_ASC, |
|
135 | 136 |
'inputType' => 'text', |
136 | 137 |
'eval' => array('rgxp' => 'time', 'mandatory' => true, 'tl_class' => 'w50'), |
137 | 138 |
'sql' => "int(10) NULL" |
... | ... |
@@ -89,7 +89,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
89 | 89 |
'palettes' => array |
90 | 90 |
( |
91 | 91 |
'__selector__' => array('addEnclosure'), |
92 |
- 'default' => '{time_legend},date,time;{type_legend},behaelter,leseart,sorte;{info_legend},anmerkungen,addEnclosure;{booking_legend},buchbar,buchbar_bis' |
|
92 |
+ 'default' => '{time_legend},date,time;{type_legend},behaelter,sorten;{info_legend},anmerkungen,addEnclosure;{booking_legend},buchbar,buchbar_bis' |
|
93 | 93 |
), |
94 | 94 |
|
95 | 95 |
// Subpalettes |
... | ... |
@@ -149,23 +149,32 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
149 | 149 |
'eval' => array('rgxp' => 'natural', 'mandatory' => true, 'includeBlankOption' => true, 'tl_class' => 'w50'), |
150 | 150 |
'sql' => "smallint(3) unsigned NOT NULL default 0" |
151 | 151 |
), |
152 |
- 'leseart' => array |
|
152 |
+ 'sorten' => array |
|
153 | 153 |
( |
154 | 154 |
'exclude' => true, |
155 |
- 'inputType' => 'select', |
|
156 |
- 'options' => [], |
|
157 |
- 'reference' => &$GLOBALS['TL_LANG']['MSC']['leseart'], |
|
158 |
- 'eval' => array('rgxp' => 'natural', 'mandatory' => false, 'includeBlankOption' => true, 'tl_class' => 'clr w50'), |
|
159 |
- 'sql' => "varchar(32) NOT NULL default ''" |
|
160 |
- ), |
|
161 |
- 'sorte' => array |
|
162 |
- ( |
|
163 |
- 'exclude' => true, |
|
164 |
- 'inputType' => 'select', |
|
165 |
- 'foreignKey' => 'tl_vr_wa_rebsorte.title', |
|
166 |
- 'eval' => array('rgxp' => 'natural', 'mandatory' => false, 'multiple'=>true,'chosen'=>true,'includeBlankOption' => true, 'tl_class' => 'w50','csv'=>','), |
|
155 |
+ 'inputType' => 'multiColumnWizard', |
|
156 |
+ 'eval' => array( |
|
157 |
+ 'minCount' => 1, |
|
158 |
+ 'tl_class' => 'clr', |
|
159 |
+ 'columnFields' => array |
|
160 |
+ ( |
|
161 |
+ 'sorte' => array |
|
162 |
+ ( |
|
163 |
+ 'label' => $GLOBALS['TL_LANG']['MSC']['wa_sorte'], |
|
164 |
+ 'inputType' => 'select', |
|
165 |
+ 'foreignKey' => 'tl_vr_wa_rebsorte.title', |
|
166 |
+ 'eval' => array('style' => 'width:350px','mandatory' => true,'chosen'=>true,'includeBlankOption' => true) |
|
167 |
+ ), |
|
168 |
+ 'leseart' => array |
|
169 |
+ ( |
|
170 |
+ 'label' => $GLOBALS['TL_LANG']['MSC']['wa_leseart'], |
|
171 |
+ 'inputType' => 'select', |
|
172 |
+ 'foreignKey' => 'tl_vr_wa_leseart.title', |
|
173 |
+ 'eval' => array('style' => 'width:350px','mandatory' => true,'chosen'=>true,'includeBlankOption' => true) |
|
174 |
+ ) |
|
175 |
+ ) |
|
176 |
+ ), |
|
167 | 177 |
'sql' => "blob NULL", |
168 |
- 'relation' => array('type' => 'hasMany', 'load' => 'lazy') |
|
169 | 178 |
), |
170 | 179 |
'anmerkungen' => array |
171 | 180 |
( |
... | ... |
@@ -118,6 +118,8 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
118 | 118 |
'date' => array |
119 | 119 |
( |
120 | 120 |
'exclude' => true, |
121 |
+ 'filter' => true, |
|
122 |
+ 'flag' => DataContainer::SORT_MONTH_ASC, |
|
121 | 123 |
'inputType' => 'text', |
122 | 124 |
'eval' => array('rgxp' => 'date', 'mandatory' => true, 'datepicker' => true, 'tl_class' => 'w50 wizard'), |
123 | 125 |
'sql' => "int(10) unsigned NULL" |
... | ... |
@@ -126,9 +128,8 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
126 | 128 |
( |
127 | 129 |
'exclude' => true, |
128 | 130 |
'default' => time(), |
129 |
- 'filter' => true, |
|
130 | 131 |
'sorting' => true, |
131 |
- 'flag' => DataContainer::SORT_MONTH_DESC, |
|
132 |
+ 'flag' => DataContainer::SORT_MONTH_ASC, |
|
132 | 133 |
'inputType' => 'text', |
133 | 134 |
'eval' => array('rgxp' => 'time', 'mandatory' => true, 'tl_class' => 'w50'), |
134 | 135 |
'sql' => "int(10) NULL" |
... | ... |
@@ -163,7 +164,8 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
163 | 164 |
'inputType' => 'select', |
164 | 165 |
'foreignKey' => 'tl_vr_wa_rebsorte.title', |
165 | 166 |
'eval' => array('rgxp' => 'natural', 'mandatory' => false, 'multiple'=>true,'chosen'=>true,'includeBlankOption' => true, 'tl_class' => 'w50','csv'=>','), |
166 |
- 'sql' => "blob NULL" |
|
167 |
+ 'sql' => "blob NULL", |
|
168 |
+ 'relation' => array('type' => 'hasMany', 'load' => 'lazy') |
|
167 | 169 |
), |
168 | 170 |
'anmerkungen' => array |
169 | 171 |
( |
... | ... |
@@ -192,6 +192,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
192 | 192 |
'exclude' => true, |
193 | 193 |
'toggle' => true, |
194 | 194 |
'filter' => true, |
195 |
+ 'default' => '1', |
|
195 | 196 |
'flag' => DataContainer::SORT_INITIAL_LETTER_DESC, |
196 | 197 |
'inputType' => 'checkbox', |
197 | 198 |
'eval' => array('doNotCopy' => true), |
... | ... |
@@ -37,7 +37,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
37 | 37 |
'mode' => DataContainer::MODE_PARENT, |
38 | 38 |
'fields' => array('time'), |
39 | 39 |
'headerFields' => array('title'), |
40 |
- 'disableGrouping' => true, |
|
40 |
+// 'disableGrouping' => true, |
|
41 | 41 |
'panelLayout' => 'filter;sort,limit', |
42 | 42 |
), |
43 | 43 |
'global_operations' => array |
... | ... |
@@ -72,6 +72,12 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
72 | 72 |
'href' => 'act=delete', |
73 | 73 |
'icon' => 'delete.gif', |
74 | 74 |
), |
75 |
+ 'toggle' => array |
|
76 |
+ ( |
|
77 |
+ 'href' => 'act=toggle&field=buchbar', |
|
78 |
+ 'icon' => 'visible.svg', |
|
79 |
+ 'showInHeader' => true |
|
80 |
+ ), |
|
75 | 81 |
'show' => array |
76 | 82 |
( |
77 | 83 |
'icon' => 'show.gif', |
... | ... |
@@ -82,45 +88,121 @@ $GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
82 | 88 |
// Palettes |
83 | 89 |
'palettes' => array |
84 | 90 |
( |
85 |
- 'default' => '{time_legend},date,time' |
|
91 |
+ '__selector__' => array('addEnclosure'), |
|
92 |
+ 'default' => '{time_legend},date,time;{type_legend},behaelter,leseart,sorte;{info_legend},anmerkungen,addEnclosure;{booking_legend},buchbar,buchbar_bis' |
|
86 | 93 |
), |
87 | 94 |
|
88 | 95 |
// Subpalettes |
89 | 96 |
'subpalettes' => array |
90 |
- (), |
|
97 |
+ ( |
|
98 |
+ 'addEnclosure' => 'enclosure' |
|
99 |
+ ), |
|
91 | 100 |
|
92 | 101 |
// Fields |
93 | 102 |
'fields' => array |
94 | 103 |
( |
95 |
- 'id' => array |
|
104 |
+ 'id' => array |
|
96 | 105 |
( |
97 | 106 |
'sql' => "int(10) unsigned NOT NULL auto_increment" |
98 | 107 |
), |
99 |
- 'pid' => array |
|
108 |
+ 'pid' => array |
|
100 | 109 |
( |
101 | 110 |
'foreignKey' => 'tl_vr_wa_standort.title', |
102 |
- 'sql' => "int(10) unsigned NOT NULL default '0'", |
|
103 |
- 'relation' => array('type' => 'belongsTo', 'load' => 'lazy') |
|
111 |
+ 'sql' => "int(10) unsigned NOT NULL default '0'", |
|
112 |
+ 'relation' => array('type' => 'belongsTo', 'load' => 'lazy') |
|
104 | 113 |
), |
105 |
- 'tstamp' => array |
|
114 |
+ 'tstamp' => array |
|
106 | 115 |
( |
107 | 116 |
'sql' => "int(10) unsigned NOT NULL default '0'" |
108 | 117 |
), |
109 |
- 'date' => array |
|
118 |
+ 'date' => array |
|
119 |
+ ( |
|
120 |
+ 'exclude' => true, |
|
121 |
+ 'inputType' => 'text', |
|
122 |
+ 'eval' => array('rgxp' => 'date', 'mandatory' => true, 'datepicker' => true, 'tl_class' => 'w50 wizard'), |
|
123 |
+ 'sql' => "int(10) unsigned NULL" |
|
124 |
+ ), |
|
125 |
+ 'time' => array |
|
110 | 126 |
( |
111 |
- 'inputType' => 'text', |
|
112 |
- 'eval' => array('rgxp'=>'date', 'mandatory'=>true, 'doNotCopy'=>true, 'datepicker'=>true, 'tl_class'=>'w50 wizard'), |
|
113 |
- 'sql' => "int(10) unsigned NULL" |
|
127 |
+ 'exclude' => true, |
|
128 |
+ 'default' => time(), |
|
129 |
+ 'filter' => true, |
|
130 |
+ 'sorting' => true, |
|
131 |
+ 'flag' => DataContainer::SORT_MONTH_DESC, |
|
132 |
+ 'inputType' => 'text', |
|
133 |
+ 'eval' => array('rgxp' => 'time', 'mandatory' => true, 'tl_class' => 'w50'), |
|
134 |
+ 'sql' => "int(10) NULL" |
|
114 | 135 |
), |
115 |
- 'time' => array |
|
116 |
- ( |
|
117 |
- 'default' => time(), |
|
118 |
- 'filter' => true, |
|
119 |
- 'sorting' => true, |
|
120 |
- 'flag' => DataContainer::SORT_MONTH_DESC, |
|
121 |
- 'inputType' => 'text', |
|
122 |
- 'eval' => array('rgxp'=>'time', 'mandatory'=>true, 'doNotCopy'=>true, 'tl_class'=>'w50'), |
|
123 |
- 'sql' => "int(10) NULL" |
|
136 |
+ 'behaelter' => array |
|
137 |
+ ( |
|
138 |
+ 'exclude' => true, |
|
139 |
+ 'inputType' => 'select', |
|
140 |
+ 'options_callback' => function () { |
|
141 |
+ $range = []; |
|
142 |
+ for ($i = 1; $i <= 30; $i++) |
|
143 |
+ { |
|
144 |
+ $range[] = $i; |
|
145 |
+ } |
|
146 |
+ return $range; |
|
147 |
+ }, |
|
148 |
+ 'eval' => array('rgxp' => 'natural', 'mandatory' => true, 'includeBlankOption' => true, 'tl_class' => 'w50'), |
|
149 |
+ 'sql' => "smallint(3) unsigned NOT NULL default 0" |
|
150 |
+ ), |
|
151 |
+ 'leseart' => array |
|
152 |
+ ( |
|
153 |
+ 'exclude' => true, |
|
154 |
+ 'inputType' => 'select', |
|
155 |
+ 'options' => [], |
|
156 |
+ 'reference' => &$GLOBALS['TL_LANG']['MSC']['leseart'], |
|
157 |
+ 'eval' => array('rgxp' => 'natural', 'mandatory' => false, 'includeBlankOption' => true, 'tl_class' => 'clr w50'), |
|
158 |
+ 'sql' => "varchar(32) NOT NULL default ''" |
|
159 |
+ ), |
|
160 |
+ 'sorte' => array |
|
161 |
+ ( |
|
162 |
+ 'exclude' => true, |
|
163 |
+ 'inputType' => 'select', |
|
164 |
+ 'foreignKey' => 'tl_vr_wa_rebsorte.title', |
|
165 |
+ 'eval' => array('rgxp' => 'natural', 'mandatory' => false, 'multiple'=>true,'chosen'=>true,'includeBlankOption' => true, 'tl_class' => 'w50','csv'=>','), |
|
166 |
+ 'sql' => "blob NULL" |
|
167 |
+ ), |
|
168 |
+ 'anmerkungen' => array |
|
169 |
+ ( |
|
170 |
+ 'exclude' => true, |
|
171 |
+ 'search' => true, |
|
172 |
+ 'inputType' => 'textarea', |
|
173 |
+ 'eval' => array('rte'=>'tinyMCE', 'tl_class'=>'clr'), |
|
174 |
+ 'sql' => "text NULL" |
|
175 |
+ ), |
|
176 |
+ 'addEnclosure' => array |
|
177 |
+ ( |
|
178 |
+ 'exclude' => true, |
|
179 |
+ 'inputType' => 'checkbox', |
|
180 |
+ 'eval' => array('submitOnChange'=>true), |
|
181 |
+ 'sql' => "char(1) NOT NULL default ''" |
|
182 |
+ ), |
|
183 |
+ 'enclosure' => array |
|
184 |
+ ( |
|
185 |
+ 'exclude' => true, |
|
186 |
+ 'inputType' => 'fileTree', |
|
187 |
+ 'eval' => array('multiple'=>true, 'fieldType'=>'checkbox', 'filesOnly'=>true, 'isDownloads'=>true, 'extensions'=>Config::get('allowedDownload'), 'mandatory'=>true, 'isSortable'=>true), |
|
188 |
+ 'sql' => "blob NULL" |
|
189 |
+ ), |
|
190 |
+ 'buchbar' => array |
|
191 |
+ ( |
|
192 |
+ 'exclude' => true, |
|
193 |
+ 'toggle' => true, |
|
194 |
+ 'filter' => true, |
|
195 |
+ 'flag' => DataContainer::SORT_INITIAL_LETTER_DESC, |
|
196 |
+ 'inputType' => 'checkbox', |
|
197 |
+ 'eval' => array('doNotCopy' => true), |
|
198 |
+ 'sql' => "char(1) NOT NULL default ''" |
|
199 |
+ ), |
|
200 |
+ 'buchbar_bis' => array |
|
201 |
+ ( |
|
202 |
+ 'exclude' => true, |
|
203 |
+ 'inputType' => 'text', |
|
204 |
+ 'eval' => array('rgxp' => 'datim', 'mandatory' => true, 'datepicker' => true, 'tl_class' => 'clr w50 wizard'), |
|
205 |
+ 'sql' => "int(10) unsigned NULL" |
|
124 | 206 |
), |
125 | 207 |
) |
126 | 208 |
); |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,126 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+/** |
|
4 |
+ * This file is part of contao-weinanlieferung-bundle. |
|
5 |
+ * |
|
6 |
+ * (c) vonRotenberg |
|
7 |
+ * |
|
8 |
+ * @license commercial |
|
9 |
+ */ |
|
10 |
+ |
|
11 |
+use Contao\DC_Table; |
|
12 |
+use Contao\DataContainer; |
|
13 |
+ |
|
14 |
+$GLOBALS['TL_DCA']['tl_vr_wa_slot'] = array |
|
15 |
+( |
|
16 |
+ |
|
17 |
+ // Config |
|
18 |
+ 'config' => array |
|
19 |
+ ( |
|
20 |
+ 'dataContainer' => DC_Table::class, |
|
21 |
+ 'ptable' => 'tl_vr_wa_standort', |
|
22 |
+ 'sql' => array |
|
23 |
+ ( |
|
24 |
+ 'keys' => array |
|
25 |
+ ( |
|
26 |
+ 'id' => 'primary', |
|
27 |
+ 'pid' => 'index' |
|
28 |
+ ) |
|
29 |
+ ) |
|
30 |
+ ), |
|
31 |
+ |
|
32 |
+ // List |
|
33 |
+ 'list' => array |
|
34 |
+ ( |
|
35 |
+ 'sorting' => array |
|
36 |
+ ( |
|
37 |
+ 'mode' => DataContainer::MODE_PARENT, |
|
38 |
+ 'fields' => array('time'), |
|
39 |
+ 'headerFields' => array('title'), |
|
40 |
+ 'disableGrouping' => true, |
|
41 |
+ 'panelLayout' => 'filter;sort,limit', |
|
42 |
+ ), |
|
43 |
+ 'global_operations' => array |
|
44 |
+ ( |
|
45 |
+ 'all' => array |
|
46 |
+ ( |
|
47 |
+ 'href' => 'act=select', |
|
48 |
+ 'class' => 'header_edit_all', |
|
49 |
+ 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' |
|
50 |
+ ) |
|
51 |
+ ), |
|
52 |
+ 'operations' => array |
|
53 |
+ ( |
|
54 |
+ 'edit' => array |
|
55 |
+ ( |
|
56 |
+ 'href' => 'act=edit', |
|
57 |
+ 'icon' => 'edit.gif', |
|
58 |
+ ), |
|
59 |
+ 'copy' => array |
|
60 |
+ ( |
|
61 |
+ 'href' => 'act=paste&mode=copy', |
|
62 |
+ 'icon' => 'copy.svg' |
|
63 |
+ ), |
|
64 |
+ 'cut' => array |
|
65 |
+ ( |
|
66 |
+ 'href' => 'act=paste&mode=cut', |
|
67 |
+ 'icon' => 'cut.svg', |
|
68 |
+ 'attributes' => 'onclick="Backend.getScrollOffset()"' |
|
69 |
+ ), |
|
70 |
+ 'delete' => array |
|
71 |
+ ( |
|
72 |
+ 'href' => 'act=delete', |
|
73 |
+ 'icon' => 'delete.gif', |
|
74 |
+ ), |
|
75 |
+ 'show' => array |
|
76 |
+ ( |
|
77 |
+ 'icon' => 'show.gif', |
|
78 |
+ ), |
|
79 |
+ ) |
|
80 |
+ ), |
|
81 |
+ |
|
82 |
+ // Palettes |
|
83 |
+ 'palettes' => array |
|
84 |
+ ( |
|
85 |
+ 'default' => '{time_legend},date,time' |
|
86 |
+ ), |
|
87 |
+ |
|
88 |
+ // Subpalettes |
|
89 |
+ 'subpalettes' => array |
|
90 |
+ (), |
|
91 |
+ |
|
92 |
+ // Fields |
|
93 |
+ 'fields' => array |
|
94 |
+ ( |
|
95 |
+ 'id' => array |
|
96 |
+ ( |
|
97 |
+ 'sql' => "int(10) unsigned NOT NULL auto_increment" |
|
98 |
+ ), |
|
99 |
+ 'pid' => array |
|
100 |
+ ( |
|
101 |
+ 'foreignKey' => 'tl_vr_wa_standort.title', |
|
102 |
+ 'sql' => "int(10) unsigned NOT NULL default '0'", |
|
103 |
+ 'relation' => array('type' => 'belongsTo', 'load' => 'lazy') |
|
104 |
+ ), |
|
105 |
+ 'tstamp' => array |
|
106 |
+ ( |
|
107 |
+ 'sql' => "int(10) unsigned NOT NULL default '0'" |
|
108 |
+ ), |
|
109 |
+ 'date' => array |
|
110 |
+ ( |
|
111 |
+ 'inputType' => 'text', |
|
112 |
+ 'eval' => array('rgxp'=>'date', 'mandatory'=>true, 'doNotCopy'=>true, 'datepicker'=>true, 'tl_class'=>'w50 wizard'), |
|
113 |
+ 'sql' => "int(10) unsigned NULL" |
|
114 |
+ ), |
|
115 |
+ 'time' => array |
|
116 |
+ ( |
|
117 |
+ 'default' => time(), |
|
118 |
+ 'filter' => true, |
|
119 |
+ 'sorting' => true, |
|
120 |
+ 'flag' => DataContainer::SORT_MONTH_DESC, |
|
121 |
+ 'inputType' => 'text', |
|
122 |
+ 'eval' => array('rgxp'=>'time', 'mandatory'=>true, 'doNotCopy'=>true, 'tl_class'=>'w50'), |
|
123 |
+ 'sql' => "int(10) NULL" |
|
124 |
+ ), |
|
125 |
+ ) |
|
126 |
+); |