From cd921163c0b9edf3cbd42cb5d3ca69514d377195 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 3 Feb 2010 10:43:23 -0500 Subject: [PATCH] Fixes for Bug 3089, Date entry fields should indicate required date format - Added include, date-format.inc, which shows format, e.g. "(DD/MM/YYYY)" - Hint shows expected date format based on system preference - Removing calendar.inc include from templates which don't use it Signed-off-by: Galen Charlton --- .../prog/en/css/staff-global.css | 6 ++- .../prog/en/includes/date-format.inc | 1 + .../prog/en/modules/acqui/histsearch.tmpl | 2 + .../prog/en/modules/acqui/parcels.tmpl | 3 +- .../en/modules/admin/aqbudgetperiods.tmpl | 2 + .../prog/en/modules/admin/aqbudgets.tmpl | 1 - .../prog/en/modules/admin/aqcontract.tmpl | 2 + .../prog/en/modules/circ/circulation.tmpl | 6 +-- .../prog/en/modules/labels/search.tmpl | 2 + .../en/modules/members/memberentrygen.tmpl | 3 ++ .../prog/en/modules/members/moremember.tmpl | 1 + .../modules/reports/acquisitions_stats.tmpl | 4 ++ .../en/modules/reports/bor_issues_top.tmpl | 4 +- .../en/modules/reports/borrowers_stats.tmpl | 2 +- .../en/modules/reports/cat_issues_top.tmpl | 4 +- .../prog/en/modules/reports/dictionary.tmpl | 2 + .../modules/reports/guided_reports_start.tmpl | 2 + .../en/modules/reports/issues_avg_stats.tmpl | 4 +- .../prog/en/modules/reports/issues_stats.tmpl | 2 +- .../en/modules/serials/checkexpiration.tmpl | 3 +- .../prog/en/modules/serials/claims.tmpl | 2 +- .../prog/en/modules/tags/review.tmpl | 4 +- .../prog/en/modules/tools/batchMod-del.tmpl | 1 - .../prog/en/modules/tools/batchMod-edit.tmpl | 1 - .../prog/en/modules/tools/batchMod.tmpl | 1 - .../prog/en/modules/tools/cleanborrowers.tmpl | 4 +- .../prog/en/modules/tools/inventory.tmpl | 2 + .../prog/en/modules/tools/koha-news.tmpl | 2 + .../prog/en/modules/tools/scheduler.tmpl | 2 +- .../prog/en/modules/tools/viewlog.tmpl | 49 +++++++------------ 30 files changed, 71 insertions(+), 53 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/date-format.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 5efd709db6..190c9da20c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -509,9 +509,13 @@ fieldset.brief ol, fieldset.brief li { list-style-type : none; } -fieldset.brief div.hint, fieldset.rows div.hint, div.yui-u div.hint { +.hint { color : #999999; font-size : 95%; +} + +fieldset.brief div.hint, fieldset.rows div.hint, div.yui-u div.hint { + font-size : 95%; margin-bottom : .4em; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/date-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/date-format.inc new file mode 100644 index 0000000000..2d902204a2 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/date-format.inc @@ -0,0 +1 @@ +(MM/DD/YYYY)(DD/MM/YYYY)(YYYY/MM/DD) \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tmpl index 3b29414ccc..d83516b4e7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tmpl @@ -25,6 +25,7 @@
  • " /> /lib/calendar/cal.gif" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" /> +
  • " /> @@ -48,6 +49,7 @@ dateStatusFunc : disable_to }); +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tmpl index f74c647f93..a3bae10406 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tmpl @@ -111,7 +111,8 @@ ifFormat : "", button : "datereceived_button" } ); - + +
    ">Cancel
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tmpl index 85661f40c1..a63fdcc346 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tmpl @@ -157,6 +157,7 @@ singleClick : false }); +
  • @@ -172,6 +173,7 @@ align : "Tl", }); +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl index 1de452f214..baf13eab90 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tmpl @@ -1,7 +1,6 @@ Koha › Administration › Funds<!-- TMPL_IF name="add_form" --> › <!--TMPL_IF NAME="budget_id" -->Modify Fund<!-- TMPL_IF NAME="budget_name" --> '<!-- TMPL_VAR NAME="budget_name" -->'<!-- /TMPL_IF --><!-- TMPL_ELSE -->Add Fund <!-- /TMPL_IF --><!-- /TMPL_IF --> - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tmpl index c9324c73de..62dfae9091 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tmpl @@ -120,6 +120,7 @@ function Check(ff) { } ); +
  •   " maxlength="10" size="10" /> @@ -133,6 +134,7 @@ function Check(ff) { } ); +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 25eea7a14c..9e30d9211e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -19,14 +19,14 @@ $.tablesorter.addParser({ $(document).ready(function() { $('#patronlists > ul').tabs(); $.tablesorter.defaults.widgets = ['zebra']; - $("#issuest").tablesorter({ + $("#issuest").tablesorter({ dateFormat: 'uk', headers: { 1: { sorter: 'articles' },5: { sorter: false },6:{sorter:false},7:{sorter:false},8:{sorter:false}} }); $("#issuest").bind("sortEnd",function() { $("#previous").parents("tr").remove(); // 'previous checkouts' header chokes table sorter }); - $("#holdst").tablesorter({ + $("#holdst").tablesorter({ dateFormat: 'uk', sortList: [[0,0]], headers: { 1: { sorter: 'articles' }} @@ -400,7 +400,7 @@ No patron matched
    -
    Specify Due Date:
    +
    Specify Due Date :
    " /> /lib/calendar/cal.gif" alt="Show Calendar" border="0" id="CalendarDueDate" style="cursor: pointer;" /> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tmpl index 6a16cd674f..adcafbcb82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/search.tmpl @@ -102,6 +102,7 @@ to add to Batch singleClick : false }); +
  • @@ -116,6 +117,7 @@ to add to Batch align : "Tl", }); +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl index 63d9c45149..503fe549cc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl @@ -226,6 +226,7 @@ Required (Error) +
  • @@ -792,6 +793,7 @@ Required (Error) +
  • @@ -813,6 +815,7 @@ Required (Error) +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index e064b9ccd6..023ffe8095 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -421,6 +421,7 @@ if (nodename =="barcodes[]"){ }); //]]> +

    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tmpl index 7c1304884f..0bf5daf995 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/acquisitions_stats.tmpl @@ -109,6 +109,7 @@ ); //]]> + To /lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" /> + @@ -189,6 +191,7 @@ ); //]]> + To /lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarToRO" style="cursor: pointer;" border="0" /> + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tmpl index 300e491fa2..689d4785ce 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/bor_issues_top.tmpl @@ -124,7 +124,7 @@ function Dopop(link) { dateStatusFunc : validate2 } ); -

  • +
  • /lib/calendar/cal.gif" border="0" id="openCalendarFromRO" style="cursor: pointer;" alt="Show Calendar" />
  • +
  • /lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFromRO" style="cursor: pointer;" />
  • +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl index a42a71a41e..d633abf24f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tmpl @@ -317,10 +317,12 @@ td input,td input[type="submit"] { font-size: 85%; padding: 1px; } " /> /lib/calendar/cal.gif" border="0" alt="Show Calendar" style="cursor: pointer;" id="openCalendarFrom" /> -
    +
    + " /> /lib/calendar/cal.gif" border="0" alt="Show Calendar" style="cursor: pointer;" id="openCalendarTo" /> +
    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tmpl index 995cedc412..7e7b98bbf0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tmpl @@ -9,7 +9,6 @@ }); //]]> - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tmpl index 497a128b42..34cb7eba7d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tmpl @@ -9,7 +9,6 @@ }); //]]> - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl index 9ee2a98599..2a0135ffb6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl @@ -9,7 +9,6 @@ }); //]]> - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tmpl index 91eadb56e2..3259497912 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tmpl @@ -67,7 +67,7 @@ ifFormat : "", } ); -

    +

    @@ -79,7 +79,7 @@ ifFormat : "", } ); -

    +

    diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl index 6c864fd885..7bef6775ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tmpl @@ -58,6 +58,7 @@ $(document).ready(function(){ } ); +
    @@ -135,6 +136,7 @@ $(document).ready(function(){ } ); +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl index 09dca9966b..b7b674893e 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tmpl @@ -77,6 +77,7 @@ Edit News ItemAdd News Item } ); +
  • @@ -91,6 +92,7 @@ Edit News ItemAdd News Item } ); +
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tmpl index e4b0bfab40..181c547e3b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/scheduler.tmpl @@ -42,7 +42,7 @@ }); //]]> - +
  • - + " />
  • @@ -73,48 +73,37 @@ " />
  • - " /> + " /> /lib/calendar/cal.gif" border="0" alt="Show Calendar" id="openCalendarFrom" style="cursor: pointer;" /> - " /> +
    +
  • +
  • + " /> /lib/calendar/cal.gif" id="openCalendarTo" alt="Show Calendar" style="cursor: pointer;" border="0" /> +
  • -- 2.39.5