From 899597c8266119a3d7225badf4ec9a26711c8b41 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Mon, 9 Jul 2012 08:56:27 -0400 Subject: [PATCH] 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. Signed-off-by: Paul Poulain --- .../prog/en/css/staff-global.css | 4 ++++ .../prog/en/includes/auth-finder-search.inc | 17 +++++++++++++- .../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 a8e9d0ade3..436b7280f7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -2347,6 +2347,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 a6d55df1eb..fe22d6b09d 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 dc3a72e452..800893033e 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 -- 2.39.5