From fe64096e6942fb19581a232dd2e020b4dc9d201b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 7 Nov 2007 15:46:27 -0600 Subject: [PATCH] Lots of work to standardize elements like Save/Cancel buttons and delete confirmations. A couple of changes to auth_subfields_structure.pl in order to enable display of tagfield and tagsubfield without outputting hidden form field at the same time (for breadcrumbs). Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- admin/auth_subfields_structure.pl | 9 +- .../prog/en/css/staff-global.css | 5 + .../en/includes/bookfund-admin-toolbar.inc | 21 -- .../prog/en/includes/cat-search.inc | 4 +- .../en/includes/printers-admin-search.inc | 2 + .../en/includes/stopwords-admin-search.inc | 3 +- .../prog/en/modules/admin/aqbookfund.tmpl | 70 +++--- .../prog/en/modules/admin/aqbudget.tmpl | 14 +- .../admin/auth_subfields_structure.tmpl | 68 +++--- .../en/modules/admin/auth_tag_structure.tmpl | 44 ++-- .../en/modules/admin/authorised_values.tmpl | 57 +++-- .../prog/en/modules/admin/authtypes.tmpl | 72 ++++--- .../en/modules/admin/biblio_framework.tmpl | 28 ++- .../prog/en/modules/admin/branches.tmpl | 27 ++- .../prog/en/modules/admin/categorie.tmpl | 92 +++++--- .../prog/en/modules/admin/cities.tmpl | 46 ++-- .../prog/en/modules/admin/classsources.tmpl | 71 ++++--- .../prog/en/modules/admin/currency.tmpl | 14 +- .../prog/en/modules/admin/finesrules.tmpl | 4 +- .../prog/en/modules/admin/issuingrules.tmpl | 4 +- .../admin/marc_subfields_structure.tmpl | 11 +- .../en/modules/admin/marctagstructure.tmpl | 49 +++-- .../prog/en/modules/admin/printers.tmpl | 35 ++- .../prog/en/modules/admin/roadtype.tmpl | 40 +++- .../prog/en/modules/admin/stopwords.tmpl | 73 ++++--- .../en/modules/admin/systempreferences.tmpl | 2 +- .../prog/en/modules/admin/z3950servers.tmpl | 201 +++++------------- 27 files changed, 575 insertions(+), 491 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/bookfund-admin-toolbar.inc diff --git a/admin/auth_subfields_structure.pl b/admin/auth_subfields_structure.pl index 3d1bea1b73..e59d6b7564 100755 --- a/admin/auth_subfields_structure.pl +++ b/admin/auth_subfields_structure.pl @@ -201,7 +201,8 @@ if ($op eq 'add_form') { -size=>1, -multiple=>0, ); - $row_data{tagsubfield} =$data->{'tagsubfield'}."{'tagsubfield'}."\" id=\"tagsubfield\" />"; + $row_data{tagsubfieldinput} = "{'tagsubfield'}."\" id=\"tagsubfield\" />"; + $row_data{tagsubfield} = $data->{'tagsubfield'}; $row_data{liblibrarian} = CGI::escapeHTML($data->{'liblibrarian'}); $row_data{libopac} = CGI::escapeHTML($data->{'libopac'}); $row_data{seealso} = CGI::escapeHTML($data->{'seealso'}); @@ -314,7 +315,8 @@ if ($op eq 'add_form') { -size=>1, -multiple=>0, ); - $row_data{tagsubfield} = "{'tagsubfield'}."\" size=\"1\" id=\"tagsubfield\" maxlength=\"1\" />"; + $row_data{tagsubfieldinput} = "{'tagsubfield'}."\" size=\"1\" id=\"tagsubfield\" maxlength=\"1\" />"; + $row_data{tagsubfield} = $data->{'tagsubfield'}; $row_data{liblibrarian} = ""; $row_data{libopac} = ""; $row_data{seealso} = ""; @@ -371,7 +373,8 @@ if ($op eq 'add_form') { $template->param('use-heading-flags-p' => 1); $template->param('heading-edit-subfields-p' => 1); $template->param(action => "Edit subfields", - tagfield => "$tagfield", + tagfield => $tagfield, + tagfieldinput => "", loop => \@loop_data, more_subfields => $more_subfields, more_tag => $tagfield); 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 d77a1eebf7..2154ca73c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -555,6 +555,11 @@ fieldset.rows label, fieldset.rows span.label { text-align: right; } +fieldset.rows fieldset { + border-width : 1px; + margin : 0; + padding : .3em; +} .yui-b fieldset.rows label, .yui-b fieldset.rows span.label { width: 9em; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/bookfund-admin-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/bookfund-admin-toolbar.inc deleted file mode 100644 index f075bbf8b8..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/bookfund-admin-toolbar.inc +++ /dev/null @@ -1,21 +0,0 @@ -
- -
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc index 041c031553..0fc47ad0be 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc @@ -11,7 +11,7 @@ YAHOO.util.Event.onContentReady("header_search", function() { var city = oResultItem[3]; var zip = oResultItem[4]; var aMarkup = [ - "
", + "
", name, " (", cardnumber, @@ -53,7 +53,7 @@ YAHOO.util.Event.onContentReady("header_search", function() {
- + " type="hidden" />
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc index 868936874e..a73f76fb4b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc @@ -1,5 +1,6 @@