From 448812d3a98e0aeace5eab2772ce35f8cf4125ed Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 9 Jul 2012 08:56:27 -0400 Subject: [PATCH] [SIGNEd-OFF] Bug 8208 follow-up: move Clear and Create new buttons out of results Turns "Clear" and "Create new" links into buttons that are visible before a search is performed, so that the user does not have to do a search just to clear the field or create a new authority. This commit also changes the formatting from textual links to buttons. Signed-off-by: Katrin Fischer Nicer and more logical display. Allows creating of a new authority without doing a search first or when no results were found. --- .../intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ .../prog/en/includes/auth-finder-search.inc | 17 ++++++++++++++- .../modules/authorities/searchresultlist-auth.tt | 22 +------------------- 3 files changed, 21 insertions(+), 22 deletions(-) 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 0cfcdf7..a73e544 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -2352,6 +2352,10 @@ ul.ui-tabs-nav li { font-style: italic; } +#authfinderops { + float: right; +} + /* jQuery UI Datepicker */ .ui-datepicker-trigger { vertical-align: middle; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc index a6d55df..fe22d6b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc @@ -2,6 +2,11 @@ // @@ -159,5 +169,10 @@ $(document).ready(function(){ -
Cancel
+
Cancel + + Clear field + Create new + +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt index dc3a72e..8008930 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt @@ -56,26 +56,6 @@ function jumpfull(page) Get it! Other action - -   -   - - - Clear - - -   - - -   -   - - - Create new - - -   - [% FOREACH resul IN result %] [% PROCESS authresult summary=resul.summary %] @@ -86,7 +66,7 @@ function jumpfull(page) [% repet.repet %] [% END %] [% ELSE %] - choose + Choose [% END %] Edit authority -- 1.7.9.5