Bug 35119: (follow-up) Same treatment for editor page

We pushed 34014 before I thought about these changes.. I think this is a
solid follow-up to add the same styling to the catalogue editor page..
swapping the existing dialog alert with a page-section bg-danger and
thus allowing more space to 'pre' wrap the encoding error itself to ease
the spotting of errant characters.

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-10-20 19:18:43 +01:00 committed by Tomas Cohen Arazi
parent 1cf43ec855
commit db6a376fd3
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 7 additions and 6 deletions

View File

@ -838,14 +838,15 @@ $(document).ready(function(){
[% END #/ WRAPPER sub-header.inc %]
<div class="main container-fluid">
[% IF ( INVALID_METADATA ) %]
<div class="dialog alert">
<p>This record had encoding issues, non-xml characters have been stripped in order to allow editing. Please be cautious when saving that some data may have been removed from the record.</br>Decoding error:</p>
<span class="problem">[% INVALID_METADATA | html %]</span>
</div>
[% END %]
<div class="row">
<div class="col-md-10 col-md-offset-1">
[% IF ( INVALID_METADATA ) %]
<div class="page-section bg-danger">
<h1>Errors found</h1>
<p><strong>This record had encoding issues, non-xml characters have been stripped in order to allow editing. Please be cautious when saving that some data may have been removed from the record.</strong></p>
<pre class="problem">[% INVALID_METADATA | html %]</pre>
</div>
[% END %]
<div id="check_errors"></div>