From fc26ee3bae2f1255a6ae7707fffb7ff4da64fcc5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Feb 2013 09:26:01 -0500 Subject: [PATCH] Bug 9694 - Remove YUI styling from buttons on the patron card creator manage pages Buttons on the patron card creator's manage pages (manage templates, manage profiles, etc) are styled using YUI. They can be classified as submit buttons rather than toolbar buttons, so they should have default submit button styles. This patch removes YUI styling and related JavaScript. Other minor changes: Escaping strings in JavaScript for translation. To test, view the patron card creator's manage page for layouts, templates, profiles, and batches. "Edit," "Delete," and "Export" buttons should look correct and work correctly. Signed-off-by: Bernardo Gonzalez Kriegel Comment: Work as described. On errors. Tested all manage pages, edit, delete, and export buttons. Signed-off-by: Katrin Fischer Works nicely, improves consistency. Signed-off-by: Jared Camins-Esakov --- .../prog/en/modules/patroncards/manage.tt | 58 ++++++------------- 1 file changed, 18 insertions(+), 40 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt index afb466b383..927839dcf9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt @@ -7,7 +7,7 @@ function DeleteConfirm() { var element_id = selected_layout("delete"); if (element_id>-1) { - var msg = "Are you sure you want to delete [% card_element %] " + element_id + "?" + var msg = _("Are you sure you want to delete") + " [% card_element %] " + element_id + "?" var answer = confirm(msg); if (answer) { window.location = "/cgi-bin/koha/patroncards/manage.pl?op=delete&card_element=[% card_element %]&element_id=" + element_id; @@ -50,7 +50,7 @@ alert(_("Please select at least one batch to export.")); return; // no batch selected } - return GB_showCenter('Export Patron Cards', "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); + return GB_showCenter(_('Export patron cards'), "/cgi-bin/koha/patroncards/print.pl?" + getstr, 700, 800); }; function selected_layout(op) { var selected = new Array; @@ -76,45 +76,23 @@ alert(_("Please select a ")+"[% card_element %]."); return (-1); }; - //]]> - - + }); +//]]> + [% INCLUDE 'header.inc' %] @@ -161,9 +139,9 @@ [% END %]
- - - [% IF ( print ) %][% END %] + + + [% IF ( print ) %][% END %]
[% ELSE %] -- 2.39.5