Hide path badge on seletpicker items.

This commit is contained in:
Jan Böhmer 2022-09-21 15:33:07 +02:00
parent 18ab46b730
commit f0956da0ea
2 changed files with 10 additions and 2 deletions

View file

@ -11,4 +11,12 @@
}
.dropdown-item .picker-hs {
display: inherit;
}
}
/** Bootstrap-select Unhide on selected element */
.picker-us {
display: inherit;
}
.dropdown-item .picker-us {
display: none;
}

View file

@ -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>&nbsp;' . 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>&nbsp;' . trim(htmlspecialchars($choice->getParent()->getFullPath())) . '</span>';
}
if ($choice instanceof AttachmentType && !empty($choice->getFiletypeFilter())) {