feat: simplify pricing and room selection display
This commit is contained in:
1 parent
1b0e479e49
commit
ca052682bb
4 files changed
+5
-79
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user