From ba2f90dc7765744b56510d4d7240a5eddbdacc3f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 18 May 2012 08:57:15 -0400 Subject: [PATCH] Bug 7889 - Use standard style for errors and messages Correcting the markup of error messages in three places: catalogue merge, CSV profile editing, and opac comments. Signed-off-by: Jonathan Druart Signed-off-by: Paul Poulain --- .../prog/en/modules/cataloguing/merge.tt | 4 +++- .../prog/en/modules/tools/csv-profiles.tt | 14 +++++++------- koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt index 745680c4f3..07c223d393 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt @@ -227,9 +227,11 @@ function changeFramework(fw) { [% ELSE %] [% IF ( errors ) %] +
[% FOREACH error IN errors %] -
[% error.error %]
+

[% error.error %]

[% END %] +
[% ELSE %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt index 242e7f9a7c..b0f5dc5bf9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/csv-profiles.tt @@ -28,13 +28,13 @@ function reloadPage(p) {
[% IF ( success || error ) %] [% IF ( success ) %] - [% IF ( action == 'create' ) %]

The new CSV profile "[% profile_name %]" has been successfully created.

[% END %] - [% IF ( action == 'edit' ) %]

The CSV profile has been successfully modified.

[% END %] - [% IF ( action == 'delete' ) %]

The CSV profile has been successfully deleted.

[% END %] - [% ELSE %] - [% IF ( action == 'create' ) %]

The new CSV profile "[% profile_name %]" has not been created.

[% END %] - [% IF ( action == 'edit' ) %]

The CSV profile has not been modified.

[% END %] - [% IF ( action == 'delete' ) %]

The CSV profile has not been deleted.

[% END %] + [% IF ( action == 'create' ) %]
The new CSV profile "[% profile_name %]" has been successfully created.
[% END %] + [% IF ( action == 'edit' ) %]
The CSV profile has been successfully modified.
[% END %] + [% IF ( action == 'delete' ) %]
The CSV profile has been successfully deleted.
[% END %] + [% ELSE %] + [% IF ( action == 'create' ) %]
The new CSV profile "[% profile_name %]" has not been created.
[% END %] + [% IF ( action == 'edit' ) %]
The CSV profile has not been modified.
[% END %] + [% IF ( action == 'delete' ) %]
The CSV profile has not been deleted.
[% END %] [% END %] [% END %]
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt index d14028521d..2fd6338987 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tt @@ -51,7 +51,7 @@
[% IF ( cgi_debug ) %]
CGI debug is on.
[% END %] [% IF ( ERRORS ) %] -
+
[% FOREACH ERROR IN ERRORS %]

[% IF ( ERROR.scrubbed ) %]Note: your comment contained illegal markup code. -- 2.39.5