feat: simplify pricing and room selection display

This commit is contained in:
Björn Fromme
2026-04-11 18:28:32 +02:00
parent 1b0e479e49
commit ca052682bb
4 changed files with 5 additions and 79 deletions
+2 -3
View File
@@ -38,12 +38,11 @@ class RoomSelectType extends AbstractType
$data = $form->getData();
$view->vars['label_room'] = $data->label;
$view->vars['label_price'] = null;
$view->vars['label_price_amount'] = null;
$view->vars['is_inquiry'] = Constants::STATUS_ON_REQUEST === $data->status;
if (null !== $data->price) {
$formattedPrice = number_format((float) $data->price, 2, ',', '.');
$view->vars['label_price'] = sprintf(' %s € pro Person', $formattedPrice);
$view->vars['label_price_amount'] = (float) $data->price;
}
}