Bugzilla – Attachment 124748 Details for
Bug 28945
Use Flatpickr on administration pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28945: Use Flatpickr on administration pages
Bug-28945-Use-Flatpickr-on-administration-pages.patch (text/plain), 6.95 KB, created by
David Nind
on 2021-09-10 10:08:21 UTC
(
hide
)
Description:
Bug 28945: Use Flatpickr on administration pages
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-09-10 10:08:21 UTC
Size:
6.95 KB
patch
obsolete
>From cf4de61d5b3a5cc37ccb6db5b790ae1871734dcf Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 3 Sep 2021 11:35:47 +0000 >Subject: [PATCH] Bug 28945: Use Flatpickr on administration pages > >This patch updates administration templates to use Flatpickr instead of >jQueryUI datepickers. > >To test, apply the patch and test date fields on the following pages: > >- Administration -> Budgets -> > - New budget: Linked "Start date" and "End date" fields. > - Duplicate budget: Linked "Start date" and "End date" fields. >- Acquisitions -> Vendor -> New contract: Linked "Start date" and "End > date" fields. >- Administration -> Circulation and fine rules: "Hard due date" and "No > automatic renewal after" fields. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../prog/en/modules/admin/aqbudgetperiods.tt | 8 ++++---- > .../intranet-tmpl/prog/en/modules/admin/aqcontract.tt | 4 ++-- > .../intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 4 ++-- > 3 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >index e7d9d87d9b..f2149b50dd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >@@ -189,14 +189,14 @@ > > <li> > <label class="required" for="from">Start date: </label> >- <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" /> >+ <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="flatpickrfrom" /> > <span class="required">Required</span> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> > <li> > > <label class="required" for="to">End date: </label> >- <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" /> >+ <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="flatpickrto" /> > <span class="required">Required</span> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> >@@ -259,14 +259,14 @@ > <ol> > <li> > <label class="required" for="from">Start date: </label> >- <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="datepickerfrom" /> >+ <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | $KohaDates %]" class="flatpickrfrom" /> > <span class="required">Required</span> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> > <li> > > <label class="required" for="to">End date: </label> >- <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="datepickerto" /> >+ <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | $KohaDates %]" class="flatpickrto" /> > <span class="required">Required</span> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt >index f1c10f98ca..1eee60f12d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt >@@ -132,12 +132,12 @@ > <input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription | html %]" /> > </li> > <li><label for="from" class="required">Start date:</label> >- <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | $KohaDates %]" maxlength="10" size="10" class="datepickerfrom" /> >+ <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | $KohaDates %]" maxlength="10" size="10" class="flatpickrfrom" /> > <span class="required">Required</span> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> > <li><label for="to" class="required">End date:</label> >- <input type="text" name="contractenddate" id="to" value="[% contractenddate | $KohaDates %]" maxlength="10" size="10" class="datepickerto" /> >+ <input type="text" name="contractenddate" id="to" value="[% contractenddate | $KohaDates %]" maxlength="10" size="10" class="flatpickrto" /> > <span class="required">Required</span> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >index 95a8e53ac1..652c8a429e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt >@@ -412,7 +412,7 @@ > <option value="0">Exactly on</option> > <option value="1">After</option> > </select> >- <input type="text" size="10" id="hardduedate" name="hardduedate" value="[% hardduedate | html %]" class="datepicker" /> >+ <input type="text" size="10" id="hardduedate" name="hardduedate" value="[% hardduedate | html %]" class="flatpickr" /> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </td> > <td><input type="text" name="decreaseloanholds" id="decreaseloanholds" size="2" /></td> >@@ -444,7 +444,7 @@ > </td> > <td><input type="text" name="no_auto_renewal_after" id="no_auto_renewal_after" size="3" /></td> > <td> >- <input type="text" size="10" name="no_auto_renewal_after_hard_limit" id="no_auto_renewal_after_hard_limit" value="[% no_auto_renewal_after_hard_limit | html %]" class="datepicker"/> >+ <input type="text" size="10" name="no_auto_renewal_after_hard_limit" id="no_auto_renewal_after_hard_limit" value="[% no_auto_renewal_after_hard_limit | html %]" class="flatpickr"/> > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </td> > <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td> >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28945
:
124460
|
124748
|
125491