Bugzilla – Attachment 2577 Details for
Bug 4963
sys prefs need date hints and/or picker
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
0001-Fix-for-Bug-4963-sys-prefs-need-date-hints-and-or-pi.patch (text/plain), 2.57 KB, created by
Owen Leonard
on 2010-08-26 17:18:22 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2010-08-26 17:18:22 UTC
Size:
2.57 KB
patch
obsolete
>From fb27eb6b3b19176aefd66f3f0a863a06eafbd8c7 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 26 Aug 2010 13:16:13 -0400 >Subject: [PATCH] Fix for Bug 4963, sys prefs need date hints and/or picker > >This patch adds the standard date format hint used elsewhere >in the interface. >--- > admin/preferences.pl | 2 ++ > .../prog/en/modules/admin/preferences.tmpl | 2 +- > 2 files changed, 3 insertions(+), 1 deletions(-) > >diff --git a/admin/preferences.pl b/admin/preferences.pl >index b5bcde8..87cddb7 100755 >--- a/admin/preferences.pl >+++ b/admin/preferences.pl >@@ -63,6 +63,8 @@ sub _get_chunk { > > if ( $options{'class'} && $options{'class'} eq 'password' ) { > $chunk->{'input_type'} = 'password'; >+ } elsif ( $options{'class'} && $options{'class'} eq 'date' ) { >+ $chunk->{'dateinput'} = 1; > } elsif ( $options{'type'} && ( $options{'type'} eq 'opac-languages' || $options{'type'} eq 'staff-languages' ) ) { > my $current_languages = { map { +$_, 1 } split( /\s*,\s*/, $value ) }; > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl >index 80035bb..b9bfd4f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tmpl >@@ -75,7 +75,7 @@ > <!-- TMPL_IF NAME="type_text" --> > <!-- TMPL_VAR NAME="contents" --> > <!-- TMPL_ELSIF NAME="type_input" --> >- <input type="<!-- TMPL_VAR NAME="input_type" DEFAULT="text" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="short" -->" value="<!-- TMPL_VAR NAME="value" -->" autocomplete="off" /> >+ <input type="<!-- TMPL_VAR NAME="input_type" DEFAULT="text" -->" name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="short" -->" value="<!-- TMPL_VAR NAME="value" -->" autocomplete="off" /> <!-- TMPL_IF NAME="dateinput" --><span class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></span><!-- /TMPL_IF --> > <!-- TMPL_ELSIF NAME="type_select" --> > <select name="pref_<!-- TMPL_VAR NAME="name" -->" id="pref_<!-- TMPL_VAR NAME="name" -->" class="preference preference-<!-- TMPL_VAR NAME="class" DEFAULT="choice" -->"> > <!-- TMPL_LOOP NAME="CHOICES" --> >-- >1.7.0.4 >
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 4963
: 2577 |
2578