From f8deb8699ba1b9c223e7097c713f0b2f9aa88a51 Mon Sep 17 00:00:00 2001 From: Duncan Tyler <duncan@catalyst.net.nz> Date: Mon, 19 Dec 2011 13:43:21 +1300 Subject: [PATCH] [SIGNED-OFF] Fix to make date obviously editable - bug 7193 Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Patch changes all date fields on subscription entry to be obvious input fields. This makes it more obvious that you can enter dates manually and is more consistent with how we handle dates in other places. --- .../prog/en/modules/serials/subscription-add.tt | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt index b308896..5301ce3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt @@ -1115,12 +1115,12 @@ $(document).ready(function() { <li> <label for="acqui_date"> First issue publication date:</label> [% UNLESS ( modify ) %]<img src="[% themelang %]/lib/calendar/cal.gif" id="acqui_button" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" />[% END %] - [% IF ( modify ) %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" disabled="disabled" style="border-width: 0px;" /> - [% ELSE %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" style="border-width: 0px;" />[% END %] + [% IF ( modify ) %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" disabled="disabled" /> + [% ELSE %]<input type="text" name="firstacquidate" value="[% firstacquidate %]" size="13" maxlength="10" id="acqui_date" />[% END %] </li> [% IF ( modify ) %]<li><label for="next_acqui_date"> Next issue publication date:</label> <img src="[% themelang %]/lib/calendar/cal.gif" id="next_acqui_button" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" /> - <input type="text" name="nextacquidate" value="[% nextacquidate %]" size="13" maxlength="10" id="next_acqui_date" style="border-width: 0px;" /> + <input type="text" name="nextacquidate" value="[% nextacquidate %]" size="13" maxlength="10" id="next_acqui_date" /> </li>[% END %] <li><!-- both scripts for calendar must follow the input field --> @@ -1307,7 +1307,7 @@ $(document).ready(function() { <label for="beginning_date" class="required"> Subscription start date:</label> <img src="[% themelang %]/lib/calendar/cal.gif" id="button1" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" /> - <input type="text" name="startdate" value="[% startdate %]" size="13" maxlength="10" id="beginning_date" style="border-width: 0px;" /> + <input type="text" name="startdate" value="[% startdate %]" size="13" maxlength="10" id="beginning_date" /> <!-- both scripts for calendar must follow the input field --> <script type="text/javascript"> Calendar.setup({ @@ -1340,7 +1340,7 @@ $(document).ready(function() { <label for="ending_date"> Subscription end date:</label> <img src="[% themelang %]/lib/calendar/cal.gif" id="buttonend1" style="cursor: pointer;" alt="Show Calendar" title="Show Calendar" /> - <input type="text" name="enddate" value="[% enddate %]" size="13" maxlength="10" id="ending_date" style="border-width: 0px;" /> + <input type="text" name="enddate" value="[% enddate %]" size="13" maxlength="10" id="ending_date" /> <!-- both scripts for calendar must follow the input field --> <script type="text/javascript"> Calendar.setup({ -- 1.7.5.4