button theme

This commit is contained in:
Tim Krehan 2019-05-26 18:19:56 +02:00
parent e8a0d0ce7e
commit 4ba89ce973

View file

@ -20,8 +20,10 @@
foreach ($shopping->list as $index => $item) { foreach ($shopping->list as $index => $item) {
if ($index % 2 == 0) { if ($index % 2 == 0) {
$color_theme = "bg-primary"; $color_theme = "bg-primary";
$button_theme = "btn-primary";
} else { } else {
$color_theme = "bg-secondary"; $color_theme = "bg-secondary";
$button_theme = "btn-secondary";
} }
if ($item->Erledigt) { if ($item->Erledigt) {
$div_item_row_color_classes = "bg-success"; $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_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'>"); 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("<div class='dropdown-menu' aria-labelledby='dropdownMenuButtonDataID-" . $item->ID . "'>");
print_r("<button class='dropdown-item'>Action</button>"); print_r("<button class='dropdown-item'>Action</button>");
print_r("<button class='dropdown-item'>Another action</button>"); print_r("<button class='dropdown-item'>Another action</button>");