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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/discrete_calendar.tt (-9 / +19 lines)
Lines 3-9 Link Here
3
[% USE Branches %]
3
[% USE Branches %]
4
[% SET footerjs = 1 %]
4
[% SET footerjs = 1 %]
5
[% INCLUDE 'doc-head-open.inc' %]
5
[% INCLUDE 'doc-head-open.inc' %]
6
<title>[% Branches.GetName( branch ) | html %] calendar; Tools &rsaquo; Koha &rsaquo</title>
6
<title>[% Branches.GetName( branch ) | html %] calendar &rsaquo; Tools &rsaquo; Koha</title>
7
[% INCLUDE 'doc-head-close.inc' %]
7
[% INCLUDE 'doc-head-close.inc' %]
8
[% Asset.css("css/calendar.css") | $raw %]
8
[% Asset.css("css/calendar.css") | $raw %]
9
</head>
9
</head>
Lines 56-62 Link Here
56
                </div>
56
                </div>
57
                [% END %]
57
                [% END %]
58
58
59
                <h2>[% Branches.GetName( branch ) | html %] calendar</h2>
59
                <h1>[% Branches.GetName( branch ) | html %] calendar</h1>
60
60
61
                <div class="row">
61
                <div class="row">
62
                    <div class="col-sm-8">
62
                    <div class="col-sm-8">
Lines 131-136 Link Here
131
                                                <option value="F">Floating holiday</option>
131
                                                <option value="F">Floating holiday</option>
132
                                                <option value="N" disabled>Need validation</option>
132
                                                <option value="N" disabled>Need validation</option>
133
                                            </select>
133
                                            </select>
134
                                            <a href="#" class="helptext">[?]</a>
135
                                            <div class="hint">
136
                                                <ol>
137
                                                    <li><strong>Working day:</strong> the library is open on that day.</li>
138
                                                    <li><strong>Unique holiday:</strong> make a single holiday. For example, selecting August 1, 2012 will make it a holiday, but will not affect August 1 in other years.</li>
139
                                                    <li><strong>Weekly holiday:</strong> make this weekday a holiday, every week. For example, if your library is closed on Saturdays, use this option to make every Saturday a holiday.</li>
140
                                                    <li><strong>Repeatable holiday:</strong> this will take this day and month as a reference to make it a holiday. Through this option, you can repeat this rule for every year. For example, selecting August 1 will make August 1 a holiday every year.</li>
141
                                                    <li><strong>Floating holiday:</strong> this will take this day and month as a reference to make it a floating holiday. Through this option, you can add a holiday that repeats every year but not necessarily on the exact same day. On subsequent years the date will need validation.</li>
142
                                                    <li><strong>Need validation:</strong> this holiday has been added automatically, but needs to be validated.</li>
143
                                                </ol>
144
                                            </div>
134
                                        </li>
145
                                        </li>
135
                                        <li id="days_of_week">
146
                                        <li id="days_of_week">
136
                                            <label for="day_of_week">Week day</label>
147
                                            <label for="day_of_week">Week day</label>
Lines 468-473 Link Here
468
            var today = new Date();
479
            var today = new Date();
469
            today.setHours(0, 0, 0, 0);
480
            today.setHours(0, 0, 0, 0);
470
481
482
            if (date.date_obj < today) {
483
                formatDay( [ "past-date", _("Past day")], dayElem );
484
            } else {
485
                formatDay( [ "normalday", _("Normal day")], dayElem );
486
            }
487
471
            if (datesInfos[dateString] && datesInfos[dateString].holiday_type =='W') {
488
            if (datesInfos[dateString] && datesInfos[dateString].holiday_type =='W') {
472
                formatDay( [ "repeatableweekly", _("Weekly holiday: %s").format(datesInfos[dateString].title)], dayElem );
489
                formatDay( [ "repeatableweekly", _("Weekly holiday: %s").format(datesInfos[dateString].title)], dayElem );
473
            } else if (datesInfos[dateString] && datesInfos[dateString].holiday_type == 'R') {
490
            } else if (datesInfos[dateString] && datesInfos[dateString].holiday_type == 'R') {
Lines 478-489 Link Here
478
                formatDay( [ "float", _("Floating holiday: %s").format(datesInfos[dateString].title)], dayElem );
495
                formatDay( [ "float", _("Floating holiday: %s").format(datesInfos[dateString].title)], dayElem );
479
            } else if (datesInfos[dateString] && datesInfos[dateString].holiday_type == 'E') {
496
            } else if (datesInfos[dateString] && datesInfos[dateString].holiday_type == 'E') {
480
                formatDay( [ "holiday", _("Single holiday: %s").format(datesInfos[dateString].title)], dayElem );
497
                formatDay( [ "holiday", _("Single holiday: %s").format(datesInfos[dateString].title)], dayElem );
481
            } else {
482
                if (date.date_obj < today) {
483
                    formatDay( [ "past-date", _("Past day")], dayElem );
484
                }else {
485
                    formatDay( [ "normalday", _("Normal day")], dayElem );
486
                }
487
            }
498
            }
488
        }
499
        }
489
500
490
- 

Return to bug 17015