Formatierungen Kalenderansicht Sortierung FEWO git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3438 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
326f7f4f54
commit
bdb24ccd09
12 changed files with 207 additions and 19 deletions
|
|
@ -318,6 +318,7 @@ class BookingController extends Controller
|
|||
}
|
||||
|
||||
$insuranceTotal = 0;
|
||||
$tempInsuranceHTML = array();
|
||||
|
||||
foreach ($possibleRooms as $room)
|
||||
{
|
||||
|
|
@ -379,14 +380,21 @@ class BookingController extends Controller
|
|||
$a = $adultCount * $insurancePriceValue;
|
||||
$insuranceTotal += $a;
|
||||
$ret += $a;
|
||||
|
||||
if (isset($insuranceHtmlSummary))
|
||||
{
|
||||
$insuranceHtmlSummary[] = [
|
||||
'value' => $a,
|
||||
'label' => 'RV '. $bookingRequest->getInsurance()->getName() .' ('.
|
||||
$insurancePrice->getCode() .') <strong>['. $this->calcNumTravelerLabel($adultCount) .' x '.
|
||||
Util::formatPrice($insurancePriceValue) . ' pro Person]</strong>'
|
||||
];
|
||||
if(!empty($tempInsuranceHTML[$a])){
|
||||
$tempInsuranceHTML[$a]['count'] = intval($tempInsuranceHTML[$a]['count']) + $adultCount;
|
||||
$tempInsuranceHTML[$a]['value'] = $tempInsuranceHTML[$a]['value'] + $insurancePriceValue;
|
||||
}else{
|
||||
$tempInsuranceHTML[$a] = array(
|
||||
'value' => $a,
|
||||
'label_first' => 'RV '. $bookingRequest->getInsurance()->getName() .' ('. $insurancePrice->getCode() .') ',
|
||||
'label_last' => Util::formatPrice($insurancePriceValue) . ' pro Person',
|
||||
'count' => $adultCount,
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
if (isset($outPriceInfo))
|
||||
{
|
||||
|
|
@ -401,6 +409,16 @@ class BookingController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
if(count($tempInsuranceHTML) > 0 ){
|
||||
|
||||
foreach ($tempInsuranceHTML as $item) {
|
||||
$insuranceHtmlSummary[] =[
|
||||
'value' => $item['value'],
|
||||
'label' => $item['label_first'].'<strong>['.$item['count'].' x '.$item['label_last'].' ]</strong>',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($insuranceHtmlSummary))
|
||||
{
|
||||
$outHtmlSummary = array_merge($outHtmlSummary, $insuranceHtmlSummary);
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ class CmsController extends Controller
|
|||
|
||||
public function overviewAction(Page $page)
|
||||
{
|
||||
|
||||
$settings = $page->getCmsSettings();
|
||||
if (!is_array($settings))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ class ComponentController extends Controller
|
|||
if ($page->getLvl() == 0)
|
||||
{
|
||||
$view['nav_pages'] = $page->getChildren();
|
||||
|
||||
$view['nav_child_pages'] = [];
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class Page
|
|||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="AppBundle\Entity\Page", mappedBy="parent")
|
||||
* @ORM\OrderBy({"lft" = "ASC"})
|
||||
* @ORM\OrderBy({"order" = "ASC"})
|
||||
*/
|
||||
private $children;
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,28 @@ class TravelInsurance
|
|||
*/
|
||||
private $included;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="insurance_name", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $insuranceName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="text", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $text;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="insurance_pdf", type="string", length=255, nullable=true)
|
||||
*/
|
||||
private $insurancePdf;
|
||||
|
||||
|
||||
/**
|
||||
* @var integer
|
||||
*
|
||||
|
|
@ -96,6 +118,79 @@ class TravelInsurance
|
|||
return $this->internalName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set insuranceName
|
||||
*
|
||||
* @param string $insuranceName
|
||||
*
|
||||
* @return TravelInsurance
|
||||
*/
|
||||
public function setInsuranceName($insuranceName)
|
||||
{
|
||||
$this->insuranceName = $insuranceName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get insuranceName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getInsuranceName()
|
||||
{
|
||||
return $this->insuranceName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set text
|
||||
*
|
||||
* @param string $text
|
||||
*
|
||||
* @return TravelInsurance
|
||||
*/
|
||||
public function setText($text)
|
||||
{
|
||||
$this->text = $text;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get text
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getText()
|
||||
{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set insurancePdf
|
||||
*
|
||||
* @param string $insurancePdf
|
||||
*
|
||||
* @return TravelInsurance
|
||||
*/
|
||||
public function setInsurancePdf($insurancePdf)
|
||||
{
|
||||
$this->insurancePdf = $insurancePdf;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get insurancePdf
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getInsurancePdf()
|
||||
{
|
||||
return $this->insurancePdf;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set included
|
||||
*
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ class KernelControllerListener
|
|||
$restOfPath = '/'. implode('/', $pathArray);
|
||||
$slug = array_shift($pathArray);
|
||||
|
||||
|
||||
$qb = $repo->createQueryBuilder('p');
|
||||
$qb->where($qb->expr()->eq('p.lvl', $i));
|
||||
$qb->andWhere($qb->expr()->eq('p.slug', ':slug'));
|
||||
|
|
@ -160,6 +161,7 @@ class KernelControllerListener
|
|||
}
|
||||
else
|
||||
{
|
||||
|
||||
$handler = $node->getTemplate() ? ucfirst($node->getTemplate()) : 'Default';
|
||||
$request->attributes->set('_controller', 'AppBundle:Cms:'. $handler);
|
||||
if ($node->getTemplate())
|
||||
|
|
|
|||
|
|
@ -96,6 +96,27 @@ $(document).ready(function() {
|
|||
$('.acc_nationality_panel').on('shown.bs.collapse', toggleUpdateChevron);
|
||||
|
||||
|
||||
function toggleChevronIn(e) {
|
||||
console.log(e);
|
||||
var $i = $(e.target)
|
||||
.parent('.panel-group')
|
||||
.find("i.indicator");
|
||||
|
||||
$i.toggleClass('icon-minus icon-plus');
|
||||
|
||||
if($i.hasClass('icon-minus')){
|
||||
$i.parent('h5').find('span').html('Leistungen ausblenden');
|
||||
}
|
||||
if($i.hasClass('icon-plus')){
|
||||
$i.parent('h5').find('span').html('Leistungen einblenden');
|
||||
}
|
||||
}
|
||||
|
||||
$('.booking_insurance_toogle').on('hidden.bs.collapse', toggleChevronIn);
|
||||
$('.booking_insurance_toogle').on('shown.bs.collapse', toggleChevronIn);
|
||||
|
||||
|
||||
|
||||
function updateTravelers()
|
||||
{
|
||||
var travelersIndex = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue