From f7b9e59e5bfb1de0fca4875a005e4f595bb20ed9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 11 Feb 2016 12:23:49 -0500 Subject: [PATCH] Bug 15804: [Revised] Use standard dialog style for confirmation of MARC subfield deletion When deleting a MARC framework subfield, the confirmation message is not styled. This patch modifies the template to style the confirmation message like similar ones. Depends on Bug 15785 - Use Font Awesome icons in confirmation dialogs To test, apply the patch and go to Administration -> MARC framworks. - Click 'MARC structure' for a framework you can edit. - Click 'subfields' for a tag you can edit. - Click 'Delete' for a subfield you can delete. You should see a confirmation dialog styled like other "alert" type dialogs. - Test both canceling and confirming deletion to confirm that both function correctly. Revised to fix conflicts with rollback of Bug 13618 Signed-off-by: Hector Castro Works as expected. Revised according with bug revert 13618 Signed-off-by: Jonathan Druart --- .../en/modules/admin/marc_subfields_structure.tt | 40 ++++++++++++---------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt index 0268800..883d168 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -188,25 +188,29 @@ [% IF ( delete_confirm ) %] -

Confirm deletion of subfield [% tagsubfield %]?

-

Subfield: [% tagsubfield %]

-

Description: [% liblibrarian %]

+
+

Confirm deletion of subfield [% tagsubfield %]?

+

Subfield: [% tagsubfield %]

+

Description: [% liblibrarian %]

+ +
+ + + + + +
+ + +
+ + + + + +
+
-
- - - - - -
- -
- - - - - -
[% END %] [% IF ( delete_confirmed ) %] -- 2.7.0