Bug 35253: Add classes to materials specfied message on check in and checkout

To test:
1. APPLY PATCH
2. Add a materials specified message to an item. ( 952$3 )
3. Add the following CSS to your IntranetUserCSS:

    .mats_spec_label { color: white; background: purple;  }
    .mats_spec_message { color: white; background: green; }

4. Checkout that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.
5. Check in that item. Notice the message should be green and the label (Note about the accompanying materials:) should be purple.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 1f2bdac94d)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Lucas Gass 2023-11-03 17:48:00 +00:00 committed by Fridolin Somers
parent e0eb511d59
commit 7e4a154012
2 changed files with 5 additions and 2 deletions

View file

@ -70,7 +70,9 @@
[% END %]
[% IF ADDITIONAL_MATERIALS && !NEEDSCONFIRMATION %]
<div id="materials" class="dialog message">Note about the accompanying materials: [% ADDITIONAL_MATERIALS | html %]
<div id="materials" class="dialog message">
<span class="mats_spec_label">Note about the accompanying materials: </span>
<span class="mats_spec_message">[% ADDITIONAL_MATERIALS | html %]</span>
</div>
[% END %]

View file

@ -151,7 +151,8 @@
[% IF additional_materials && !needs_confirm && !multiple_confirmed %]
<div id="materials" class="dialog message">
Note about the accompanying materials: [% additional_materials | html %]
<span class="mats_spec_label">Note about the accompanying materials: </span>
<span class="mats_spec_message">[% additional_materials | html %]</span>
</div>
[% END %]