Lines 116-121
Link Here
|
116 |
<label for="title">Title: </label> |
116 |
<label for="title">Title: </label> |
117 |
<input type="text" name="Title" id="title" size="35" /> |
117 |
<input type="text" name="Title" id="title" size="35" /> |
118 |
</li> |
118 |
</li> |
|
|
119 |
<li> |
120 |
<label for="description">Description: </label> |
121 |
<textarea id="description" name="description" rows="2" cols="40"></textarea> |
122 |
</li> |
119 |
<li id="holidayType"> |
123 |
<li id="holidayType"> |
120 |
<label for="holidayType">Date type</label> |
124 |
<label for="holidayType">Date type</label> |
121 |
<select name ='holidayType'> |
125 |
<select name ='holidayType'> |
Lines 191-196
Link Here
|
191 |
<ul> |
195 |
<ul> |
192 |
<li>Search in the calendar the day you want to set as holiday.</li> |
196 |
<li>Search in the calendar the day you want to set as holiday.</li> |
193 |
<li>Click the date to add or edit a holiday.</li> |
197 |
<li>Click the date to add or edit a holiday.</li> |
|
|
198 |
<li>Enter a title and description for the holiday.</li> |
194 |
<li>Specify how the holiday should repeat.</li> |
199 |
<li>Specify how the holiday should repeat.</li> |
195 |
<li>Click Save to finish.</li> |
200 |
<li>Click Save to finish.</li> |
196 |
<li>PS: |
201 |
<li>PS: |
Lines 219-224
Link Here
|
219 |
<tr> |
224 |
<tr> |
220 |
<th class="validation">Date</th> |
225 |
<th class="validation">Date</th> |
221 |
<th class="validation">Title</th> |
226 |
<th class="validation">Title</th> |
|
|
227 |
<th class="validation">Description</th> |
222 |
</tr> |
228 |
</tr> |
223 |
</thead> |
229 |
</thead> |
224 |
<tbody> |
230 |
<tbody> |
Lines 226-231
Link Here
|
226 |
<tr> |
232 |
<tr> |
227 |
<td><a href="#main" onclick="go_to_date('[% need_validation_holiday.date | html %]')"><span title="[% need_validation_holiday.DATE_SORT | html %]">[% need_validation_holiday.outputdate | html %]</span></a></td> |
233 |
<td><a href="#main" onclick="go_to_date('[% need_validation_holiday.date | html %]')"><span title="[% need_validation_holiday.DATE_SORT | html %]">[% need_validation_holiday.outputdate | html %]</span></a></td> |
228 |
<td>[% need_validation_holiday.note | html %]</td> |
234 |
<td>[% need_validation_holiday.note | html %]</td> |
|
|
235 |
<td>[% need_validation_holiday.description.replace('\\\r\\\n', '<br />') | html %]</td> |
229 |
</tr> |
236 |
</tr> |
230 |
[% END %] |
237 |
[% END %] |
231 |
</tbody> |
238 |
</tbody> |
Lines 239-244
Link Here
|
239 |
<tr> |
246 |
<tr> |
240 |
<th class="repeatableweekly">Day of week</th> |
247 |
<th class="repeatableweekly">Day of week</th> |
241 |
<th class="repeatableweekly">Title</th> |
248 |
<th class="repeatableweekly">Title</th> |
|
|
249 |
<th class="repeatableweekly">Description</th> |
242 |
</tr> |
250 |
</tr> |
243 |
</thead> |
251 |
</thead> |
244 |
<tbody> |
252 |
<tbody> |
Lines 246-251
Link Here
|
246 |
<tr> |
254 |
<tr> |
247 |
<td>[% WEEK_DAYS_LOO.weekday | html %]</td> |
255 |
<td>[% WEEK_DAYS_LOO.weekday | html %]</td> |
248 |
<td>[% WEEK_DAYS_LOO.note | html %]</td> |
256 |
<td>[% WEEK_DAYS_LOO.note | html %]</td> |
|
|
257 |
<td>[% WEEK_DAYS_LOO.description.replace('\\\r\\\n', '<br />') | html %]</td> |
249 |
</tr> |
258 |
</tr> |
250 |
[% END %] |
259 |
[% END %] |
251 |
</tbody> |
260 |
</tbody> |
Lines 263-268
Link Here
|
263 |
<th class="repeatableyearly">Month/day</th> |
272 |
<th class="repeatableyearly">Month/day</th> |
264 |
[% END %] |
273 |
[% END %] |
265 |
<th class="repeatableyearly">Title</th> |
274 |
<th class="repeatableyearly">Title</th> |
|
|
275 |
<th class="repeatableyearly">Description</th> |
266 |
</tr> |
276 |
</tr> |
267 |
</thead> |
277 |
</thead> |
268 |
<tbody> |
278 |
<tbody> |
Lines 274-279
Link Here
|
274 |
<td><span title="[% DAY_MONTH_HOLIDAYS_LOO.DATE_SORT | html %]">[% DAY_MONTH_HOLIDAYS_LOO.month | html %]/[% DAY_MONTH_HOLIDAYS_LOO.day | html %]</span></td> |
284 |
<td><span title="[% DAY_MONTH_HOLIDAYS_LOO.DATE_SORT | html %]">[% DAY_MONTH_HOLIDAYS_LOO.month | html %]/[% DAY_MONTH_HOLIDAYS_LOO.day | html %]</span></td> |
275 |
[% END %] |
285 |
[% END %] |
276 |
<td>[% DAY_MONTH_HOLIDAYS_LOO.note | html %]</td> |
286 |
<td>[% DAY_MONTH_HOLIDAYS_LOO.note | html %]</td> |
|
|
287 |
<td>[% DAY_MONTH_HOLIDAYS_LOO.description.replace('\\\r\\\n', '<br />') | html %]</td> |
277 |
</tr> |
288 |
</tr> |
278 |
[% END %] |
289 |
[% END %] |
279 |
</tbody> |
290 |
</tbody> |
Lines 287-292
Link Here
|
287 |
<tr> |
298 |
<tr> |
288 |
<th class="holiday">Date</th> |
299 |
<th class="holiday">Date</th> |
289 |
<th class="holiday">Title</th> |
300 |
<th class="holiday">Title</th> |
|
|
301 |
<th class="holiday">Description</th> |
290 |
</tr> |
302 |
</tr> |
291 |
</thead> |
303 |
</thead> |
292 |
<tbody> |
304 |
<tbody> |
Lines 294-299
Link Here
|
294 |
<tr> |
306 |
<tr> |
295 |
<td><a href="#main" onclick="go_to_date('[% HOLIDAYS_LOO.date | html %]')"><span title="[% HOLIDAYS_LOO.DATE_SORT | html %]">[% HOLIDAYS_LOO.outputdate | html %]</span></a></td> |
307 |
<td><a href="#main" onclick="go_to_date('[% HOLIDAYS_LOO.date | html %]')"><span title="[% HOLIDAYS_LOO.DATE_SORT | html %]">[% HOLIDAYS_LOO.outputdate | html %]</span></a></td> |
296 |
<td>[% HOLIDAYS_LOO.note | html %]</td> |
308 |
<td>[% HOLIDAYS_LOO.note | html %]</td> |
|
|
309 |
<td>[% HOLIDAYS_LOO.description.replace('\\\r\\\n', '<br />') | html %]</td> |
297 |
</tr> |
310 |
</tr> |
298 |
[% END %] |
311 |
[% END %] |
299 |
</tbody> |
312 |
</tbody> |
Lines 307-312
Link Here
|
307 |
<tr> |
320 |
<tr> |
308 |
<th class="float">Date</th> |
321 |
<th class="float">Date</th> |
309 |
<th class="float">Title</th> |
322 |
<th class="float">Title</th> |
|
|
323 |
<th class="float">Description</th> |
310 |
</tr> |
324 |
</tr> |
311 |
</thead> |
325 |
</thead> |
312 |
<tbody> |
326 |
<tbody> |
Lines 314-319
Link Here
|
314 |
<tr> |
328 |
<tr> |
315 |
<td><a href="#main" onclick="go_to_date('[% float_holiday.date | html %]')"><span title="[% float_holiday.DATE_SORT | html %]">[% float_holiday.outputdate | html %]</span></a></td> |
329 |
<td><a href="#main" onclick="go_to_date('[% float_holiday.date | html %]')"><span title="[% float_holiday.DATE_SORT | html %]">[% float_holiday.outputdate | html %]</span></a></td> |
316 |
<td>[% float_holiday.note | html %]</td> |
330 |
<td>[% float_holiday.note | html %]</td> |
|
|
331 |
<td>[% float_holiday.description.replace('\\\r\\\n', '<br />') | html %]</td> |
317 |
</tr> |
332 |
</tr> |
318 |
[% END %] |
333 |
[% END %] |
319 |
</tbody> |
334 |
</tbody> |
Lines 345-350
Link Here
|
345 |
[% FOREACH date IN datesInfos %] |
360 |
[% FOREACH date IN datesInfos %] |
346 |
datesInfos["[% date.date | html %]"] = { |
361 |
datesInfos["[% date.date | html %]"] = { |
347 |
title : "[% date.note | html %]", |
362 |
title : "[% date.note | html %]", |
|
|
363 |
description : "[% date.description | html %]", |
348 |
outputdate : "[% date.outputdate | html %]", |
364 |
outputdate : "[% date.outputdate | html %]", |
349 |
holiday_type:"[% date.holiday_type | html %]", |
365 |
holiday_type:"[% date.holiday_type | html %]", |
350 |
open_hour: "[% date.open_hour | html %]", |
366 |
open_hour: "[% date.open_hour | html %]", |
Lines 355-361
Link Here
|
355 |
/* |
371 |
/* |
356 |
* Displays the details of the selected date on a side panel |
372 |
* Displays the details of the selected date on a side panel |
357 |
*/ |
373 |
*/ |
358 |
function showHoliday (date_obj, dateString, dayName, day, month, year, weekDay, title, holidayType) { |
374 |
function showHoliday (date_obj, dateString, dayName, day, month, year, weekDay, title, description, holidayType) { |
359 |
$("#newHoliday").slideDown("fast"); |
375 |
$("#newHoliday").slideDown("fast"); |
360 |
$("#copyHoliday").slideUp("fast"); |
376 |
$("#copyHoliday").slideUp("fast"); |
361 |
$('#newDaynameOutput').html(dayName); |
377 |
$('#newDaynameOutput').html(dayName); |
Lines 371-376
Link Here
|
371 |
$(".newHoliday, #Weekday").val(weekDay); |
387 |
$(".newHoliday, #Weekday").val(weekDay); |
372 |
|
388 |
|
373 |
$('.newHoliday #title').val(title); |
389 |
$('.newHoliday #title').val(title); |
|
|
390 |
$('.newHoliday #description').val(description); |
374 |
$('#HolidayType').val(holidayType); |
391 |
$('#HolidayType').val(holidayType); |
375 |
$('#days_of_week option[value="'+ (weekDay + 1) +'"]').attr('selected', true); |
392 |
$('#days_of_week option[value="'+ (weekDay + 1) +'"]').attr('selected', true); |
376 |
$('#openHour').val(datesInfos[dateString].open_hour); |
393 |
$('#openHour').val(datesInfos[dateString].open_hour); |
Lines 530-536
Link Here
|
530 |
var date_obj = date.date_obj; |
547 |
var date_obj = date.date_obj; |
531 |
|
548 |
|
532 |
document.querySelector("#calendar-anchor")._flatpickr.setDate(date_obj); |
549 |
document.querySelector("#calendar-anchor")._flatpickr.setDate(date_obj); |
533 |
showHoliday(date_obj, dateString, dayName, day, month, year, weekDay, datesInfos[dateString].title, datesInfos[dateString].holiday_type); |
550 |
showHoliday(date_obj, dateString, dayName, day, month, year, weekDay, datesInfos[dateString].title, datesInfos[dateString].description, datesInfos[dateString].holiday_type); |
534 |
} |
551 |
} |
535 |
|
552 |
|
536 |
/* |
553 |
/* |
Lines 629-635
Link Here
|
629 |
|
646 |
|
630 |
// set value of form hidden field |
647 |
// set value of form hidden field |
631 |
$('#from_date').val(dateStr); |
648 |
$('#from_date').val(dateStr); |
632 |
showHoliday(date.date_obj, dateString, dayName, date.day, date.month, date.year, weekDay, datesInfos[dateString].title, datesInfos[dateString].holiday_type); |
649 |
showHoliday(date.date_obj, dateString, dayName, date.day, date.month, date.year, weekDay, datesInfos[dateString].title, datesInfos[dateString].description, datesInfos[dateString].holiday_type); |
633 |
[% END %] |
650 |
[% END %] |
634 |
} |
651 |
} |
635 |
}); |
652 |
}); |