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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt (-18 / +18 lines)
Lines 4-14 Link Here
4
[% INCLUDE 'calendar.inc' %]
4
[% INCLUDE 'calendar.inc' %]
5
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6
[% INCLUDE 'datatables.inc' %]
6
[% INCLUDE 'datatables.inc' %]
7
<script language="JavaScript" type="text/javascript">
7
<script type="text/javascript">
8
//<![CDATA[
8
//<![CDATA[
9
    var weekdays = new Array(_("Sundays"),_("Mondays"),_("Tuesdays"),_("Wednesdays"),_("Thursdays"),_("Fridays"),_("Saturdays"));
9
    var weekdays = new Array(_("Sundays"),_("Mondays"),_("Tuesdays"),_("Wednesdays"),_("Thursdays"),_("Fridays"),_("Saturdays"));
10
10
11
    /* Creates all the structures to deal with all diferents kinds of holidays */
11
    /* Creates all the structures to deal with all different kinds of holidays */
12
    var week_days = new Array();
12
    var week_days = new Array();
13
    var holidays = new Array();
13
    var holidays = new Array();
14
    var holidates = new Array();
14
    var holidates = new Array();
Lines 116-130 Link Here
116
        var dayMonth = month + '/' + day;
116
        var dayMonth = month + '/' + day;
117
        var dateString = year + '/' + month + '/' + day;
117
        var dateString = year + '/' + month + '/' + day;
118
        if (exception_holidays[dateString] != null) {
118
        if (exception_holidays[dateString] != null) {
119
            return [true, "exception", "Exception: "+exception_holidays[dateString].title];
119
            return [true, "exception", _("Exception") + ": "+exception_holidays[dateString].title];
120
        } else if ( week_days[weekDay] != null ){
120
        } else if ( week_days[weekDay] != null ){
121
            return [true, "repeatableweekly", "Weekly holdiay: "+week_days[weekDay].title];
121
            return [true, "repeatableweekly", _("Weekly holiday") + ": "+week_days[weekDay].title];
122
        } else if ( day_month_holidays[dayMonth] != null ) {
122
        } else if ( day_month_holidays[dayMonth] != null ) {
123
            return [true, "repeatableyearly", "Yearly holdiay: "+day_month_holidays[dayMonth].title];
123
            return [true, "repeatableyearly", _("Yearly holiday") + ": "+day_month_holidays[dayMonth].title];
124
        } else if (holidays[dateString] != null) {
124
        } else if (holidays[dateString] != null) {
125
            return [true, "holiday", "Single holiday: "+holidays[dateString].title];
125
            return [true, "holiday", _("Single holiday") + ": "+holidays[dateString].title];
126
        } else {
126
        } else {
127
            return [true, "normalday", "Normal day"];
127
            return [true, "normalday", _("Normal day")];
128
        }
128
        }
129
    }
129
    }
