View | Details | Raw Unified | Return to bug 19105
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt (-13 / +12 lines)
Lines 17-33 Link Here
17
    var day_month_holidays = new Array();
17
    var day_month_holidays = new Array();
18
    var hola= "[% code %]";
18
    var hola= "[% code %]";
19
    [% FOREACH WEEK_DAYS_LOO IN WEEK_DAYS_LOOP %]
19
    [% FOREACH WEEK_DAYS_LOO IN WEEK_DAYS_LOOP %]
20
    week_days["[% WEEK_DAYS_LOO.KEY %]"] = {title:"[% WEEK_DAYS_LOO.TITLE | replace('"','\"') %]", description:"[% WEEK_DAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
20
    week_days["[% WEEK_DAYS_LOO.KEY %]"] = {title:"[% WEEK_DAYS_LOO.TITLE | replace('"','\"') |html %]", description:"[% WEEK_DAYS_LOO.DESCRIPTION | replace('"','\"') |html %]"};
21
    [% END %]
21
    [% END %]
22
    [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
22
    [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
23
    holidates.push("[% HOLIDAYS_LOO.KEY %]");
23
    holidates.push("[% HOLIDAYS_LOO.KEY %]");
24
    holidays["[% HOLIDAYS_LOO.KEY %]"] = {title:"[% HOLIDAYS_LOO.TITLE | replace('"','\"') %]", description:"[% HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
24
    holidays["[% HOLIDAYS_LOO.KEY %]"] = {title:"[% HOLIDAYS_LOO.TITLE | replace('"','\"') |html %]", description:"[% HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') |html %]"};
25
    [% END %]
25
    [% END %]
26
    [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
26
    [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
27
    exception_holidays["[% EXCEPTION_HOLIDAYS_LOO.KEY %]"] = {title:"[% EXCEPTION_HOLIDAYS_LOO.TITLE | replace('"','\"') %]", description:"[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
27
    exception_holidays["[% EXCEPTION_HOLIDAYS_LOO.KEY %]"] = {title:"[% EXCEPTION_HOLIDAYS_LOO.TITLE | replace('"','\"') |html %]", description:"[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') |html %]"};
28
    [% END %]
28
    [% END %]
29
    [% FOREACH DAY_MONTH_HOLIDAYS_LOO IN DAY_MONTH_HOLIDAYS_LOOP %]
29
    [% FOREACH DAY_MONTH_HOLIDAYS_LOO IN DAY_MONTH_HOLIDAYS_LOOP %]
30
    day_month_holidays["[% DAY_MONTH_HOLIDAYS_LOO.KEY %]"] = {title:"[% DAY_MONTH_HOLIDAYS_LOO.TITLE | replace('"','\"') %]", description:"[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') %]"};
30
    day_month_holidays["[% DAY_MONTH_HOLIDAYS_LOO.KEY %]"] = {title:"[% DAY_MONTH_HOLIDAYS_LOO.TITLE | replace('"','\"') |html %]", description:"[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION | replace('"','\"') |html %]"};
31
    [% END %]
31
    [% END %]
32
32
33
    function holidayOperation(formObject, opType) {
33
    function holidayOperation(formObject, opType) {
Lines 446-453 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
446
  [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
446
  [% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %]
447
  <tr>
447
  <tr>
448
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&amp;calendardate=[% EXCEPTION_HOLIDAYS_LOO.DATE %]"><span title="[% EXCEPTION_HOLIDAYS_LOO.DATE_SORT %]">[% EXCEPTION_HOLIDAYS_LOO.DATE %]</span></a></td>
448
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&amp;calendardate=[% EXCEPTION_HOLIDAYS_LOO.DATE %]"><span title="[% EXCEPTION_HOLIDAYS_LOO.DATE_SORT %]">[% EXCEPTION_HOLIDAYS_LOO.DATE %]</span></a></td>
449
  <td>[% EXCEPTION_HOLIDAYS_LOO.TITLE %]</td>
449
  <td>[% EXCEPTION_HOLIDAYS_LOO.TITLE |html %]</td>
450
  <td>[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION %]</td> 
450
  <td>[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION |html %]</td>
451
  </tr>
451
  </tr>
452
  [% END %] 
452
  [% END %] 
453
</tbody>
453
</tbody>
Lines 469-476 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
469
  <tr>
469
  <tr>
470
  <td>[% WEEK_DAYS_LOO.KEY %]</td>
470
  <td>[% WEEK_DAYS_LOO.KEY %]</td>
471
  </td> 
471
  </td> 
472
  <td>[% WEEK_DAYS_LOO.TITLE %]</td> 
472
  <td>[% WEEK_DAYS_LOO.TITLE |html %]</td>
473
  <td>[% WEEK_DAYS_LOO.DESCRIPTION %]</td> 
473
  <td>[% WEEK_DAYS_LOO.DESCRIPTION |html %]</td>
474
  </tr>
474
  </tr>
475
  [% END %] 
475
  [% END %] 
476
</tbody>
476
</tbody>
Lines 495-502 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
495
  [% FOREACH DAY_MONTH_HOLIDAYS_LOO IN DAY_MONTH_HOLIDAYS_LOOP %]
495
  [% FOREACH DAY_MONTH_HOLIDAYS_LOO IN DAY_MONTH_HOLIDAYS_LOOP %]
496
  <tr>
496
  <tr>
497
  <td><span title="[% DAY_MONTH_HOLIDAYS_LOO.DATE_SORT %]">[% DAY_MONTH_HOLIDAYS_LOO.DATE %]</span></td>
497
  <td><span title="[% DAY_MONTH_HOLIDAYS_LOO.DATE_SORT %]">[% DAY_MONTH_HOLIDAYS_LOO.DATE %]</span></td>
498
  <td>[% DAY_MONTH_HOLIDAYS_LOO.TITLE %]</td> 
498
  <td>[% DAY_MONTH_HOLIDAYS_LOO.TITLE |html %]</td>
499
  <td>[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION %]</td> 
499
  <td>[% DAY_MONTH_HOLIDAYS_LOO.DESCRIPTION |html %]</td>
500
  </tr>
500
  </tr>
501
  [% END %] 
501
  [% END %] 
502
</tbody>
502
</tbody>
Lines 517-524 td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl Link Here
517
    [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
517
    [% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %]
518
<tr>
518
<tr>
519
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&amp;calendardate=[% HOLIDAYS_LOO.DATE %]"><span title="[% HOLIDAYS_LOO.DATE_SORT %]">[% HOLIDAYS_LOO.DATE %]</span></a></td>
519
  <td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&amp;calendardate=[% HOLIDAYS_LOO.DATE %]"><span title="[% HOLIDAYS_LOO.DATE_SORT %]">[% HOLIDAYS_LOO.DATE %]</span></a></td>
520
  <td>[% HOLIDAYS_LOO.TITLE %]</td>
520
  <td>[% HOLIDAYS_LOO.TITLE |html %]</td>
521
  <td>[% HOLIDAYS_LOO.DESCRIPTION.replace('\\\r\\\n', '<br />') %]</td>
521
  <td>[% HOLIDAYS_LOO.DESCRIPTION.replace('\\\r\\\n', '<br />') |html %]</td>
522
</tr>
522
</tr>
523
  [% END %] 
523
  [% END %] 
524
</tbody>
524
</tbody>
525
- 

Return to bug 19105