From b08fad544130bd29f3f7ce12cdc206c2ff18dc4c Mon Sep 17 00:00:00 2001
From: Paul Poulain <paul.poulain@biblibre.com>
Date: Fri, 22 Mar 2013 17:43:23 +0100
Subject: [PATCH] Bug 9508 follow-up : replacing tabs by spaces

This patch fixes tabs and replace them by spaces
---
 .../prog/en/modules/tools/holidays.tt              |  468 ++++++++++----------
 1 file changed, 234 insertions(+), 234 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
index 8277007..04c0135 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
@@ -6,7 +6,7 @@
 <script language="JavaScript" type="text/javascript">
 //<![CDATA[
 
-	var weekdays = new Array(_("Sundays"),_("Mondays"),_("Tuesdays"),_("Wednesdays"),_("Thursdays"),_("Fridays"),_("Saturdays"));
+    var weekdays = new Array(_("Sundays"),_("Mondays"),_("Tuesdays"),_("Wednesdays"),_("Thursdays"),_("Fridays"),_("Saturdays"));
 
     /* Creates all the structures to deal with all diferents kinds of holidays */
     var week_days = new Array();
@@ -36,75 +36,75 @@
         formObject.submit();
     }
 
-	// This function shows the "Show Holiday" panel //
-	function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description, holidayType) {
-		$("#newHoliday").slideUp("fast");
-		$("#showHoliday").slideDown("fast");
-		$('#showDaynameOutput').html(dayName);
-		$('#showDayname').val(dayName);
-		$('#showBranchNameOutput').html($("#branch :selected").text());
-		$('#showBranchName').val($("#branch").val());
-		$('#showDayOutput').html(day);
-		$('#showDay').val(day);
-		$('#showMonthOutput').html(month);
-		$('#showMonth').val(month);
-		$('#showYearOutput').html(year);
-		$('#showYear').val(year);
-		$('#showDescription').val(description);
-		$('#showWeekday:first').val(weekDay);
-		$('#showTitle').val(title);
-		$('#showHolidayType').val(holidayType);
+    // This function shows the "Show Holiday" panel //
+    function showHoliday (exceptionPosibility, dayName, day, month, year, weekDay, title, description, holidayType) {
+        $("#newHoliday").slideUp("fast");
+        $("#showHoliday").slideDown("fast");
+        $('#showDaynameOutput').html(dayName);
+        $('#showDayname').val(dayName);
+        $('#showBranchNameOutput').html($("#branch :selected").text());
+        $('#showBranchName').val($("#branch").val());
+        $('#showDayOutput').html(day);
+        $('#showDay').val(day);
+        $('#showMonthOutput').html(month);
+        $('#showMonth').val(month);
+        $('#showYearOutput').html(year);
+        $('#showYear').val(year);
+        $('#showDescription').val(description);
+        $('#showWeekday:first').val(weekDay);
+        $('#showTitle').val(title);
+        $('#showHolidayType').val(holidayType);
 
-		if (holidayType == 'exception') {
-			$("#showOperationDelLabel").html(_("Delete this exception."));
-			$("#holtype").attr("class","key exception").html(_("Holiday exception"));
-		} else if(holidayType == 'weekday') {
-			$("#showOperationDelLabel").html(_("Delete this holiday."));
-			$("#holtype").attr("class","key repeatableweekly").html(_("Holiday repeating weekly"));
-		} else if(holidayType == 'daymonth') {
-			$("#showOperationDelLabel").html(_("Delete this holiday."));
-			$("#holtype").attr("class","key repeatableyearly").html(_("Holiday repeating yearly"));
-		} else {
-			$("#showOperationDelLabel").html(_("Delete this holiday."));
-			$("#holtype").attr("class","key holiday").html(_("Unique holiday"));
-		}
-		
-		if (exceptionPosibility == 1) {
-			$("#exceptionPosibility").parent().show();
-		} else {
-			$("#exceptionPosibility").parent().hide();
-		}
-	}
+        if (holidayType == 'exception') {
+            $("#showOperationDelLabel").html(_("Delete this exception."));
+            $("#holtype").attr("class","key exception").html(_("Holiday exception"));
+        } else if(holidayType == 'weekday') {
+            $("#showOperationDelLabel").html(_("Delete this holiday."));
+            $("#holtype").attr("class","key repeatableweekly").html(_("Holiday repeating weekly"));
+        } else if(holidayType == 'daymonth') {
+            $("#showOperationDelLabel").html(_("Delete this holiday."));
+            $("#holtype").attr("class","key repeatableyearly").html(_("Holiday repeating yearly"));
+        } else {
+            $("#showOperationDelLabel").html(_("Delete this holiday."));
+            $("#holtype").attr("class","key holiday").html(_("Unique holiday"));
+        }
+        
+        if (exceptionPosibility == 1) {
+            $("#exceptionPosibility").parent().show();
+        } else {
+            $("#exceptionPosibility").parent().hide();
+        }
+    }
 
