Skip to content

Commit

Permalink
Bug 35253: Add classes to materials specfied message on check in and …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Signed-off-by: Katrin Fischer <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
ricofreak authored and tomascohen committed Nov 8, 2023
1 parent 4c15ad6 commit 1f2bdac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,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 %]

Expand Down
3 changes: 2 additions & 1 deletion koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,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 %]

Expand Down

0 comments on commit 1f2bdac

Please sign in to comment.