From 230f9b1cbeeb67637acee88470ab821761fdb7a8 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Feb 2013 09:26:01 -0500 Subject: [PATCH] [SIGNED-OFF] 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. --- .../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 afb466b..927839d 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 %] -- 1.7.9.5