-	// This function shows the "Add Holiday" panel //
-	function newHoliday (dayName, day, month, year, weekDay) {
-		$("#showHoliday").slideUp("fast");
-		$("#newHoliday").slideDown("fast");
-		$("#newDaynameOutput").html(dayName);
-		$("#newDayname").val(dayName);
-		$("#newBranchNameOutput").html($('#branch :selected').text());
-		$("#newBranchName").val($('#branch').val());
-		$("#newDayOutput").html(day);
-		$("#newDay").val(day);
-		$("#newMonthOutput").html(month);
-		$("#newMonth").val(month);
-		$("#newYearOutput").html(year);
-		$("#newYear").val(year);
-		$("#newWeekday:first").val(weekDay);
-	}
+    // This function shows the "Add Holiday" panel //
+    function newHoliday (dayName, day, month, year, weekDay) {
+        $("#showHoliday").slideUp("fast");
+        $("#newHoliday").slideDown("fast");
+        $("#newDaynameOutput").html(dayName);
+        $("#newDayname").val(dayName);
+        $("#newBranchNameOutput").html($('#branch :selected').text());
+        $("#newBranchName").val($('#branch').val());
+        $("#newDayOutput").html(day);
+        $("#newDay").val(day);
+        $("#newMonthOutput").html(month);
+        $("#newMonth").val(month);
+        $("#newYearOutput").html(year);
+        $("#newYear").val(year);
+        $("#newWeekday:first").val(weekDay);
+    }
 
-	function hidePanel(aPanelName) {
-		$("#"+aPanelName).slideUp("fast");
-	}
+    function hidePanel(aPanelName) {
+        $("#"+aPanelName).slideUp("fast");
+    }
 
-	function changeBranch () {
-		var branch = $("#branch option:selected").val();
-		location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch + '&calendardate=' + "[% calendardate %]";
-	}
+    function changeBranch () {
+        var branch = $("#branch option:selected").val();
+        location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch + '&calendardate=' + "[% calendardate %]";
+    }
 
-	function Help() {
-		newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
-	}
+    function Help() {
+        newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
+    }
 
     /* This function gives css clases to each kind of day */
     function dateStatusHandler(date) {
@@ -139,11 +139,11 @@
         var dayMonth = month + '/' + day;
         var dateString = year + '/' + month + '/' + day;
             if (holidays[dateString] != null) {
-                showHoliday(0, dayName, day, month, year, weekDay, holidays[dateString].title, 	holidays[dateString].description, 'ymd');
+                showHoliday(0, dayName, day, month, year, weekDay, holidays[dateString].title,     holidays[dateString].description, 'ymd');
             } else if (exception_holidays[dateString] != null) {
                 showHoliday(0, dayName, day, month, year, weekDay, exception_holidays[dateString].title, exception_holidays[dateString].description, 'exception');
             } else if (week_days[weekDay] != null) {
-                showHoliday(1, dayName, day, month, year, weekDay, week_days[weekDay].title, 	week_days[weekDay].description, 'weekday');
+                showHoliday(1, dayName, day, month, year, weekDay, week_days[weekDay].title,     week_days[weekDay].description, 'weekday');
             } else if (day_month_holidays[dayMonth] != null) {
                 showHoliday(1, dayName, day, month, year, weekDay, day_month_holidays[dayMonth].title, day_month_holidays[dayMonth].description, 'daymonth');
             } else {
@@ -151,54 +151,54 @@
             }
     };
 
