File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed
Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,4 @@ LDAP Tool Box White Pages documentation
2525 csvexport.rst
2626 vcardexport.rst
2727 updateinfos.rst
28+ tooltips.rst
Original file line number Diff line number Diff line change 1+ Tooltips
2+ ========
3+
4+ Some tooltips can be added on update info page for each item.
5+
6+ By default no tooltips are defined. You can create one in the custom lang file in configuration directory by setting the ``tooltip_item `` message.
7+
8+ For example to add a tooltip on mail item, edit or create ``/etc/white-pages/en.inc.php ``:
9+
10+ .. code-block :: php
11+
12+ $messages['tooltip_mail'] = "Please do not use a personal email";
13+
Original file line number Diff line number Diff line change 1515<script src =" vendor/datatables/buttons.print.min.js" ></script >
1616<script src =" vendor/datatables/buttons.bootstrap5.min.js" ></script >
1717{ /if }
18+ <script >
19+ const tooltipTriggerList = document .querySelectorAll (' [data-bs-toggle="tooltip"]' )
20+ const tooltipList = [... tooltipTriggerList].map (tooltipTriggerEl => new bootstrap.Tooltip (tooltipTriggerEl))
21+ </script >
1822{ if $use_updateinfos }
1923<script src =" js/update.js" ></script >
2024{ /if }
Original file line number Diff line number Diff line change 5555 </th >
5656 <th class =" d-none d-sm-table-cell" >
5757 { $msg_label_ {$item } }
58+ { if $msg_tooltip_ {$item } }<span data-bs-toggle =" tooltip" data-bs-placement =" right" data-bs-title =" { $msg_tooltip_ { $item } } " ><i class =" fa fa-fw fa-regular fa-circle-question" ></i ></span >{ /if }
5859 </th >
5960 <td >
6061 { if $item |in_array:$update_items }
You can’t perform that action at this time.
0 commit comments