mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Hide path badge on seletpicker items.
This commit is contained in:
parent
18ab46b730
commit
f0956da0ea
2 changed files with 10 additions and 2 deletions
|
@ -12,3 +12,11 @@
|
|||
.dropdown-item .picker-hs {
|
||||
display: inherit;
|
||||
}
|
||||
|
||||
/** Bootstrap-select Unhide on selected element */
|
||||
.picker-us {
|
||||
display: inherit;
|
||||
}
|
||||
.dropdown-item .picker-us {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -253,7 +253,7 @@ class StructuralEntityType extends AbstractType
|
|||
$html .= $this->getElementNameWithLevelWhitespace($choice, $options, '<span class="picker-level"></span>');
|
||||
|
||||
if ($options['show_fullpath_in_subtext'] && null !== $choice->getParent()) {
|
||||
$html .= '<span class="ms-3 badge rounded-pill bg-secondary float-end"><i class="fa-solid fa-folder-tree"></i> ' . trim(htmlspecialchars($choice->getParent()->getFullPath())) . '</span>';
|
||||
$html .= '<span class="ms-3 badge rounded-pill bg-secondary float-end picker-us"><i class="fa-solid fa-folder-tree"></i> ' . trim(htmlspecialchars($choice->getParent()->getFullPath())) . '</span>';
|
||||
}
|
||||
|
||||
if ($choice instanceof AttachmentType && !empty($choice->getFiletypeFilter())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue