Remove travelCancellation from booking form

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3378 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-03-09 15:14:40 +00:00
parent 8ef58d6438
commit d18777296c
6 changed files with 5 additions and 40 deletions

View file

@ -42,14 +42,6 @@ Nicht eingeschlossene, zubuchbare Leistungen:
[o] {{ travel_program_service|raw }} [o] {{ travel_program_service|raw }}
{% endfor %} {% endfor %}
=====================================================================================
Reise-Rücktrittskosten-Versicherung:
=====================================================================================
{% if(booking_request.travelCancellation == 1) %}
[x] Informationen angefordert
{% else %}
[o] Keine Informationen gewünscht
{% endif %}
===================================================================================== =====================================================================================
Reiseanmelder{% if booking_request.salutation == 2 %}in{% endif %} Reiseanmelder{% if booking_request.salutation == 2 %}in{% endif %}

View file

@ -176,14 +176,10 @@
<tr> <tr>
<td>Reiseversicherung</td> <td>Reiseversicherung</td>
<td> <td>
{% if form.travelCancellation is defined %} <p style="white-space: normal;">
<div class="checkbox"> <br>
{{ form_widget(form.travelCancellation) }} STERN TOURS GmbH empfiehlt generell den Abschluss einer Reise-Rücktrittskosten-Versicherung und einer Auslands-Reisekrankenversicherung mit Rücktransport. Im Anschluss der Buchung senden wir Ihnen diesbezüglich Informationen zu.
<label for="{{ form.travelCancellation.vars.id }}" style="white-space: normal;"> </p>
STERN TOURS GmbH empfiehlt generell den Abschluss einer Reise-Rücktrittskosten-Versicherung und einer Auslands-Reisekrankenversicherung mit Rücktransport. Wenn Sie eine Versicherung wünschen, dann teilen Sie uns das bitte hier (Checkbox auswählen) mit und wir senden Ihnen alle Informationen per Email zu.
</label>
</div>
{% endif %}
</td> </td>
</tr> </tr>

View file

@ -283,9 +283,6 @@ class BookingController extends Controller
$possibleRooms = $this->getRooms($travelDate->getPrices(), $persons); $possibleRooms = $this->getRooms($travelDate->getPrices(), $persons);
if($bookingRequest->getTravelCancellation()){
}
if ($bookingRequest->getComfort()) if ($bookingRequest->getComfort())
{ {
foreach ($possibleRooms as $room) foreach ($possibleRooms as $room)

View file

@ -39,8 +39,6 @@ class BookingRequest
*/ */
private $insurance; private $insurance;
private $travelCancellation;
private $comfort = false; private $comfort = false;
private $travelOptions = []; private $travelOptions = [];
@ -259,23 +257,6 @@ class BookingRequest
$this->insurance = $insurance; $this->insurance = $insurance;
} }
/**
* @return mixed
*/
public function getTravelCancellation()
{
return $this->travelCancellation;
}
/**
* @param mixed $comfort
*/
public function setTravelCancellation($travelCancellation)
{
$this->travelCancellation = $travelCancellation;
}
/** /**
* @return mixed * @return mixed

View file

@ -62,7 +62,7 @@ class TravelBookingRepository extends \Doctrine\ORM\EntityRepository
$ret->setInsurances($insurances); $ret->setInsurances($insurances);
} }
$ret->setTravelCancellation($bookingRequest->getTravelCancellation()); //$ret->setTravelCancellation($bookingRequest->getTravelCancellation());
$ret->setParticipants($bookingRequest->getTravelers()); $ret->setParticipants($bookingRequest->getTravelers());
$ret->setParticipantsTotal($bookingRequest->getTravelerCount()); $ret->setParticipantsTotal($bookingRequest->getTravelerCount());
$ret->setRooms($bookingPriceInfo['rooms']); $ret->setRooms($bookingPriceInfo['rooms']);

View file

@ -209,7 +209,6 @@ class BookingRequestType extends AbstractType
} }
//$travelDate->getPrices()[0]->getPriceType() //$travelDate->getPrices()[0]->getPriceType()
$builder->add('travelCancellation', CheckboxType::class, ['required' => false]);
if ($travelDate->hasComfortCategory()) if ($travelDate->hasComfortCategory())
{ {