* "Kombination mit" im Suchfilter ausblenden
* Behoben: Fehlermeldung wenn im TT-Suchfilter keine Reisezeitraum angegeben wird * Reiseprogrammseite: Komfort-Optionen über ausgeschlossenen Leistungen * Änderung Angebotsdaten im Buchungformular (Formatierung der Posten) * Such- und Angebotsboxen auf "sunstar"-Seiten ausblenden in der Sidebar * Behoben: Oberer Teil der Boxen (pageBox) nicht mehr klickbar git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3321 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
077163634e
commit
28a7ef76d1
7 changed files with 37 additions and 20 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
{{ form_field_pho(search_form.e, 'Abreise') }}
|
{{ form_field_pho(search_form.e, 'Abreise') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
Kombinieren mit
|
Kombinieren mit
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
@ -24,9 +25,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-12">
|
<div class="form-group col-md-12">
|
||||||
{{ form_field_pho(search_form.c2, 'Kombinieren mit') }}
|
{{ form_field_pho(search_form.c2, 'Kombinieren mit') }}
|
||||||
</div>
|
</div>
|
||||||
|
#}
|
||||||
|
|
||||||
<div class="form-group col-md-12 col-sm-12 col-xs-12 text-center form-bottom">
|
<div class="form-group col-md-12 col-sm-12 col-xs-12 text-center form-bottom">
|
||||||
<button type="submit" class="btn btn-primary btn-block">Angebote suchen</button>
|
<button type="submit" class="btn btn-primary btn-block">Angebote suchen</button>
|
||||||
|
|
|
||||||
|
|
@ -148,9 +148,12 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% if travel_program.excluded is not empty or travel_program.classDescription is not empty %}
|
{% if travel_program.classDescription is not empty %}
|
||||||
<h2>Nicht eingeschlossene Leistungen</h2>
|
|
||||||
{{ travel_program.classDescription|replace({'*': '<img src="/bundles/app/images/star-mini.png" >'})|raw }}
|
{{ travel_program.classDescription|replace({'*': '<img src="/bundles/app/images/star-mini.png" >'})|raw }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if travel_program.excluded is not empty %}
|
||||||
|
<h2>Nicht eingeschlossene Leistungen</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% for travel_program_service in travel_program.excluded|replace({'*': '<img src="/bundles/app/images/star-mini.png" >'})|split('\n') %}
|
{% for travel_program_service in travel_program.excluded|replace({'*': '<img src="/bundles/app/images/star-mini.png" >'})|split('\n') %}
|
||||||
<li>{{ travel_program_service|raw }}</li>
|
<li>{{ travel_program_service|raw }}</li>
|
||||||
|
|
|
||||||
|
|
@ -215,9 +215,9 @@ class BookingController extends Controller
|
||||||
{
|
{
|
||||||
$outHtmlSummary[] = [
|
$outHtmlSummary[] = [
|
||||||
'value' => $a,
|
'value' => $a,
|
||||||
'label' => $travelerCount .'x '. ($departure->getExtraCharge() > 0 ? 'Aufschlag' : 'Abzug') .
|
'label' => ($departure->getExtraCharge() > 0 ? 'Aufschlag' : 'Abzug') .
|
||||||
' für Abfahrts-/Abflugort "'. $departure->getName() .'" <strong>'.
|
' für Abfahrts-/Abflugort "'. $departure->getName() .'" <strong>['. $travelerCount .' x '.
|
||||||
Util::formatPrice($departure->getExtraCharge()) .'</strong>'
|
Util::formatPrice($departure->getExtraCharge()) .' pro Person]</strong>'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -231,8 +231,8 @@ class BookingController extends Controller
|
||||||
{
|
{
|
||||||
$outHtmlSummary[] = [
|
$outHtmlSummary[] = [
|
||||||
'value' => $a,
|
'value' => $a,
|
||||||
'label' => $travelerCount .'x zugebuchte Leistung: '. $travelOption->getName() .' <strong>'.
|
'label' => $travelOption->getName() .' <strong>['. $travelerCount .' x '.
|
||||||
Util::formatPrice($travelOption->getPrice()) .'</strong>'
|
Util::formatPrice($travelOption->getPrice()) .' pro Person]</strong>'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (isset($outPriceInfo))
|
if (isset($outPriceInfo))
|
||||||
|
|
@ -271,8 +271,8 @@ class BookingController extends Controller
|
||||||
{
|
{
|
||||||
$outHtmlSummary[] = [
|
$outHtmlSummary[] = [
|
||||||
'value' => $a,
|
'value' => $a,
|
||||||
'label' => $room['persons']['total'] .'x zugebuchte Leistung: Komfort-Kategorie <strong>'.
|
'label' => 'Komfort-Kategorie <strong>['. $travelerCount .' x '.
|
||||||
Util::formatPrice($room['price']->getEffectiveComfortPrice()) .'</strong>'
|
Util::formatPrice($room['price']->getEffectiveComfortPrice()) .' pro Person]</strong>'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (isset($outPriceInfo))
|
if (isset($outPriceInfo))
|
||||||
|
|
@ -312,8 +312,8 @@ class BookingController extends Controller
|
||||||
|
|
||||||
if (isset($outHtmlSummary))
|
if (isset($outHtmlSummary))
|
||||||
{
|
{
|
||||||
$label = '1x '. $room['priceType']->getName() .' [Personen: '. $adultCount .' x <strong>'.
|
$label = $room['priceType']->getName() .' <strong>['. $adultCount .' x '.
|
||||||
Util::formatPrice($singleFullPrice) .'</strong>';
|
Util::formatPrice($singleFullPrice) .' pro Person]</strong>';
|
||||||
if ($room['persons']['children'] != 0)
|
if ($room['persons']['children'] != 0)
|
||||||
{
|
{
|
||||||
$label .= ', Kinder: '. $room['persons']['children'] .' x <strong>'.
|
$label .= ', Kinder: '. $room['persons']['children'] .' x <strong>'.
|
||||||
|
|
@ -328,8 +328,8 @@ class BookingController extends Controller
|
||||||
{
|
{
|
||||||
$outHtmlSummary[] = [
|
$outHtmlSummary[] = [
|
||||||
'value' => $discount,
|
'value' => $discount,
|
||||||
'label' => $adultCount .'x '.
|
'label' => 'Rabatt <strong>['. $adultCount .'x '.
|
||||||
Util::formatPrice($singleFullPrice - $singleDiscountPrice) .' Rabatt'
|
Util::formatPrice($singleFullPrice - $singleDiscountPrice) .' pro Person]</strong>'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if ($bookingRequest->getInsurance() && $adultCount > 0)
|
if ($bookingRequest->getInsurance() && $adultCount > 0)
|
||||||
|
|
@ -347,9 +347,9 @@ class BookingController extends Controller
|
||||||
{
|
{
|
||||||
$insuranceHtmlSummary[] = [
|
$insuranceHtmlSummary[] = [
|
||||||
'value' => $a,
|
'value' => $a,
|
||||||
'label' => $adultCount .'x RV '. $bookingRequest->getInsurance()->getName() .' ('.
|
'label' => 'RV '. $bookingRequest->getInsurance()->getName() .' ('.
|
||||||
$insurancePrice->getCode() .') <strong>'. Util::formatPrice($insurancePriceValue) .
|
$insurancePrice->getCode() .') <strong>['. $adultCount .' x '.
|
||||||
'</strong>'
|
Util::formatPrice($insurancePriceValue) . ' pro Person]</strong>'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
if (isset($outPriceInfo))
|
if (isset($outPriceInfo))
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,9 @@ class CmsController extends Controller
|
||||||
|
|
||||||
return $this->render('default/pages/cms/sunstar.html.twig', [
|
return $this->render('default/pages/cms/sunstar.html.twig', [
|
||||||
'page' => $page,
|
'page' => $page,
|
||||||
'sunstar_travel_programs' => $sunstarTravelPrograms
|
'show_search_sidebar_widget' => false,
|
||||||
|
'show_offers_sidebar_widget' => false,
|
||||||
|
'sunstar_travel_programs' => $sunstarTravelPrograms,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -98,6 +98,14 @@ class DefaultController extends Controller
|
||||||
public function ttSearchAction(Request $request)
|
public function ttSearchAction(Request $request)
|
||||||
{
|
{
|
||||||
$form = $this->createForm(TtSearchRequestType::class);
|
$form = $this->createForm(TtSearchRequestType::class);
|
||||||
|
if (empty($request->query->get('termin')))
|
||||||
|
{
|
||||||
|
$request->query->set('termin', (new \DateTime('+5 day'))->format('d.m.Y'));
|
||||||
|
}
|
||||||
|
if (empty($request->query->get('ruecktermin')))
|
||||||
|
{
|
||||||
|
$request->query->set('ruecktermin', (new \DateTime('+19 day'))->format('d.m.Y'));
|
||||||
|
}
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|
||||||
if ($form->isValid())
|
if ($form->isValid())
|
||||||
|
|
|
||||||
|
|
@ -347,6 +347,6 @@ class TravelDeparturePoint
|
||||||
|
|
||||||
public function __toString()
|
public function __toString()
|
||||||
{
|
{
|
||||||
return $this->getName();
|
return $this->getName() .' ('. number_format($this->getExtraCharge(), 2, ',', '.') .' €)';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -428,7 +428,8 @@ jQuery(document).ready(function($) {
|
||||||
=============================================== */
|
=============================================== */
|
||||||
|
|
||||||
$('.get-box-link').click(function() {
|
$('.get-box-link').click(function() {
|
||||||
var url = $(this).find('.is-box-link').attr('href');
|
var el$ = $(this);
|
||||||
|
var url = el$.find('.is-box-link').attr('href');
|
||||||
if (el$.attr('target') === '_blank')
|
if (el$.attr('target') === '_blank')
|
||||||
{
|
{
|
||||||
window.open(url);
|
window.open(url);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue