Fixed formatting

This commit is contained in:
Igor Scheller 2021-08-05 01:07:15 +02:00
parent 6cfeedc57a
commit 993e64944f
2 changed files with 14 additions and 14 deletions

View File

@ -30,7 +30,7 @@ function form_spinner($name, $label, $value)
<div class="input-group"> <div class="input-group">
<input id="spinner-' . $name . '" class="form-control" name="' . $name . '" value="' . $value . '" /> <input id="spinner-' . $name . '" class="form-control" name="' . $name . '" value="' . $value . '" />
<button id="spinner-' . $name . '-down" class="btn btn-secondary" type="button"> <button id="spinner-' . $name . '-down" class="btn btn-secondary" type="button">
' . icon('dash-lg') . ' ' . icon('dash-lg') . '
</button> </button>
<button id="spinner-' . $name . '-up" class="btn btn-secondary" type="button"> <button id="spinner-' . $name . '-up" class="btn btn-secondary" type="button">
' . icon('plus-lg') . ' ' . icon('plus-lg') . '

View File

@ -223,12 +223,12 @@ function toolbar_dropdown($icon, $label, $submenu, $class = ''): string
{ {
$template =<<<EOT $template =<<<EOT
<li class="nav-item dropdown {class}"> <li class="nav-item dropdown {class}">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
{icon} {label} {icon} {label}
</a> </a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown"> <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
{submenu} {submenu}
</ul> </ul>
</li> </li>
EOT; EOT;
@ -261,13 +261,13 @@ function toolbar_popover($icon, $label, $content, $class = '')
. '<small class="bi bi-caret-down-fill"></small>' . '<small class="bi bi-caret-down-fill"></small>'
. '</a>' . '</a>'
. '<script type="text/javascript"> . '<script type="text/javascript">
new bootstrap.Popover(document.getElementById(\'' . $dom_id . '\'), { new bootstrap.Popover(document.getElementById(\'' . $dom_id . '\'), {
container: \'body\', container: \'body\',
html: true, html: true,
content: \'' . addslashes(join('', $content)) . '\', content: \'' . addslashes(join('', $content)) . '\',
placement: \'bottom\', placement: \'bottom\',
customClass: \'popover--userhints\' customClass: \'popover--userhints\'
}) })
</script></li>'; </script></li>';
} }