... | ... |
@@ -104,12 +104,14 @@ $GLOBALS['TL_DCA']['tl_vr_wa_standort'] = array |
104 | 104 |
// Palettes |
105 | 105 |
'palettes' => array |
106 | 106 |
( |
107 |
- 'default' => '{title_legend},title' |
|
107 |
+ '__selector__' => ['nc_enable'], |
|
108 |
+ 'default' => '{title_legend},title;{notification_legend},nc_enable' |
|
108 | 109 |
), |
109 | 110 |
|
110 | 111 |
// Subpalettes |
111 | 112 |
'subpalettes' => array |
112 | 113 |
( |
114 |
+ 'nc_enable' => 'nc_notification' |
|
113 | 115 |
), |
114 | 116 |
|
115 | 117 |
// Fields |
... | ... |
@@ -135,6 +137,20 @@ $GLOBALS['TL_DCA']['tl_vr_wa_standort'] = array |
135 | 137 |
'maxlength' => 255 |
136 | 138 |
), |
137 | 139 |
'sql' => "varchar(255) NOT NULL default ''" |
140 |
+ ), |
|
141 |
+ 'nc_enable' => array |
|
142 |
+ ( |
|
143 |
+ 'exclude' => true, |
|
144 |
+ 'inputType' => 'checkbox', |
|
145 |
+ 'eval' => array('tl_class'=>'w50 m12','submitOnChange'=>true), |
|
146 |
+ 'sql' => "char(1) NOT NULL default ''" |
|
147 |
+ ), |
|
148 |
+ 'nc_notification' => array |
|
149 |
+ ( |
|
150 |
+ 'exclude' => true, |
|
151 |
+ 'inputType' => 'select', |
|
152 |
+ 'eval' => array('mandatory'=>true,'includeBlankOption'=>true, 'chosen'=>true, 'tl_class'=>'w50'), |
|
153 |
+ 'sql' => "int(10) unsigned NOT NULL default '0'" |
|
138 | 154 |
) |
139 | 155 |
) |
140 | 156 |
); |
... | ... |
@@ -54,6 +54,11 @@ $GLOBALS['TL_DCA']['tl_vr_wa_standort'] = array |
54 | 54 |
'href' => 'table=tl_vr_wa_leseart', |
55 | 55 |
'class' => 'header_leseart', |
56 | 56 |
), |
57 |
+ 'lage' => array |
|
58 |
+ ( |
|
59 |
+ 'href' => 'table=tl_vr_wa_lage', |
|
60 |
+ 'class' => 'header_lage', |
|
61 |
+ ), |
|
57 | 62 |
'all' => array |
58 | 63 |
( |
59 | 64 |
'href' => 'act=select', |
... | ... |
@@ -49,6 +49,11 @@ $GLOBALS['TL_DCA']['tl_vr_wa_standort'] = array |
49 | 49 |
'href' => 'table=tl_vr_wa_rebsorte', |
50 | 50 |
'class' => 'header_rebsorte', |
51 | 51 |
), |
52 |
+ 'leseart' => array |
|
53 |
+ ( |
|
54 |
+ 'href' => 'table=tl_vr_wa_leseart', |
|
55 |
+ 'class' => 'header_leseart', |
|
56 |
+ ), |
|
52 | 57 |
'all' => array |
53 | 58 |
( |
54 | 59 |
'href' => 'act=select', |
... | ... |
@@ -44,6 +44,11 @@ $GLOBALS['TL_DCA']['tl_vr_wa_standort'] = array |
44 | 44 |
), |
45 | 45 |
'global_operations' => array |
46 | 46 |
( |
47 |
+ 'rebsorte' => array |
|
48 |
+ ( |
|
49 |
+ 'href' => 'table=tl_vr_wa_rebsorte', |
|
50 |
+ 'class' => 'header_rebsorte', |
|
51 |
+ ), |
|
47 | 52 |
'all' => array |
48 | 53 |
( |
49 | 54 |
'href' => 'act=select', |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,125 @@ |
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_standort'] = array |
|
15 |
+( |
|
16 |
+ // Config |
|
17 |
+ 'config' => array |
|
18 |
+ ( |
|
19 |
+ 'dataContainer' => DC_Table::class, |
|
20 |
+ 'ctable' => array('tl_vr_wa_slot'), |
|
21 |
+ 'enableVersioning' => true, |
|
22 |
+ 'sql' => array |
|
23 |
+ ( |
|
24 |
+ 'keys' => array |
|
25 |
+ ( |
|
26 |
+ 'id' => 'primary' |
|
27 |
+ ) |
|
28 |
+ ) |
|
29 |
+ ), |
|
30 |
+ |
|
31 |
+ // List |
|
32 |
+ 'list' => array |
|
33 |
+ ( |
|
34 |
+ 'sorting' => array |
|
35 |
+ ( |
|
36 |
+ 'mode' => DataContainer::MODE_SORTABLE, |
|
37 |
+ 'fields' => array('title'), |
|
38 |
+ 'flag' => DataContainer::SORT_INITIAL_LETTER_ASC, |
|
39 |
+ 'panelLayout' => 'sort,search,limit' |
|
40 |
+ ), |
|
41 |
+ 'label' => array( |
|
42 |
+ 'fields' => array('title'), |
|
43 |
+ 'format' => '%s' |
|
44 |
+ ), |
|
45 |
+ 'global_operations' => array |
|
46 |
+ ( |
|
47 |
+ 'all' => array |
|
48 |
+ ( |
|
49 |
+ 'href' => 'act=select', |
|
50 |
+ 'class' => 'header_edit_all', |
|
51 |
+ 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' |
|
52 |
+ ) |
|
53 |
+ ), |
|
54 |
+ 'operations' => array |
|
55 |
+ ( |
|
56 |
+ 'edit' => array |
|
57 |
+ ( |
|
58 |
+ 'href' => 'table=tl_vr_wa_slot', |
|
59 |
+ 'icon' => 'edit.gif', |
|
60 |
+ ), |
|
61 |
+ 'editheader' => array |
|
62 |
+ ( |
|
63 |
+ 'href' => 'table=tl_vr_wa_standort&act=edit', |
|
64 |
+ 'icon' => 'header.svg' |
|
65 |
+ ), |
|
66 |
+ 'copy' => array |
|
67 |
+ ( |
|
68 |
+ 'href' => 'act=paste&mode=copy', |
|
69 |
+ 'icon' => 'copy.svg' |
|
70 |
+ ), |
|
71 |
+ 'cut' => array |
|
72 |
+ ( |
|
73 |
+ 'href' => 'act=paste&mode=cut', |
|
74 |
+ 'icon' => 'cut.svg', |
|
75 |
+ 'attributes' => 'onclick="Backend.getScrollOffset()"' |
|
76 |
+ ), |
|
77 |
+ 'delete' => array |
|
78 |
+ ( |
|
79 |
+ 'href' => 'act=delete', |
|
80 |
+ 'icon' => 'delete.gif', |
|
81 |
+ ), |
|
82 |
+ 'show' => array |
|
83 |
+ ( |
|
84 |
+ 'icon' => 'show.gif', |
|
85 |
+ ), |
|
86 |
+ ) |
|
87 |
+ ), |
|
88 |
+ |
|
89 |
+ // Palettes |
|
90 |
+ 'palettes' => array |
|
91 |
+ ( |
|
92 |
+ 'default' => '{title_legend},title' |
|
93 |
+ ), |
|
94 |
+ |
|
95 |
+ // Subpalettes |
|
96 |
+ 'subpalettes' => array |
|
97 |
+ ( |
|
98 |
+ ), |
|
99 |
+ |
|
100 |
+ // Fields |
|
101 |
+ 'fields' => array |
|
102 |
+ ( |
|
103 |
+ 'id' => array |
|
104 |
+ ( |
|
105 |
+ 'sql' => "int(10) unsigned NOT NULL auto_increment" |
|
106 |
+ ), |
|
107 |
+ 'tstamp' => array |
|
108 |
+ ( |
|
109 |
+ 'sql' => "int(10) unsigned NOT NULL default 0" |
|
110 |
+ ), |
|
111 |
+ 'title' => array |
|
112 |
+ ( |
|
113 |
+ 'exclude' => true, |
|
114 |
+ 'sorting' => true, |
|
115 |
+ 'flag' => DataContainer::SORT_INITIAL_LETTER_ASC, |
|
116 |
+ 'inputType' => 'text', |
|
117 |
+ 'eval' => array |
|
118 |
+ ( |
|
119 |
+ 'mandatory' => true, |
|
120 |
+ 'maxlength' => 255 |
|
121 |
+ ), |
|
122 |
+ 'sql' => "varchar(255) NOT NULL default ''" |
|
123 |
+ ) |
|
124 |
+ ) |
|
125 |
+); |