Bug 39923: Add classes to email and phone in overdue report to allow for customization
This patch adds <span>s with classes around the patron's email and phone
information in the results of the overdues report. This will allow for
greater flexibility in styling or hiding the information.
To test, apply the patch and go to Administration -> Sytem preferences
-> IntranetUserCSS.
- Add this to the preference:
.overdue_email { color: red; }
.overdue_phone { color: blue; }
- Go to Circulation -> Overdues and confirm that you can see the custom
colors in the results.
Sponsored-by: Athens County Public Libraries
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit b70a325dd2)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
665b195715
commit
739c4fa01c
|
|
@ -122,8 +122,18 @@
|
|||
<td>
|
||||
[% INCLUDE 'patron-title.inc' patron=overdueloo.patron hide_patron_infos_if_needed=1 %]
|
||||
[% IF logged_in_user.can_see_patron_infos( overdueloo.patron ) %]
|
||||
[% IF ( overdueloo.email ) %][<a href="mailto:[% overdueloo.email | uri %]?subject=[% INCLUDE subject %] [% overdueloo.title | uri %]">email</a>][% END %]
|
||||
[% IF ( overdueloo.phone ) %]([% overdueloo.phone | html %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile | html %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro | html %])[% END %]
|
||||
[% IF ( overdueloo.email ) %]
|
||||
<span class="overdue_email"> [<a href="mailto:[% overdueloo.email | uri %]?subject=[% INCLUDE subject %] [% overdueloo.title | uri %]">email</a>] </span>
|
||||
[% END %]
|
||||
<span class="overdue_phone">
|
||||
[% IF ( overdueloo.phone ) %]
|
||||
([% overdueloo.phone | html %])
|
||||
[% ELSIF ( overdueloo.mobile ) %]
|
||||
([% overdueloo.mobile | html %])
|
||||
[% ELSIF ( overdueloo.phonepro ) %]
|
||||
([% overdueloo.phonepro | html %])
|
||||
[% END %]
|
||||
</span>
|
||||
[% END %]
|
||||
</td>
|
||||
<td>[% Categories.GetName( overdueloo.patron.categorycode ) | html %]</td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue