Browse code

Add internal annotations

Benjamin Roth authored on08/08/2025 12:29:00
Showing3 changed files
... ...
@@ -97,7 +97,7 @@ $GLOBALS['TL_DCA']['tl_vr_wa_reservation'] = array
97 97
     'palettes' => array
98 98
     (
99 99
         '__selector__' => array(),
100
-        'default' => 'pid,uid,unit,amount,behaelter,attribute_values,annotation,upload'
100
+        'default' => 'pid,uid,unit,amount,behaelter,attribute_values,annotation,internalAnnotation,upload'
101 101
     ),
102 102
 
103 103
     // Subpalettes
... ...
@@ -230,6 +230,14 @@ $GLOBALS['TL_DCA']['tl_vr_wa_reservation'] = array
230 230
             'inputType'               => 'textarea',
231 231
             'eval'                    => array('tl_class'=>'clr', 'readonly'=>"true"),
232 232
             'sql'                     => "text NULL"
233
+        ),
234
+        'internalAnnotation' => array
235
+        (
236
+            'exclude'                 => true,
237
+            'search'                  => true,
238
+            'inputType'               => 'textarea',
239
+            'eval'                    => array('tl_class'=>'clr', 'rte'=>'tinyMCE'),
240
+            'sql'                     => "text NULL"
233 241
         )
234 242
     )
235 243
 );
... ...
@@ -30,6 +30,8 @@ $GLOBALS['TL_LANG']['tl_vr_wa_reservation']['attribute_values'][0] = 'Attributwe
30 30
 $GLOBALS['TL_LANG']['tl_vr_wa_reservation']['attribute_values'][1] = 'Die vom Buchenden ausgewählten Attributwerte.';
31 31
 $GLOBALS['TL_LANG']['tl_vr_wa_reservation']['annotation'][0] = 'Anmerkungen';
32 32
 $GLOBALS['TL_LANG']['tl_vr_wa_reservation']['annotation'][1] = 'Ergänzende Hinweise zu diesem Zeitslot.';
33
+$GLOBALS['TL_LANG']['tl_vr_wa_reservation']['internalAnnotation'][0] = 'Interne Anmerkungen';
34
+$GLOBALS['TL_LANG']['tl_vr_wa_reservation']['internalAnnotation'][1] = 'Interne Anmerkungen zu diesem Zeitslot.';
33 35
 
34 36
 
35 37
 $GLOBALS['TL_LANG']['tl_vr_wa_reservation']['title_legend'] = 'Leseart';
... ...
@@ -167,13 +167,22 @@
167 167
                                                         </div>
168 168
                                                     {% endif %}
169 169
                                                     {% if booking.annotation is not empty %}
170
-                                                    <div class="col-1">
171
-                                                        <!-- Empty space for alignment -->
172
-                                                    </div>
173
-                                                    <div class="col-11">
174
-                                                        <div class="t-label">Anmerkung des Anlieferers</div>
175
-                                                        {{ booking.annotation }}
176
-                                                    </div>
170
+                                                        <div class="col-1">
171
+                                                            <!-- Empty space for alignment -->
172
+                                                        </div>
173
+                                                        <div class="col-11">
174
+                                                            <div class="t-label">Anmerkung des Anlieferers</div>
175
+                                                            {{ booking.annotation }}
176
+                                                        </div>
177
+                                                    {% endif %}
178
+                                                    {% if booking.internalAnnotation is not empty %}
179
+                                                        <div class="col-1">
180
+                                                            <!-- Empty space for alignment -->
181
+                                                        </div>
182
+                                                        <div class="col-11">
183
+                                                            <div class="t-label">Interne Anmerkungen</div>
184
+                                                            {{ booking.internalAnnotation|raw }}
185
+                                                        </div>
177 186
                                                     {% endif %}
178 187
                                                 </div>
179 188
                                             </div>