-	$(document).ready(function() {
+    $(document).ready(function() {
 
-[% IF ( dateformat == "metric" ) %]		$.tablesorter.addParser({ // http://tablesorter.com/docs/example-parsers.html
-			id: 'shortDates',
-			is: function(s){
-				return false;
-			},
-			format: function(s){
-				var datepattern = new RegExp("[0-9]\/[0-9]");
-				if( datepattern.test(s)){ // sorting a date without a year: "01/12"
-					var dateparts = s.split("/").reverse().join("-"); // build an ISO date to be sorted as text
-					s = "2000-" + dateparts; // use 2000 as the default year
-				}
-				return s;
-			},
-			type: 'text'
-		});
+[% IF ( dateformat == "metric" ) %]        $.tablesorter.addParser({ // http://tablesorter.com/docs/example-parsers.html
+            id: 'shortDates',
+            is: function(s){
+                return false;
+            },
+            format: function(s){
+                var datepattern = new RegExp("[0-9]\/[0-9]");
+                if( datepattern.test(s)){ // sorting a date without a year: "01/12"
+                    var dateparts = s.split("/").reverse().join("-"); // build an ISO date to be sorted as text
+                    s = "2000-" + dateparts; // use 2000 as the default year
+                }
+                return s;
+            },
+            type: 'text'
+        });
 [% END %]
-		$(".hint").hide();
-		$("#branch").change(function(){
-			changeBranch();
-		});
+        $(".hint").hide();
+        $("#branch").change(function(){
+            changeBranch();
+        });
              $("#holidayexceptions").tablesorter({[% IF ( dateformat == "metric" ) %]
-		  dateFormat: 'uk',[% END %]
-		  sortList: [[0,0]], widgets: ['zebra']
-		});
+          dateFormat: 'uk',[% END %]
+          sortList: [[0,0]], widgets: ['zebra']
+        });
                 $("#holidayweeklyrepeatable").tablesorter({[% IF ( dateformat == "metric" ) %]
-		  dateFormat: 'uk',[% END %]
-		  sortList: [[0,0]], widgets: ['zebra']
-		});
+          dateFormat: 'uk',[% END %]
+          sortList: [[0,0]], widgets: ['zebra']
+        });
           $("#holidaysyearlyrepeatable").tablesorter({[% IF ( dateformat == "metric" ) %]
-			headers : {
-				0: {
-					sorter : 'shortDates'
-				}
-			},[% END %]
-			sortList: [[0,0]], widgets: ['zebra']
-		});
+            headers : {
+                0: {
+                    sorter : 'shortDates'
+                }
+            },[% END %]
+            sortList: [[0,0]], widgets: ['zebra']
+        });
           $("#holidaysunique").tablesorter({[% IF ( dateformat == "metric" ) %]
-		  dateFormat: 'uk',[% END %]
-		  sortList: [[0,0]], widgets: ['zebra']
-		});
-		$("a.helptext").click(function(){
-			$(this).parent().find(".hint").toggle(); return false;
-		});
+          dateFormat: 'uk',[% END %]
+          sortList: [[0,0]], widgets: ['zebra']
+        });
+        $("a.helptext").click(function(){
+            $(this).parent().find(".hint").toggle(); return false;
+        });
         $("#dateofrange").datepicker();
         $("#datecancelrange").datepicker();
