set alignment

This commit is contained in:
Tim Krehan 2019-05-26 17:39:37 +02:00
parent bce8687fb2
commit a2fdce434d

View file

@ -15,6 +15,7 @@
$input_item_checkbox_classes = "checkbox"; $input_item_checkbox_classes = "checkbox";
$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 = "p-1 align-self-end";
foreach ($shopping->list as $index => $item) { foreach ($shopping->list as $index => $item) {
if($index%2==0){$color_theme = "bg-primary";} if($index%2==0){$color_theme = "bg-primary";}
@ -32,7 +33,7 @@
print_r("<div class='$div_item_checkbox_classes'><input type='checkbox' class='$input_item_checkbox_classes' data-color='$color_theme' data-id='$item->ID' $checked></div>"); print_r("<div class='$div_item_checkbox_classes'><input type='checkbox' class='$input_item_checkbox_classes' data-color='$color_theme' data-id='$item->ID' $checked></div>");
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=''><i class='fas fa-angle-right'></i></div>"); print_r("<div class='$div_item_menu'><i class='fas fa-angle-right'></i></div>");
print_r("</div>"); print_r("</div>");
} }
?> ?>