Lines 1-8
Link Here
|
|
|
1 |
[% PROCESS 'i18n.inc' %] |
1 |
[% USE Asset %] |
2 |
[% USE Asset %] |
2 |
[% USE Branches %] |
3 |
[% USE Branches %] |
3 |
[% SET footerjs = 1 %] |
4 |
[% SET footerjs = 1 %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Tools › [% Branches.GetName( branch ) %] calendar</title> |
6 |
<title>[% t('Koha › Tools ›') %] [% Branches.GetName( branch ) %] [% t('calendar') %]</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% Asset.css("css/datatables.css") %] |
8 |
[% Asset.css("css/datatables.css") %] |
8 |
<style type="text/css"> .key { padding : 3px; white-space:nowrap; line-height:230%; } |
9 |
<style type="text/css"> .key { padding : 3px; white-space:nowrap; line-height:230%; } |
Lines 29-45
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
29 |
[% INCLUDE 'header.inc' %] |
30 |
[% INCLUDE 'header.inc' %] |
30 |
[% INCLUDE 'cat-search.inc' %] |
31 |
[% INCLUDE 'cat-search.inc' %] |
31 |
|
32 |
|
32 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › [% Branches.GetName( branch ) %] calendar</div> |
33 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">[% t('Home') %]</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">[% t('Tools') %]</a> › [% Branches.GetName( branch ) %] [% t('calendar') %]</div> |
33 |
|
34 |
|
34 |
<div id="doc3" class="yui-t1"> |
35 |
<div id="doc3" class="yui-t1"> |
35 |
|
36 |
|
36 |
<div id="bd"> |
37 |
<div id="bd"> |
37 |
<div id="yui-main"> |
38 |
<div id="yui-main"> |
38 |
<div class="yui-b"> |
39 |
<div class="yui-b"> |
39 |
<h2>[% Branches.GetName( branch ) %] calendar</h2> |
40 |
<h2>[% Branches.GetName( branch ) %] [% t('calendar') %]</h2> |
40 |
<div class="yui-g"> |
41 |
<div class="yui-g"> |
41 |
<div class="yui-u first"> |
42 |
<div class="yui-u first"> |
42 |
<label for="branch">Define the holidays for:</label> |
43 |
<label for="branch">[% t('Define the holidays for:') %]</label> |
43 |
<select id="branch" name="branch"> |
44 |
<select id="branch" name="branch"> |
44 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %] |
45 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %] |
45 |
</select> |
46 |
</select> |
Lines 53-67
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
53 |
<form action="/cgi-bin/koha/tools/exceptionHolidays.pl" method="post"> |
54 |
<form action="/cgi-bin/koha/tools/exceptionHolidays.pl" method="post"> |
54 |
<input type="hidden" id="showHolidayType" name="showHolidayType" value="" /> |
55 |
<input type="hidden" id="showHolidayType" name="showHolidayType" value="" /> |
55 |
<fieldset class="brief"> |
56 |
<fieldset class="brief"> |
56 |
<h3>Edit this holiday</h3> |
57 |
<h3>[% t('Edit this holiday') %]</h3> |
57 |
<span id="holtype"></span> |
58 |
<span id="holtype"></span> |
58 |
<ol> |
59 |
<ol> |
59 |
<li> |
60 |
<li> |
60 |
<strong>Library:</strong> <span id="showBranchNameOutput"></span> |
61 |
<strong>[% t('Library:') %]</strong> <span id="showBranchNameOutput"></span> |
61 |
<input type="hidden" id="showBranchName" name="showBranchName" /> |
62 |
<input type="hidden" id="showBranchName" name="showBranchName" /> |
62 |
</li> |
63 |
</li> |
63 |
<li> |
64 |
<li> |
64 |
<strong>From date:</strong> |
65 |
<strong>[% t('From date:') %]</strong> |
65 |
<span id="showDaynameOutput"></span>, |
66 |
<span id="showDaynameOutput"></span>, |
66 |
|
67 |
|
67 |
[% IF ( dateformat == "us" ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "metric") %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "dmydot") %]<span id="showDayOutput"></span>.<span id="showMonthOutput"></span>.<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %] |
68 |
[% IF ( dateformat == "us" ) %]<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "metric") %]<span id="showDayOutput"></span>/<span id="showMonthOutput"></span>/<span id="showYearOutput"></span>[% ELSIF ( dateformat == "dmydot") %]<span id="showDayOutput"></span>.<span id="showMonthOutput"></span>.<span id="showYearOutput"></span>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %] |
Lines 73-119
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
73 |
<input type="hidden" id="showYear" name="showYear" /> |
74 |
<input type="hidden" id="showYear" name="showYear" /> |
74 |
</li> |
75 |
</li> |
75 |
<li class="dateinsert"> |
76 |
<li class="dateinsert"> |
76 |
<b>To Date : </b> |
77 |
<b>[% t('To Date :') %] </b> |
77 |
<input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker"/> |
78 |
<input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker" /> |
78 |
</li> |
79 |
</li> |
79 |
<li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li> |
80 |
<li><label for="showTitle">[% t('Title:') %] </label><input type="text" name="showTitle" id="showTitle" size="35" /></li> |
80 |
<!-- showTitle is necessary for exception radio button to work properly --> |
81 |
<!-- showTitle is necessary for exception radio button to work properly --> |
81 |
<li> |
82 |
<li> |
82 |
<label for="showDescription">Description:</label> |
83 |
<label for="showDescription">[% t('Description:') %]</label> |
83 |
<textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea> |
84 |
<textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea> |
84 |
</li> |
85 |
</li> |
85 |
<li class="radio"><div id="exceptionPosibility" style="position:static"> |
86 |
<li class="radio"><div id="exceptionPosibility" style="position:static"> |
86 |
<input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">Generate an exception for this repeated holiday.</label> |
87 |
<input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">[% t('Generate an exception for this repeated holiday.') %]</label> |
87 |
<a href="#" class="helptext">[?]</a> |
88 |
<a href="#" class="helptext">[?]</a> |
88 |
<div class="hint">You can make an exception for this holiday rule. This means that you will be able to say that for a repeatable holiday there is one day which is going to be an exception.</div> |
89 |
<div class="hint">[% t('You can make an exception for this holiday rule. This means that you will be able to say that for a repeatable holiday there is one day which is going to be an exception.') %]</div> |
89 |
</div></li> |
90 |
</div></li> |
90 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" /> |
91 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" /> |
91 |
<label for="showOperationExcRange">Generate exceptions on a range of dates.</label> |
92 |
<label for="showOperationExcRange">[% t('Generate exceptions on a range of dates.') %]</label> |
92 |
<a href="#" class="helptext">[?]</a> |
93 |
<a href="#" class="helptext">[?]</a> |
93 |
<div class="hint">You can make an exception on a range of dates repeated yearly.</div> |
94 |
<div class="hint">[% t('You can make an exception on a range of dates repeated yearly.') %]</div> |
94 |
</li> |
95 |
</li> |
95 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">Delete this holiday</label> |
96 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">[% t('Delete this holiday') %]</label> |
96 |
<a href="#" class="helptext">[?]</a> |
97 |
<a href="#" class="helptext">[?]</a> |
97 |
<div class="hint">This will delete this holiday rule. If it is a repeatable holiday, this option checks for possible exceptions. If an exception exists, this option will remove the exception and set the date to a regular holiday.</div></li> |
98 |
<div class="hint">[% t('This will delete this holiday rule. If it is a repeatable holiday, this option checks for possible exceptions. If an exception exists, this option will remove the exception and set the date to a regular holiday.') %]</div></li> |
98 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRange" value="deleterange" /> <label for="showOperationDelRange" id="showOperationDelLabelRange">Delete the single holidays on a range</label>. |
99 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRange" value="deleterange" /> <label for="showOperationDelRange" id="showOperationDelLabelRange">[% t('Delete the single holidays on a range') %]</label>. |
99 |
<a href="#" class="helptext">[?]</a> |
100 |
<a href="#" class="helptext">[?]</a> |
100 |
<div class="hint">This will delete the single holidays rules only. The repeatable holidays and exceptions will not be deleted.</div> |
101 |
<div class="hint">[% t('This will delete the single holidays rules only. The repeatable holidays and exceptions will not be deleted.') %]</div> |
101 |
</li> |
102 |
</li> |
102 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeat" value="deleterangerepeat" /> <label for="showOperationDelRangeRepeat" id="showOperationDelLabelRangeRepeat">Delete the repeated holidays on a range</label>. |
103 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeat" value="deleterangerepeat" /> <label for="showOperationDelRangeRepeat" id="showOperationDelLabelRangeRepeat">[% t('Delete the repeated holidays on a range') %]</label>. |
103 |
<a href="#" class="helptext">[?]</a> |
104 |
<a href="#" class="helptext">[?]</a> |
104 |
<div class="hint">This will delete the repeated holidays rules only. The repeatable holidays will be deleted but not the exceptions.</div> |
105 |
<div class="hint">[% t('This will delete the repeated holidays rules only. The repeatable holidays will be deleted but not the exceptions.') %]</div> |
105 |
</li> |
106 |
</li> |
106 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeatExcept" value="deleterangerepeatexcept" /> <label for="showOperationDelRangeRepeatExcept" id="showOperationDelLabelRangeRepeatExcept">Delete the exceptions on a range</label>. |
107 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationDelRangeRepeatExcept" value="deleterangerepeatexcept" /> <label for="showOperationDelRangeRepeatExcept" id="showOperationDelLabelRangeRepeatExcept">[% t('Delete the exceptions on a range') %]</label>. |
107 |
<a href="#" class="helptext">[?]</a> |
108 |
<a href="#" class="helptext">[?]</a> |
108 |
<div class="hint">This will delete the exceptions inside a given range. Be careful about your scope range; if it is oversized you could slow down Koha.</div> |
109 |
<div class="hint">[% t('This will delete the exceptions inside a given range. Be careful about your scope range; if it is oversized you could slow down Koha.') %]</div> |
109 |
</li> |
110 |
</li> |
110 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">Edit this holiday</label> |
111 |
<li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">[% t('Edit this holiday') %]</label> |
111 |
<a href="#" class="helptext">[?]</a> |
112 |
<a href="#" class="helptext">[?]</a> |
112 |
<div class="hint">This will save changes to the holiday's title and description. If the information for a repeatable holiday is modified, it affects all of the dates on which the holiday is repeated.</div></li> |
113 |
<div class="hint">[% t('This will save changes to the holiday\'s title and description. If the information for a repeatable holiday is modified, it affects all of the dates on which the holiday is repeated.') %]</div></li> |
113 |
</ol> |
114 |
</ol> |
114 |
<fieldset class="action"> |
115 |
<fieldset class="action"> |
115 |
<input type="submit" name="submit" value="Save" /> |
116 |
<input type="submit" name="submit" value="Save" /> |
116 |
<a href="#" class="cancel hidePanel showHoliday">Cancel</a> |
117 |
<a href="#" class="cancel hidePanel showHoliday">[% t('Cancel') %]</a> |
117 |
</fieldset> |
118 |
</fieldset> |
118 |
</fieldset> |
119 |
</fieldset> |
119 |
</form> |
120 |
</form> |
Lines 123-137
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
123 |
<div class="panel" id="newHoliday"> |
124 |
<div class="panel" id="newHoliday"> |
124 |
<form action="/cgi-bin/koha/tools/newHolidays.pl" method="post"> |
125 |
<form action="/cgi-bin/koha/tools/newHolidays.pl" method="post"> |
125 |
<fieldset class="brief"> |
126 |
<fieldset class="brief"> |
126 |
<h3>Add new holiday</h3> |
127 |
<h3>[% t('Add new holiday') %]</h3> |
127 |
<ol> |
128 |
<ol> |
128 |
<li> |
129 |
<li> |
129 |
<strong>Library:</strong> |
130 |
<strong>[% t('Library:') %]</strong> |
130 |
<span id="newBranchNameOutput"></span> |
131 |
<span id="newBranchNameOutput"></span> |
131 |
<input type="hidden" id="newBranchName" name="newBranchName" /> |
132 |
<input type="hidden" id="newBranchName" name="newBranchName" /> |
132 |
</li> |
133 |
</li> |
133 |
<li> |
134 |
<li> |
134 |
<strong>From date:</strong> |
135 |
<strong>[% t('From date:') %]</strong> |
135 |
<span id="newDaynameOutput"></span>, |
136 |
<span id="newDaynameOutput"></span>, |
136 |
|
137 |
|
137 |
[% IF ( dateformat == "us" ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "metric" ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "dmydot" ) %]<span id="newDayOutput"></span>.<span id="newMonthOutput"></span>.<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %] |
138 |
[% IF ( dateformat == "us" ) %]<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "metric" ) %]<span id="newDayOutput"></span>/<span id="newMonthOutput"></span>/<span id="newYearOutput"></span>[% ELSIF ( dateformat == "dmydot" ) %]<span id="newDayOutput"></span>.<span id="newMonthOutput"></span>.<span id="newYearOutput"></span>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %] |
Lines 143-189
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
143 |
<input type="hidden" id="newYear" name="newYear" /> |
144 |
<input type="hidden" id="newYear" name="newYear" /> |
144 |
</li> |
145 |
</li> |
145 |
<li class="dateinsert"> |
146 |
<li class="dateinsert"> |
146 |
<b>To date: </b> |
147 |
<b>[% t('To date:') %] </b> |
147 |
<input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange %]" class="datepicker" /> |
148 |
<input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange %]" class="datepicker" /> |
148 |
</li> |
149 |
</li> |
149 |
<li><label for="title">Title: </label><input type="text" name="newTitle" id="title" size="35" /></li> |
150 |
<li><label for="title">[% t('Title:') %] </label><input type="text" name="newTitle" id="title" size="35" /></li> |
150 |
<li><label for="newDescription">Description:</label> |
151 |
<li><label for="newDescription">[% t('Description:') %]</label> |
151 |
<textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea> |
152 |
<textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea> |
152 |
</li> |
153 |
</li> |
153 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" /> |
154 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" /> |
154 |
<label for="newOperationOnce">Holiday only on this day</label>. |
155 |
<label for="newOperationOnce">[% t('Holiday only on this day') %]</label>. |
155 |
<a href="#" class="helptext">[?]</a> |
156 |
<a href="#" class="helptext">[?]</a> |
156 |
<div class="hint">Make a single holiday. For example, selecting August 1, 2012 will make it a holiday, but will not affect August 1 in other years.</div> |
157 |
<div class="hint">[% t('Make a single holiday. For example, selecting August 1, 2012 will make it a holiday, but will not affect August 1 in other years.') %]</div> |
157 |
</li> |
158 |
</li> |
158 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" /> |
159 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" /> |
159 |
<label for="newOperationDay">Holiday repeated every same day of the week</label>. |
160 |
<label for="newOperationDay">[% t('Holiday repeated every same day of the week') %]</label>. |
160 |
<a href="#" class="helptext">[?]</a> |
161 |
<a href="#" class="helptext">[?]</a> |
161 |
<div class="hint">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.</div> |
162 |
<div class="hint">[% t('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.') %]</div> |
162 |
</li> |
163 |
</li> |
163 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" /> |
164 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" /> |
164 |
<label for="newOperationYear">Holiday repeated yearly on the same date</label>. |
165 |
<label for="newOperationYear">[% t('Holiday repeated yearly on the same date') %]</label>. |
165 |
<a href="#" class="helptext">[?]</a> |
166 |
<a href="#" class="helptext">[?]</a> |
166 |
<div class="hint">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.</div> |
167 |
<div class="hint">[% t('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.') %]</div> |
167 |
</li> |
168 |
</li> |
168 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" /> |
169 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" /> |
169 |
<label for="newOperationField">Holidays on a range</label>. |
170 |
<label for="newOperationField">[% t('Holidays on a range') %]</label>. |
170 |
<a href="#" class="helptext">[?]</a> |
171 |
<a href="#" class="helptext">[?]</a> |
171 |
<div class="hint">Make a single holiday on a range. For example, selecting August 1, 2012 and August 10, 2012 will make all days between August 1 and 10 a holiday, but will not affect August 1-10 in other years.</div> |
172 |
<div class="hint">[% t('Make a single holiday on a range. For example, selecting August 1, 2012') %] [% t('and August 10, 2012 will make all days between August 1 and 10 a holiday, but will not affect August 1-10 in other years.') %]</div> |
172 |
</li> |
173 |
</li> |
173 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" /> |
174 |
<li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" /> |
174 |
<label for="newOperationFieldyear">Holidays repeated yearly on a range</label>. |
175 |
<label for="newOperationFieldyear">[% t('Holidays repeated yearly on a range') %]</label>. |
175 |
<a href="#" class="helptext">[?]</a> |
176 |
<a href="#" class="helptext">[?]</a> |
176 |
<div class="hint">Make a single holiday on a range repeated yearly. For example, selecting August 1, 2012 and August 10, 2012 will make all days between August 1 and 10 a holiday, and will affect August 1-10 in other years.</div> |
177 |
<div class="hint">[% t('Make a single holiday on a range repeated yearly. For example, selecting August 1, 2012') %] [% t('and August 10, 2012 will make all days between August 1 and 10 a holiday, and will affect August 1-10 in other years.') %]</div> |
177 |
</li> |
178 |
</li> |
178 |
<li class="checkbox"> |
179 |
<li class="checkbox"> |
179 |
<input type="checkbox" name="allBranches" id="allBranches" /> |
180 |
<input type="checkbox" name="allBranches" id="allBranches" /> |
180 |
<label for="allBranches">Copy to all libraries</label>. |
181 |
<label for="allBranches">[% t('Copy to all libraries') %]</label>. |
181 |
<a href="#" class="helptext">[?]</a> |
182 |
<a href="#" class="helptext">[?]</a> |
182 |
<div class="hint">If checked, this holiday will be copied to all libraries. If the holiday already exists for a library, no change is made.</div> |
183 |
<div class="hint">[% t('If checked, this holiday will be copied to all libraries. If the holiday already exists for a library, no change is made.') %]</div> |
183 |
</li></ol> |
184 |
</li></ol> |
184 |
<fieldset class="action"> |
185 |
<fieldset class="action"> |
185 |
<input type="submit" name="submit" value="Save" /> |
186 |
<input type="submit" name="submit" value="Save" /> |
186 |
<a href="#" class="cancel hidePanel newHoliday">Cancel</a> |
187 |
<a href="#" class="cancel hidePanel newHoliday">[% t('Cancel') %]</a> |
187 |
</fieldset> |
188 |
</fieldset> |
188 |
</fieldset> |
189 |
</fieldset> |
189 |
</form> |
190 |
</form> |
Lines 196-208
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
196 |
<!-- ************************************************************************************** --> |
197 |
<!-- ************************************************************************************** --> |
197 |
<!-- ****** MAIN SCREEN CODE ****** --> |
198 |
<!-- ****** MAIN SCREEN CODE ****** --> |
198 |
<!-- ************************************************************************************** --> |
199 |
<!-- ************************************************************************************** --> |
199 |
<h3>Calendar information</h3> |
200 |
<h3>[% t('Calendar information') %]</h3> |
200 |
<div id="jcalendar-container"></div> |
201 |
<div id="jcalendar-container"></div> |
201 |
|
202 |
|
202 |
<div style="margin-top: 2em;"> |
203 |
<div style="margin-top: 2em;"> |
203 |
<form action="copy-holidays.pl" method="post"> |
204 |
<form action="copy-holidays.pl" method="post"> |
204 |
<input type="hidden" name="from_branchcode" value="[% branch %]" /> |
205 |
<input type="hidden" name="from_branchcode" value="[% branch %]" /> |
205 |
<label for="branchcode">Copy holidays to:</label> |
206 |
<label for="branchcode">[% t('Copy holidays to:') %]</label> |
206 |
<select id="branchcode" name="branchcode"> |
207 |
<select id="branchcode" name="branchcode"> |
207 |
<option value=""></option> |
208 |
<option value=""></option> |
208 |
[% FOREACH l IN Branches.all() %] |
209 |
[% FOREACH l IN Branches.all() %] |
Lines 216-254
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
216 |
</div> |
217 |
</div> |
217 |
<div class="yui-u"> |
218 |
<div class="yui-u"> |
218 |
<div class="help"> |
219 |
<div class="help"> |
219 |
<h4>Hints</h4> |
220 |
<h4>[% t('Hints') %]</h4> |
220 |
<ul> |
221 |
<ul> |
221 |
<li>Search in the calendar the day you want to set as holiday.</li> |
222 |
<li>[% t('Search in the calendar the day you want to set as holiday.') %]</li> |
222 |
<li>Click the date to add or edit a holiday.</li> |
223 |
<li>[% t('Click the date to add or edit a holiday.') %]</li> |
223 |
<li>Enter a title and description for the holiday.</li> |
224 |
<li>[% t('Enter a title and description for the holiday.') %]</li> |
224 |
<li>Specify how the holiday should repeat.</li> |
225 |
<li>[% t('Specify how the holiday should repeat.') %]</li> |
225 |
<li>Click Save to finish.</li> |
226 |
<li>[% t('Click Save to finish.') %]</li> |
226 |
</ul> |
227 |
</ul> |
227 |
<h4>Key</h4> |
228 |
<h4>[% t('Key') %]</h4> |
228 |
<p> |
229 |
<p> |
229 |
<span class="key normalday">Working day</span> |
230 |
<span class="key normalday">[% t('Working day') %]</span> |
230 |
<span class="key holiday">Unique holiday</span> |
231 |
<span class="key holiday">[% t('Unique holiday') %]</span> |
231 |
<span class="key repeatableweekly">Holiday repeating weekly</span> |
232 |
<span class="key repeatableweekly">[% t('Holiday repeating weekly') %]</span> |
232 |
<span class="key repeatableyearly">Holiday repeating yearly</span> |
233 |
<span class="key repeatableyearly">[% t('Holiday repeating yearly') %]</span> |
233 |
<span class="key exception">Holiday exception</span> |
234 |
<span class="key exception">[% t('Holiday exception') %]</span> |
234 |
</p> |
235 |
</p> |
235 |
</div> |
236 |
</div> |
236 |
<div id="holiday-list"> |
237 |
<div id="holiday-list"> |
237 |
<!-- Exceptions First --> |
238 |
<!-- Exceptions First --> |
238 |
<!-- this will probably always have the least amount of data --> |
239 |
<!-- this will probably always have the least amount of data --> |
239 |
[% IF ( EXCEPTION_HOLIDAYS_LOOP ) %] |
240 |
[% IF ( EXCEPTION_HOLIDAYS_LOOP ) %] |
240 |
<h3>Exceptions</h3> |
241 |
<h3>[% t('Exceptions') %]</h3> |
241 |
<table id="holidayexceptions"> |
242 |
<table id="holidayexceptions"> |
242 |
<thead><tr> |
243 |
<thead><tr> |
243 |
<th class="exception">Date</th> |
244 |
<th class="exception">[% t('Date') %]</th> |
244 |
<th class="exception">Title</th> |
245 |
<th class="exception">[% t('Title') %]</th> |
245 |
<th class="exception">Description</th> |
246 |
<th class="exception">[% t('Description') %]</th> |
246 |
</tr> |
247 |
</tr> |
247 |
</thead> |
248 |
</thead> |
248 |
<tbody> |
249 |
<tbody> |
249 |
[% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %] |
250 |
[% FOREACH EXCEPTION_HOLIDAYS_LOO IN EXCEPTION_HOLIDAYS_LOOP %] |
250 |
<tr> |
251 |
<tr> |
251 |
<td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% EXCEPTION_HOLIDAYS_LOO.DATE %]"><span title="[% EXCEPTION_HOLIDAYS_LOO.DATE_SORT %]">[% EXCEPTION_HOLIDAYS_LOO.DATE %]</span></a></td> |
252 |
<td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% EXCEPTION_HOLIDAYS_LOO.DATE %]"><span title="[% EXCEPTION_HOLIDAYS_LOO.DATE_SORT %]">[% EXCEPTION_HOLIDAYS_LOO.DATE %]</span></a></td> |
252 |
<td>[% EXCEPTION_HOLIDAYS_LOO.TITLE |html %]</td> |
253 |
<td>[% EXCEPTION_HOLIDAYS_LOO.TITLE |html %]</td> |
253 |
<td>[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION |html %]</td> |
254 |
<td>[% EXCEPTION_HOLIDAYS_LOO.DESCRIPTION |html %]</td> |
254 |
</tr> |
255 |
</tr> |
Lines 258-270
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
258 |
[% END %] |
259 |
[% END %] |
259 |
|
260 |
|
260 |
[% IF ( WEEK_DAYS_LOOP ) %] |
261 |
[% IF ( WEEK_DAYS_LOOP ) %] |
261 |
<h3>Weekly - Repeatable holidays</h3> |
262 |
<h3>[% t('Weekly - Repeatable holidays') %]</h3> |
262 |
<table id="holidayweeklyrepeatable"> |
263 |
<table id="holidayweeklyrepeatable"> |
263 |
<thead> |
264 |
<thead> |
264 |
<tr> |
265 |
<tr> |
265 |
<th class="repeatableweekly">Day of week</th> |
266 |
<th class="repeatableweekly">[% t('Day of week') %]</th> |
266 |
<th class="repeatableweekly">Title</th> |
267 |
<th class="repeatableweekly">[% t('Title') %]</th> |
267 |
<th class="repeatableweekly">Description</th> |
268 |
<th class="repeatableweekly">[% t('Description') %]</th> |
268 |
</tr> |
269 |
</tr> |
269 |
</thead> |
270 |
</thead> |
270 |
<tbody> |
271 |
<tbody> |
Lines 281-297
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
281 |
[% END %] |
282 |
[% END %] |
282 |
|
283 |
|
283 |
[% IF ( DAY_MONTH_HOLIDAYS_LOOP ) %] |
284 |
[% IF ( DAY_MONTH_HOLIDAYS_LOOP ) %] |
284 |
<h3>Yearly - Repeatable holidays</h3> |
285 |
<h3>[% t('Yearly - Repeatable holidays') %]</h3> |
285 |
<table id="holidaysyearlyrepeatable"> |
286 |
<table id="holidaysyearlyrepeatable"> |
286 |
<thead> |
287 |
<thead> |
287 |
<tr> |
288 |
<tr> |
288 |
[% IF ( dateformat == "metric" ) %] |
289 |
[% IF ( dateformat == "metric" ) %] |
289 |
<th class="repeatableyearly">Day/month</th> |
290 |
<th class="repeatableyearly">[% t('Day/month') %]</th> |
290 |
[% ELSE %] |
291 |
[% ELSE %] |
291 |
<th class="repeatableyearly">Month/day</th> |
292 |
<th class="repeatableyearly">[% t('Month/day') %]</th> |
292 |
[% END %] |
293 |
[% END %] |
293 |
<th class="repeatableyearly">Title</th> |
294 |
<th class="repeatableyearly">[% t('Title') %]</th> |
294 |
<th class="repeatableyearly">Description</th> |
295 |
<th class="repeatableyearly">[% t('Description') %]</th> |
295 |
</tr> |
296 |
</tr> |
296 |
</thead> |
297 |
</thead> |
297 |
<tbody> |
298 |
<tbody> |
Lines 307-327
td.repeatableyearly a.ui-state-default { background: #FFCC66 none; color : Bl
Link Here
|
307 |
[% END %] |
308 |
[% END %] |
308 |
|
309 |
|
309 |
[% IF ( HOLIDAYS_LOOP ) %] |
310 |
[% IF ( HOLIDAYS_LOOP ) %] |
310 |
<h3>Unique holidays</h3> |
311 |
<h3>[% t('Unique holidays') %]</h3> |
311 |
<table id="holidaysunique"> |
312 |
<table id="holidaysunique"> |
312 |
<thead> |
313 |
<thead> |
313 |
<tr> |
314 |
<tr> |
314 |
<th class="holiday">Date</th> |
315 |
<th class="holiday">[% t('Date') %]</th> |
315 |
<th class="holiday">Title</th> |
316 |
<th class="holiday">[% t('Title') %]</th> |
316 |
<th class="holiday">Description</th> |
317 |
<th class="holiday">[% t('Description') %]</th> |
317 |
</tr> |
318 |
</tr> |
318 |
</thead> |
319 |
</thead> |
319 |
<tbody> |
320 |
<tbody> |
320 |
[% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %] |
321 |
[% FOREACH HOLIDAYS_LOO IN HOLIDAYS_LOOP %] |
321 |
<tr> |
322 |
<tr> |
322 |
<td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% HOLIDAYS_LOO.DATE %]"><span title="[% HOLIDAYS_LOO.DATE_SORT %]">[% HOLIDAYS_LOO.DATE %]</span></a></td> |
323 |
<td><a href="/cgi-bin/koha/tools/holidays.pl?branch=[% branch %]&calendardate=[% HOLIDAYS_LOO.DATE %]"><span title="[% HOLIDAYS_LOO.DATE_SORT %]">[% HOLIDAYS_LOO.DATE %]</span></a></td> |
323 |
<td>[% HOLIDAYS_LOO.TITLE |html %]</td> |
324 |
<td>[% HOLIDAYS_LOO.TITLE |html %]</td> |
324 |
[% br = BLOCK %]<br/>[% END %] |
325 |
[% br = BLOCK %]<br />[% END %] |
325 |
<td>[% HOLIDAYS_LOO.DESCRIPTION.replace('\\\r\\\n', br) |html %]</td> |
326 |
<td>[% HOLIDAYS_LOO.DESCRIPTION.replace('\\\r\\\n', br) |html %]</td> |
326 |
</tr> |
327 |
</tr> |
327 |
[% END %] |
328 |
[% END %] |