130
130
Lines 269-277 td.repeatableyearly a.ui-state-default { background: #FFFF99 none; color : Bl Link Here
269
                <input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker"/>
269
                <input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker"/>
270
            </li>
270
            </li>
271
            <li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li>
271
            <li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li>
272
            <!-- showTitle is necessary for exception radio button to work properly --> 
272
            <!-- showTitle is necessary for exception radio button to work properly -->
273
            <li>
273
                <label for="showDescription">Description:</label>
274
                <label for="showDescription">Description:</label>
274
                <textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea>    
275
                <textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea>
275
            </li>
276
            </li>
276
            <li class="radio"><div id="exceptionPosibility" style="position:static">
277
            <li class="radio"><div id="exceptionPosibility" style="position:static">
277
                <input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">Generate an exception for this repeated holiday.</label>
278
                <input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">Generate an exception for this repeated holiday.</label>
Lines 279-285 td.repeatableyearly a.ui-state-default { background: #FFFF99 none; color : Bl Link Here
279
                <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>
280
                <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>
280
            </div></li>
281
            </div></li>
281
            <li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" />
282
            <li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" />
282
                <label for="newOperationFieldException">Generate exceptions on a range of dates.</label>
283
                <label for="showOperationExcRange">Generate exceptions on a range of dates.</label>
283
                <a href="#" class="helptext">[?]</a>
284
                <a href="#" class="helptext">[?]</a>
284
                <div class="hint">You can make an exception on a range of dates repeated yearly.</div>
285
                <div class="hint">You can make an exception on a range of dates repeated yearly.</div>
285
            </li>
286
            </li>
Lines 304-310 td.repeatableyearly a.ui-state-default { background: #FFFF99 none; color : Bl Link Here
304
            </ol>
305
            </ol>
305
            <fieldset class="action">
306
            <fieldset class="action">
306
                <input type="submit" name="submit" value="Save" />
307
                <input type="submit" name="submit" value="Save" />
307
                <a href="#" class="cancel" name="cancel2" onclick=" hidePanel('showHoliday');">Cancel</a>
308
                <a href="#" class="cancel" onclick=" hidePanel('showHoliday');">Cancel</a>
308
            </fieldset>
309
            </fieldset>
309
            </fieldset>
310
            </fieldset>
310
        </form>
311
        </form>
Lines 345-351 td.repeatableyearly a.ui-state-default { background: #FFFF99 none; color : Bl Link Here
345
            <li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" />
346
            <li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" />
346
            <label for="newOperationOnce">Holiday only on this day</label>.
347
            <label for="newOperationOnce">Holiday only on this day</label>.
347
            <a href="#" class="helptext">[?]</a>
348
            <a href="#" class="helptext">[?]</a>
348
            <div class="hint">Make a single holiday. For example, selecting August 1st, 2012 will make it a holiday, but will not affect August 1st in other years.</div>
349
            <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>
349
            </li>
350
            </li>
350
            <li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" />
351
            <li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" />
351
                            <label for="newOperationDay">Holiday repeated every same day of the week</label>.
352
                            <label for="newOperationDay">Holiday repeated every same day of the week</label>.
Lines 355-371 td.repeatableyearly a.ui-state-default { background: #FFFF99 none; color : Bl Link Here
355
            <li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" />
356
            <li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" />
356
                            <label for="newOperationYear">Holiday repeated yearly on the same date</label>.
357
                            <label for="newOperationYear">Holiday repeated yearly on the same date</label>.
357
                            <a href="#" class="helptext">[?]</a>
358
                            <a href="#" class="helptext">[?]</a>
358
                            <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 1st will make August 1st a holiday every year.</div>
359
                            <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>
359
                            </li>
360
                            </li>
360
            <li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" />
361
            <li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" />
361
                            <label for="newOperationField">Holidays on a range</label>.
362
                            <label for="newOperationField">Holidays on a range</label>.
362
                            <a href="#" class="helptext">[?]</a>
363
                            <a href="#" class="helptext">[?]</a>
363
                            <div class="hint">Make a single holiday on a range. For example, selecting August 1st, 2012  and August 10st, 2012 will make all days between 1st and 10st holiday, but will not affect August 1-10 in other years.</div>
364
                            <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>
364
                            </li>
365
                            </li>
365
            <li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" />
366
            <li class="radio"><input type="radio" name="newOperation" id="newOperationFieldyear" value="holidayrangerepeat" />
366
                            <label for="newOperationFieldyear">Holidays repeated yearly on a range</label>.
367
                            <label for="newOperationFieldyear">Holidays repeated yearly on a range</label>.
367
                            <a href="#" class="helptext">[?]</a>
368
                            <a href="#" class="helptext">[?]</a>
368
                            <div class="hint">Make a single holiday on a range repeated yearly. For example, selecting August 1st, 2012  and August 10st, 2012 will make all days between 1st and 10st holiday, and will affect August 1-10 in other years.</div>
369
                            <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>
369
                            </li>
370
                            </li>
370
                <li class="radio">
371
                <li class="radio">
371
                <input type="checkbox" name="allBranches" id="allBranches" />
372
                <input type="checkbox" name="allBranches" id="allBranches" />
Lines 375-381 td.repeatableyearly a.ui-state-default { background: #FFFF99 none; color : Bl Link Here
375
                </li></ol>
376
                </li></ol>
376
                <fieldset class="action">
377
                <fieldset class="action">
377
                    <input type="submit" name="submit" value="Save" />
378
                    <input type="submit" name="submit" value="Save" />
378
                    <a href="#" class="cancel" name="cancel2" onclick=" hidePanel('newHoliday');">Cancel</a>
379
                    <a href="#" class="cancel" onclick=" hidePanel('newHoliday');">Cancel</a>
379
                </fieldset>
380
                </fieldset>
380
                </fieldset>
381
                </fieldset>
381
         </form>
382
         </form>
Lines 412-418 td.repeatableyearly a.ui-state-default { background: #FFFF99 none; color : Bl Link Here
412
    <ul>
413
    <ul>
413
        <li>Search in the calendar the day you want to set as holiday.</li>
414
        <li>Search in the calendar the day you want to set as holiday.</li>
414
        <li>Click the date to add or edit a holiday.</li>
415
        <li>Click the date to add or edit a holiday.</li>
415
        <li>Enter a title and description for the holdiay.</li>
416
        <li>Enter a title and description for the holiday.</li>
416
        <li>Specify how the holiday should repeat.</li>
417
        <li>Specify how the holiday should repeat.</li>
417
        <li>Click Save to finish.</li>
418
        <li>Click Save to finish.</li>
418
    </ul>
419
    </ul>
419
- 

Return to bug 12056