From 364844cfd75bc2fdc188147993344bd63eb5d0a9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 4 Mar 2016 12:29:03 -0500 Subject: [PATCH] Bug 15983: Use Font Awesome icons in serial numbering pattern deletion confirmation dialog If you try to delete a serial numbering pattern which is in use by an existing subscription you will be shown a confirmation dialog. This dialog should use Font Awesome icons. Other minor changes: - Added "action" attributes to
s to fix validation errors. - Added "alert" class to confirmation dialogs so that they correctly styled. To test, apply the patch and go to Serials -> Numbering patterns. - Click "Delete" on a numbering pattern which is in use by a subscription. - Verify that the confirmation dialog is styled correctly. - Test that the "No, do not delete" button works correctly. - Test that the "Yes, delete" button deletes the correct numbering pattern. Signed-off-by: Hector Castro Works as described Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- .../modules/serials/subscription-numberpatterns.tt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt index 07c1f0d2b3..e1a15e2eb4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt @@ -91,14 +91,14 @@ $(document).ready(function(){ [% IF (new) %]

New numbering pattern

[% IF (error_existing_numberpattern) %] -
+

A pattern with this name already exists.

[% END %] [% ELSE %]

Modify pattern: [% label %]

[% IF (error_existing_numberpattern) %] -
+

Another pattern with this name already exists.

[% END %] @@ -278,7 +278,7 @@ $(document).ready(function(){ [% ELSE %]

Numbering patterns

[% IF still_used %] -
+

This pattern is still used by [% subscriptions.size %] subscription(s). Do you still want to delete it? @@ -292,14 +292,14 @@ $(document).ready(function(){ [% END %] - + - +

-
- + +
[% END %] -- 2.39.5