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 <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Owen Leonard 2012-05-18 08:57:15 -04:00 committed by Paul Poulain
parent b4a1662889
commit ba2f90dc77
3 changed files with 11 additions and 9 deletions

View File

@ -227,9 +227,11 @@ function changeFramework(fw) {
</form>
[% ELSE %]
[% IF ( errors ) %]
<div class="dialog alert">
[% FOREACH error IN errors %]
<div class="error">[% error.error %]</div>
<p>[% error.error %]</p>
[% END %]
</div>
[% ELSE %]
<form id="mergeform" action="/cgi-bin/koha/cataloguing/merge.pl" method="post" onsubmit="return mergeformsubmit()">

View File

@ -28,13 +28,13 @@ function reloadPage(p) {
<div class="yui-b">
[% IF ( success || error ) %]
[% IF ( success ) %]
[% IF ( action == 'create' ) %]<p>The new CSV profile "[% profile_name %]" has been successfully created.</p>[% END %]
[% IF ( action == 'edit' ) %]<p>The CSV profile has been successfully modified.</p>[% END %]
[% IF ( action == 'delete' ) %]<p>The CSV profile has been successfully deleted.</p>[% END %]
[% ELSE %]
[% IF ( action == 'create' ) %]<p class="error">The new CSV profile "[% profile_name %]" has not been created.</p>[% END %]
[% IF ( action == 'edit' ) %]<p class="error">The CSV profile has not been modified.</p>[% END %]
[% IF ( action == 'delete' ) %]<p class="error">The CSV profile has not been deleted.</p>[% END %]
[% IF ( action == 'create' ) %]<div class="dialog message">The new CSV profile "[% profile_name %]" has been successfully created.</div>[% END %]
[% IF ( action == 'edit' ) %]<div class="dialog message">The CSV profile has been successfully modified.</div>[% END %]
[% IF ( action == 'delete' ) %]<div class="dialog message">The CSV profile has been successfully deleted.</div>[% END %]
[% ELSE %]
[% IF ( action == 'create' ) %]<div class="dialog alert">The new CSV profile "[% profile_name %]" has not been created.</div>[% END %]
[% IF ( action == 'edit' ) %]<div class="dialog alert">The CSV profile has not been modified.</div>[% END %]
[% IF ( action == 'delete' ) %]<div class="dialog alert">The CSV profile has not been deleted.</div>[% END %]
[% END %]
[% END %]
<div id="csvexporttabs" class="toptabs">

View File

@ -51,7 +51,7 @@
<div id="userreview" class="container">
[% IF ( cgi_debug ) %]<div class="debug">CGI debug is on.</div>[% END %]
[% IF ( ERRORS ) %]
<div class="error">
<div class="dialog alert">
[% FOREACH ERROR IN ERRORS %]
<p>
[% IF ( ERROR.scrubbed ) %]Note: your comment contained illegal markup code.