-		$("#dateofrange").each(function () { this.value = "" });
+        $("#dateofrange").each(function () { this.value = "" });
         $("#datecancelrange").each(function () { this.value = "" });
         $("#jcalendar-container").datepicker({
           beforeShowDay: function(thedate) {
@@ -213,7 +213,7 @@
         },
         defaultDate: new Date("[% keydate %]")
     });
-	});
+    });
 //]]>
 </script>
 <style type="text/css"> .key { padding : 3px; white-space:nowrap; line-height:230%; }
@@ -245,11 +245,11 @@ td.repeatableyearly a.ui-state-default, .repeatableyearly {  background:  #FFFF9
 <div id="doc3" class="yui-t1">
    
    <div id="bd">
-	<div id="yui-main">
-	<div class="yui-b">
-	<h2>[% branchname %] Calendar</h2>
-	<div class="yui-g">
-	<div class="yui-u first">
+    <div id="yui-main">
+    <div class="yui-b">
+    <h2>[% branchname %] Calendar</h2>
+    <div class="yui-g">
+    <div class="yui-u first">
         <label for="branch">Define the holidays for:</label>
             <select id="branch" name="branch">
                 [% FOREACH branchloo IN branchloop %]
@@ -260,57 +260,57 @@ td.repeatableyearly a.ui-state-default, .repeatableyearly {  background:  #FFFF9
                     [% END %]
                 [% END %]
             </select>
-	
-	<!-- ******************************** FLAT PANELS ******************************************* -->
-	<!-- *****           Makes all the flat panel to deal with holidays                     ***** -->
-	<!-- **************************************************************************************** -->
+    
+    <!-- ******************************** FLAT PANELS ******************************************* -->
+    <!-- *****           Makes all the flat panel to deal with holidays                     ***** -->
+    <!-- **************************************************************************************** -->
 
-	<!-- ********************** Panel for showing already loaded holidays *********************** -->
-	<div class="panel" id="showHoliday">
-	 	<form action="/cgi-bin/koha/tools/exceptionHolidays.pl" method="post">
-	 		<input type="hidden" id="showHolidayType" name="showHolidayType" value="" />
-			<fieldset class="brief">
-			<h3>Edit this holiday</h3>
-			<span id="holtype"></span>
-			<ol>
-			<li>
-				<strong>Library:</strong> <span id="showBranchNameOutput"></span>
-				<input type="hidden" id="showBranchName" name="showBranchName" />
-			</li>
-			<li>
-				<strong>From Date:</strong>
-				<span id="showDaynameOutput"></span>, 
-				
+    <!-- ********************** Panel for showing already loaded holidays *********************** -->
+    <div class="panel" id="showHoliday">
+         <form action="/cgi-bin/koha/tools/exceptionHolidays.pl" method="post">
+             <input type="hidden" id="showHolidayType" name="showHolidayType" value="" />
+            <fieldset class="brief">
+            <h3>Edit this holiday</h3>
+            <span id="holtype"></span>
+            <ol>
+            <li>
+                <strong>Library:</strong> <span id="showBranchNameOutput"></span>
+                <input type="hidden" id="showBranchName" name="showBranchName" />
+            </li>
+            <li>
+                <strong>From Date:</strong>
+                <span id="showDaynameOutput"></span>, 
+                
                                 [% 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>[% ELSE %]<span id="showYearOutput"></span>/<span id="showMonthOutput"></span>/<span id="showDayOutput"></span>[% END %]
 
-				<input type="hidden" id="showDayname" name="showDayname" />
-				<input type="hidden" id="showWeekday" name="showWeekday" />
-				<input type="hidden" id="showDay" name="showDay" />
-				<input type="hidden" id="showMonth" name="showMonth" />
-				<input type="hidden" id="showYear" name="showYear" />
-			</li>
+                <input type="hidden" id="showDayname" name="showDayname" />
+                <input type="hidden" id="showWeekday" name="showWeekday" />
+                <input type="hidden" id="showDay" name="showDay" />
+                <input type="hidden" id="showMonth" name="showMonth" />
+                <input type="hidden" id="showYear" name="showYear" />
+            </li>
             <li class="dateinsert">
                 <b>To Date : </b>
                 <input type="text" id="datecancelrange" name="datecancelrange" size="20" value="[% datecancelrange %]" class="datepicker"/>
             </li>
-			<li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li>
-		    <!-- showTitle is necessary for exception radio button to work properly --> 
-				<label for="showDescription">Description:</label>
-				<textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea>	
-		    </li>
-			<li class="radio"><div id="exceptionPosibility" style="position:static">
-				<input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">Generate an exception for this repeated holiday.</label>
-				<a href="#" class="helptext">[?]</a>
-				<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>
-			</div></li>
+            <li><label for="showTitle">Title: </label><input type="text" name="showTitle" id="showTitle" size="35" /></li>
+            <!-- showTitle is necessary for exception radio button to work properly --> 
+                <label for="showDescription">Description:</label>
+                <textarea rows="2" cols="40" id="showDescription" name="showDescription"></textarea>    
+            </li>
+            <li class="radio"><div id="exceptionPosibility" style="position:static">
+                <input type="radio" name="showOperation" id="showOperationExc" value="exception" /> <label for="showOperationExc">Generate an exception for this repeated holiday.</label>
+                <a href="#" class="helptext">[?]</a>
+                <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>
+            </div></li>
             <li class="radio"><input type="radio" name="showOperation" id="showOperationExcRange" value="exceptionrange" />
                 <label for="newOperationFieldException">Generate exceptions on a range of dates.</label>
                 <a href="#" class="helptext">[?]</a>
                 <div class="hint">You can make an exception on a range of dates repeated yearly.</div>
             </li>
-			<li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">Delete this holiday</label>
-				<a href="#" class="helptext">[?]</a>
-				<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>
+            <li class="radio"><input type="radio" name="showOperation" id="showOperationDel" value="delete" /> <label for="showOperationDel" id="showOperationDelLabel">Delete this holiday</label>
+                <a href="#" class="helptext">[?]</a>
+                <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>
             <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>.
                 <a href="#" class="helptext">[?]</a>
                 <div class="hint">This will delete the single holidays rules only. The repeatable holidays and exceptions will not be deleted.</div>
@@ -323,65 +323,65 @@ td.repeatableyearly a.ui-state-default, .repeatableyearly {  background:  #FFFF9
                 <a href="#" class="helptext">[?]</a>
                 <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>
             </li>
-			<li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">Edit this holiday</label>
+            <li class="radio"><input type="radio" name="showOperation" id="showOperationEdit" value="edit" checked="checked" /> <label for="showOperationEdit">Edit this holiday</label>
                 <a href="#" class="helptext">[?]</a>
                 <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>
-			</ol>
-			<fieldset class="action">
-				<input type="submit" name="submit" value="Save" />
-				<a href="#" class="cancel" name="cancel2" onclick=" hidePanel('showHoliday');">Cancel</a>
-			</fieldset>
-			</fieldset>
-		</form>
-	</div>
+            </ol>
+            <fieldset class="action">
+                <input type="submit" name="submit" value="Save" />
+                <a href="#" class="cancel" name="cancel2" onclick=" hidePanel('showHoliday');">Cancel</a>
+            </fieldset>
+            </fieldset>
+        </form>
+    </div>
 
-	<!-- ***************************** Panel to deal with new holidays **********************  -->
-	<div class="panel" id="newHoliday">
-	 	<form action="/cgi-bin/koha/tools/newHolidays.pl" method="post">
-				<input type="hidden" name="branchCodes" id="branchCodes" value="[% branchcodes %]" /> 
-			<fieldset class="brief">
-			<h3>Add new holiday</h3>
-			<ol>
-			<li>
-				<strong>Library:</strong>
-				<span id="newBranchNameOutput"></span>
-				<input type="hidden" id="newBranchName" name="newBranchName" />
-			</li>
-			<li>
+    <!-- ***************************** Panel to deal with new holidays **********************  -->
+    <div class="panel" id="newHoliday">
+         <form action="/cgi-bin/koha/tools/newHolidays.pl" method="post">
+                <input type="hidden" name="branchCodes" id="branchCodes" value="[% branchcodes %]" /> 
+            <fieldset class="brief">
+            <h3>Add new holiday</h3>
+            <ol>
+            <li>
+                <strong>Library:</strong>
+                <span id="newBranchNameOutput"></span>
+                <input type="hidden" id="newBranchName" name="newBranchName" />
+            </li>
+            <li>
                 <strong>From date:</strong>
-				<span id="newDaynameOutput"></span>, 
+                <span id="newDaynameOutput"></span>, 
 
                          [% 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>[% ELSE %]<span id="newYearOutput"></span>/<span id="newMonthOutput"></span>/<span id="newDayOutput"></span>[% END %]
 
-				<input type="hidden" id="newDayname" name="showDayname" />
-				<input type="hidden" id="newWeekday" name="newWeekday" />
-				<input type="hidden" id="newDay" name="newDay" />
-				<input type="hidden" id="newMonth" name="newMonth" />
-				<input type="hidden" id="newYear" name="newYear" />
-			</li>
-			<li class="dateinsert">
+                <input type="hidden" id="newDayname" name="showDayname" />
+                <input type="hidden" id="newWeekday" name="newWeekday" />
+                <input type="hidden" id="newDay" name="newDay" />
+                <input type="hidden" id="newMonth" name="newMonth" />
+                <input type="hidden" id="newYear" name="newYear" />
+            </li>
+            <li class="dateinsert">
                 <b>To date : </b>
                 <input type="text" id="dateofrange" name="dateofrange" size="20" value="[% dateofrange %]" class="datepicker" />
-			</li>
-			<li><label for="title">Title: </label><input type="text" name="newTitle" id="title" size="35" /></li>
-			<li><label for="newDescription">Description:</label>
-				<textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea>
-			</li>
-			<li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" />
-			<label for="newOperationOnce">Holiday only on this day</label>.
-			<a href="#" class="helptext">[?]</a>
-			<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>
-			</li>
-			<li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" />
-							<label for="newOperationDay">Holiday repeated every same day of the week</label>.
-							<a href="#" class="helptext">[?]</a>
-							<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>
-							</li>
-			<li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" />
-							<label for="newOperationYear">Holiday repeated yearly on the same date</label>.
-							<a href="#" class="helptext">[?]</a>
-							<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>
-							</li>
+            </li>
+            <li><label for="title">Title: </label><input type="text" name="newTitle" id="title" size="35" /></li>
+            <li><label for="newDescription">Description:</label>
+                <textarea rows="2" cols="40" id="newDescription" name="newDescription"></textarea>
+            </li>
+            <li class="radio"><input type="radio" name="newOperation" id="newOperationOnce" value="holiday" checked="checked" />
+            <label for="newOperationOnce">Holiday only on this day</label>.
+            <a href="#" class="helptext">[?]</a>
+            <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>
+            </li>
+            <li class="radio"><input type="radio" name="newOperation" id="newOperationDay" value="weekday" />
+                            <label for="newOperationDay">Holiday repeated every same day of the week</label>.
+                            <a href="#" class="helptext">[?]</a>
+                            <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>
+                            </li>
+            <li class="radio"><input type="radio" name="newOperation" id="newOperationYear" value="repeatable" />
+                            <label for="newOperationYear">Holiday repeated yearly on the same date</label>.
+                            <a href="#" class="helptext">[?]</a>
+                            <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>
+                            </li>
             <li class="radio"><input type="radio" name="newOperation" id="newOperationField" value="holidayrange" />
                             <label for="newOperationField">Holidays on a range</label>.
                             <a href="#" class="helptext">[?]</a>
@@ -392,23 +392,23 @@ td.repeatableyearly a.ui-state-default, .repeatableyearly {  background:  #FFFF9
                             <a href="#" class="helptext">[?]</a>
                             <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>
                             </li>
-				<li class="radio">
-				<input type="checkbox" name="allBranches" id="allBranches" />
-				<label for="allBranches">Copy to all libraries</label>.
-				<a href="#" class="helptext">[?]</a>
-				<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>
-				</li></ol>
-				<fieldset class="action">
-					<input type="submit" name="submit" value="Save" />
-					<a href="#" class="cancel" name="cancel2" onclick=" hidePanel('newHoliday');">Cancel</a>
-				</fieldset>
-				</fieldset>
-	 	</form>
-	</div>
+                <li class="radio">
+                <input type="checkbox" name="allBranches" id="allBranches" />
+                <label for="allBranches">Copy to all libraries</label>.
+                <a href="#" class="helptext">[?]</a>
+                <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>
+                </li></ol>
+                <fieldset class="action">
+                    <input type="submit" name="submit" value="Save" />
+                    <a href="#" class="cancel" name="cancel2" onclick=" hidePanel('newHoliday');">Cancel</a>
+                </fieldset>
+                </fieldset>
+         </form>
+    </div>
 
-	<!-- *************************************************************************************** -->
-	<!-- ******                          END OF FLAT PANELS                               ****** -->
-	<!-- *************************************************************************************** -->
+    <!-- *************************************************************************************** -->
+    <!-- ******                          END OF FLAT PANELS                               ****** -->
+    <!-- *************************************************************************************** -->
 
 <!-- ************************************************************************************** -->
 <!-- ******                              MAIN SCREEN CODE                            ****** -->
@@ -418,7 +418,7 @@ td.repeatableyearly a.ui-state-default, .repeatableyearly {  background:  #FFFF9
 
 <div style="margin-top: 2em;">
 <form action="copy-holidays.pl" method="post">
-	<input type="hidden" name="from_branchcode" value="[% branch %]" />
+    <input type="hidden" name="from_branchcode" value="[% branch %]" />
   <label for="branchcode">Copy holidays to:</label>
   <select id="branchcode" name="branchcode">
     <option value=""></option>
@@ -426,7 +426,7 @@ td.repeatableyearly a.ui-state-default, .repeatableyearly {  background:  #FFFF9
     <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
     [% END %]
   </select>
-	<input type="submit" value="Copy" />
+    <input type="submit" value="Copy" />
 </form>
 </div>
 
@@ -434,21 +434,21 @@ td.repeatableyearly a.ui-state-default, .repeatableyearly {  background:  #FFFF9
 <div class="yui-u">
 <div class="help">
 <h4>Hints</h4>
-	<ul>
-		<li>Search in the calendar the day you want to set as holiday.</li>
-		<li>Click the date to add or edit a holiday.</li>
-		<li>Enter a title and description for the holdiay.</li>
-		<li>Specify how the holiday should repeat.</li>
-		<li>Click Save to finish.</li>
-	</ul>
+    <ul>
+        <li>Search in the calendar the day you want to set as holiday.</li>
+        <li>Click the date to add or edit a holiday.</li>
+        <li>Enter a title and description for the holdiay.</li>
+        <li>Specify how the holiday should repeat.</li>
+        <li>Click Save to finish.</li>
+    </ul>
 <h4>Key</h4>
-	<p>
-		<span class="key normalday">Working day</span>
-		<span class="key holiday">Unique holiday</span>
-		<span class="key repeatableweekly">Holiday repeating weekly</span>
-		<span class="key repeatableyearly">Holiday repeating yearly</span>
-		<span class="key exception">Holiday exception</span>
-	</p>
+    <p>
+        <span class="key normalday">Working day</span>
+        <span class="key holiday">Unique holiday</span>
+        <span class="key repeatableweekly">Holiday repeating weekly</span>
+        <span class="key repeatableyearly">Holiday repeating yearly</span>
+        <span class="key exception">Holiday exception</span>
+    </p>
 </div>
 <div id="holiday-list">
 <!-- Exceptions First -->
-- 
1.7.9.5