mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
button theme
This commit is contained in:
parent
e8a0d0ce7e
commit
4ba89ce973
1 changed files with 3 additions and 1 deletions
|
@ -20,8 +20,10 @@
|
|||
foreach ($shopping->list as $index => $item) {
|
||||
if ($index % 2 == 0) {
|
||||
$color_theme = "bg-primary";
|
||||
$button_theme = "btn-primary";
|
||||
} else {
|
||||
$color_theme = "bg-secondary";
|
||||
$button_theme = "btn-secondary";
|
||||
}
|
||||
if ($item->Erledigt) {
|
||||
$div_item_row_color_classes = "bg-success";
|
||||
|
@ -36,7 +38,7 @@
|
|||
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_menu'>");
|
||||
print_r("<button class='btn btn-primary dropdown-toggle' id='dropdownMenuButtonDataID-" . $item->ID . "'>more...</button>");
|
||||
print_r("<button class='btn $button_theme pt-0 pb-0 dropdown-toggle' id='dropdownMenuButtonDataID-" . $item->ID . "'>more...</button>");
|
||||
print_r("<div class='dropdown-menu' aria-labelledby='dropdownMenuButtonDataID-" . $item->ID . "'>");
|
||||
print_r("<button class='dropdown-item'>Action</button>");
|
||||
print_r("<button class='dropdown-item'>Another action</button>");
|
||||
|
|
Loading…
Reference in a new issue