mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
butten tests
This commit is contained in:
parent
0ac5bffcd9
commit
53c4012cb0
2 changed files with 8 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
||||||
$div_item_quantity_classes = "p-1 col-3";
|
$div_item_quantity_classes = "p-1 col-3";
|
||||||
$div_item_name_classes = "p-1 font-weight-bold";
|
$div_item_name_classes = "p-1 font-weight-bold";
|
||||||
$div_item_menu = "ml-auto mr-2";
|
$div_item_menu = "ml-auto mr-2";
|
||||||
|
$button_dropdown_classes = "dropdown-menu-button btn pt-0 pb-0";
|
||||||
|
|
||||||
foreach ($shopping->list as $index => $item) {
|
foreach ($shopping->list as $index => $item) {
|
||||||
if ($index % 2 == 0) {
|
if ($index % 2 == 0) {
|
||||||
|
@ -27,9 +28,11 @@
|
||||||
}
|
}
|
||||||
if ($item->Erledigt) {
|
if ($item->Erledigt) {
|
||||||
$div_item_row_color_classes = "bg-success";
|
$div_item_row_color_classes = "bg-success";
|
||||||
|
$button_dropdown_color_classes = "btn-success";
|
||||||
$checked = "checked";
|
$checked = "checked";
|
||||||
} else {
|
} else {
|
||||||
$div_item_row_color_classes = $color_theme;
|
$div_item_row_color_classes = $color_theme;
|
||||||
|
$button_dropdown_color_classes = $button_theme;
|
||||||
$checked = "";
|
$checked = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +41,7 @@
|
||||||
print_r("<div class='$div_item_quantity_classes'>$item->Anzahl $item->Einheit</div>");
|
print_r("<div class='$div_item_quantity_classes'>$item->Anzahl $item->Einheit</div>");
|
||||||
print_r("<div class='$div_item_name_classes'>$item->Name</div>");
|
print_r("<div class='$div_item_name_classes'>$item->Name</div>");
|
||||||
print_r("<div class='$div_item_menu dropdown'>");
|
print_r("<div class='$div_item_menu dropdown'>");
|
||||||
print_r("<button type='button' class='dropdown-menu-button btn $button_theme pt-0 pb-0' id='dropdown-menu-button-dataID-" . $item->ID . "' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>");
|
print_r("<button type='button' class='$button_dropdown_classes $button_dropdown_color_classes' id='dropdown-menu-button-dataID-" . $item->ID . "' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>");
|
||||||
print_r("<i class='fas fa-angle-down'></i>");
|
print_r("<i class='fas fa-angle-down'></i>");
|
||||||
print_r("</button>");
|
print_r("</button>");
|
||||||
print_r("<div class='dropdown-menu' aria-labelledby='dropdown-menu-button-dataID-" . $item->ID . "'>");
|
print_r("<div class='dropdown-menu' aria-labelledby='dropdown-menu-button-dataID-" . $item->ID . "'>");
|
||||||
|
|
|
@ -8,6 +8,10 @@
|
||||||
transition: .5s;
|
transition: .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dropdown-menu-button {
|
||||||
|
transition: .5s;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-link-font {
|
.nav-link-font {
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
}
|
}
|
Loading…
Reference in a new issue