Passolution
This commit is contained in:
parent
0fbc50a168
commit
50d7004652
10 changed files with 54 additions and 108 deletions
|
|
@ -167,7 +167,6 @@
|
||||||
|
|
||||||
{% block javascripts %}
|
{% block javascripts %}
|
||||||
<script rel="preload" src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}"></script>
|
<script rel="preload" src="{{ asset('js/custom-min.js?v') }}{{ get_file_last_time('js/custom-min.js') }}"></script>
|
||||||
|
|
||||||
{% endblock javascripts %}
|
{% endblock javascripts %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
{% for image in lodgingGroup.images %}
|
{% for image in lodgingGroup.images %}
|
||||||
{% if image.comp == 'post' %}
|
{% if image.comp == 'post' %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="{{ asset('uploads/images/' ~ image.file) }}" alt="{{ image.description }}" style="height:80px;" ></td>
|
<td><img src="{{ asset('_uploads/images/' ~ image.file) }}" alt="{{ image.description }}" style="height:80px;" ></td>
|
||||||
<td>{{ image.pos }}</td>
|
<td>{{ image.pos }}</td>
|
||||||
<td>{{ image.fileName }}</td>
|
<td>{{ image.fileName }}</td>
|
||||||
<td>{{ image.description }}</td>
|
<td>{{ image.description }}</td>
|
||||||
|
|
|
||||||
|
|
@ -668,9 +668,11 @@
|
||||||
</a>
|
</a>
|
||||||
<div id="collapse_entry_{{ currentIndex }}" class="panel-collapse collapse acc_nationality_panel" aria-expanded="true" style="">
|
<div id="collapse_entry_{{ currentIndex }}" class="panel-collapse collapse acc_nationality_panel" aria-expanded="true" style="">
|
||||||
<div class="panel-body set_nationality_country_text" style="height: 300px; overflow: hidden; overflow-y: scroll">
|
<div class="panel-body set_nationality_country_text" style="height: 300px; overflow: hidden; overflow-y: scroll">
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="set_nationality_country_url" style="padding-top: 0.5em">
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- accordion -->
|
</div><!-- accordion -->
|
||||||
|
|
|
||||||
|
|
@ -407,6 +407,7 @@ class BookingSternToursCrmExporter extends SternToursCrmExporter
|
||||||
'participant_name' => $bookingRequest->getTravelers()[0]->getLastName(),
|
'participant_name' => $bookingRequest->getTravelers()[0]->getLastName(),
|
||||||
'participant_firstname' => $bookingRequest->getTravelers()[0]->getFirstName(),
|
'participant_firstname' => $bookingRequest->getTravelers()[0]->getFirstName(),
|
||||||
'participant_birthdate' => $bookingRequest->getTravelers()[0]->getBirthDate(),
|
'participant_birthdate' => $bookingRequest->getTravelers()[0]->getBirthDate(),
|
||||||
|
'nationality' => $bookingRequest->getTravelers()[0]->getNationality(),
|
||||||
'new_drafts' => $newDrafts,
|
'new_drafts' => $newDrafts,
|
||||||
]]);
|
]]);
|
||||||
if (!$resp['success'])
|
if (!$resp['success'])
|
||||||
|
|
@ -424,6 +425,7 @@ class BookingSternToursCrmExporter extends SternToursCrmExporter
|
||||||
'participant_firstname' => $traveler->getFirstName(),
|
'participant_firstname' => $traveler->getFirstName(),
|
||||||
'participant_birthdate' => $traveler->getBirthDate(),
|
'participant_birthdate' => $traveler->getBirthDate(),
|
||||||
'participant_child' => $traveler->isChild(),
|
'participant_child' => $traveler->isChild(),
|
||||||
|
'nationality' => $traveler->getNationality(),
|
||||||
]], true);
|
]], true);
|
||||||
return $resp['success'];
|
return $resp['success'];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ abstract class SternToursCrmExporter
|
||||||
//auto
|
//auto
|
||||||
|
|
||||||
|
|
||||||
const API_URL_LOCAL = 'http://cms-stern-tours.local/api';
|
const API_URL_LOCAL = 'http://cms-stern-tours.test/api';
|
||||||
const API_v3_URL_LOCAL = 'http://mein.sterntours.test/';
|
const API_v3_URL_LOCAL = 'http://mein.sterntours.test/';
|
||||||
|
|
||||||
const API_URL = 'https://cms.stern-tours.net/api';
|
const API_URL = 'https://cms.stern-tours.net/api';
|
||||||
|
|
|
||||||
|
|
@ -6786,4 +6786,12 @@ hr.primary {
|
||||||
}
|
}
|
||||||
.text-success {
|
.text-success {
|
||||||
color:#648859;
|
color:#648859;
|
||||||
|
}
|
||||||
|
.stooltip {
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
background-color: #e4e4e4;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
border: 1px solid #648859;
|
||||||
}
|
}
|
||||||
|
|
@ -136,8 +136,8 @@ $(document).ready(function () {
|
||||||
}).get();
|
}).get();
|
||||||
var url = $('#booking_form').data('url') + 'api/passolution/de';
|
var url = $('#booking_form').data('url') + 'api/passolution/de';
|
||||||
var data = {nationality_id: ele.val(), country_ids: values, travel_date_start: $('#booking_form').data('travel_date_start'), travel_program_id: $('#booking_form').data('travel_program_id')};
|
var data = {nationality_id: ele.val(), country_ids: values, travel_date_start: $('#booking_form').data('travel_date_start'), travel_program_id: $('#booking_form').data('travel_program_id')};
|
||||||
//console.log(data);
|
// console.log(data);
|
||||||
//console.log(url);
|
// console.log(url);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
|
|
@ -146,6 +146,13 @@ $(document).ready(function () {
|
||||||
//console.log(r);
|
//console.log(r);
|
||||||
if(r.response){
|
if(r.response){
|
||||||
$(obj).find('.set_nationality_country_text').html(r.response);
|
$(obj).find('.set_nationality_country_text').html(r.response);
|
||||||
|
if(r.pdf){
|
||||||
|
var dtext = "Ihre Einreisebestimmungen für "
|
||||||
|
if(r.additionalContent){
|
||||||
|
dtext += " " + r.additionalContent;
|
||||||
|
}
|
||||||
|
$(obj).find('.set_nationality_country_url').html(dtext +' : <a href="'+r.pdf['url']+'" target="_blank">'+r.pdf['filename']+'</a>');
|
||||||
|
}
|
||||||
$(obj).show('slow');
|
$(obj).show('slow');
|
||||||
if (!toggle_first[obj] && !toggle_sec[ele.val()]) {
|
if (!toggle_first[obj] && !toggle_sec[ele.val()]) {
|
||||||
$(obj).find('.accordion-toggle').click();
|
$(obj).find('.accordion-toggle').click();
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ jQuery(document).ready(function($) {
|
||||||
},
|
},
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"content": {
|
"content": {
|
||||||
"message": "Diese Webseite verwendet Cookies, über die personenbezogene Daten erhoben werden können. Nähere Informationen zu den verwendeten Cookies finden Sie hier:",
|
"message": "Diese Webseite verwendet systemrelevante Cookies, über die personenbezogene Daten erhoben werden können. Nähere Informationen zu den verwendeten Cookies finden Sie hier:",
|
||||||
"dismiss": "Einverstanden!",
|
"dismiss": "Einverstanden!",
|
||||||
"link": "Datenschutzerklärung",
|
"link": "Datenschutzerklärung",
|
||||||
"href": "https://www.sterntours.de/datenschutz"
|
"href": "https://www.sterntours.de/datenschutz"
|
||||||
|
|
@ -300,105 +300,7 @@ jQuery(document).ready(function($) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/* ==============================================
|
|
||||||
nav-tabs -->
|
|
||||||
=============================================== */
|
|
||||||
|
|
||||||
/*
|
|
||||||
var scrollBarWidths = 40;
|
|
||||||
var windowW = $(window).width();
|
|
||||||
|
|
||||||
|
|
||||||
var widthOfList = function(){
|
|
||||||
var itemsWidth = 0;
|
|
||||||
$('.list-nav-tabs li').each(function(){
|
|
||||||
var itemWidth = $(this).outerWidth();
|
|
||||||
itemsWidth+=itemWidth;
|
|
||||||
});
|
|
||||||
return itemsWidth;
|
|
||||||
};
|
|
||||||
|
|
||||||
var widthOfHidden = function(){
|
|
||||||
return (($('.wrapper-nav-tabs').outerWidth())-widthOfList()-getLeftPosi())-scrollBarWidths;
|
|
||||||
};
|
|
||||||
|
|
||||||
var getLeftPosi = function(){
|
|
||||||
if($('.list-nav-tabs').length){
|
|
||||||
return $('.list-nav-tabs').position().left;
|
|
||||||
}else{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var reAdjust = function(){
|
|
||||||
if (($('.wrapper-nav-tabs').outerWidth()) < widthOfList()) {
|
|
||||||
$('.scroller-right-nav-tabs').show();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$('.scroller-right-nav-tabs').hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (getLeftPosi()<0) {
|
|
||||||
$('.scroller-left-nav-tabs').show();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$('.item').animate({left:"-="+getLeftPosi()+"px"},'slow');
|
|
||||||
$('.scroller-left-nav-tabs').hide();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(windowW <= 992){
|
|
||||||
reAdjust();
|
|
||||||
}
|
|
||||||
$(window).on('resize',function(e){
|
|
||||||
var windowW = $(window).width();
|
|
||||||
if(windowW <= 992){
|
|
||||||
reAdjust();
|
|
||||||
}else{
|
|
||||||
$('.scroller-right-nav-tabs').hide();
|
|
||||||
$('.scroller-left-nav-tabs').hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
$('.scroller-right-nav-tabs').click(function() {
|
|
||||||
|
|
||||||
if(((getLeftPosi()*-1) + $('.wrapper-nav-tabs').outerWidth()) < (widthOfHidden()*-1)){
|
|
||||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
|
||||||
$('.list-nav-tabs').animate({left:"+="+($('.wrapper-nav-tabs').outerWidth()*-1)+"px"},'slow',function(){
|
|
||||||
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
|
||||||
$('.scroller-right-nav-tabs').fadeOut('slow');
|
|
||||||
$('.list-nav-tabs').animate({left:"+="+widthOfHidden()+"px"},'slow',function(){
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.scroller-left-nav-tabs').click(function() {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(((getLeftPosi()) + $('.wrapper-nav-tabs').outerWidth()) < 0){
|
|
||||||
$('.scroller-left-nav-tabs').fadeIn('slow');
|
|
||||||
$('.list-nav-tabs').animate({left:"-="+($('.wrapper-nav-tabs').outerWidth()*-1)+"px"},'slow',function(){
|
|
||||||
|
|
||||||
});
|
|
||||||
}else{
|
|
||||||
$('.scroller-right-nav-tabs').fadeIn('slow');
|
|
||||||
$('.scroller-left-nav-tabs').fadeOut('slow');
|
|
||||||
$('.list-nav-tabs').animate({left:"-="+getLeftPosi()+"px"},'slow',function(){
|
|
||||||
$('.list-nav-tabs').css({'left': 0});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* ==============================================
|
/* ==============================================
|
||||||
MENU HOVER -->
|
MENU HOVER -->
|
||||||
|
|
@ -466,6 +368,32 @@ jQuery(document).ready(function($) {
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
jQuery(document).ready(function($) {
|
||||||
|
$('article img.img-responsive').each(function( index ) {
|
||||||
|
|
||||||
|
$(this).hover(function () {
|
||||||
|
// Hover over code
|
||||||
|
var title = $(this).attr('title');
|
||||||
|
$(this).data('tipText', title);
|
||||||
|
$('<p class="stooltip"></p>').text(title).appendTo('body').fadeIn('slow');
|
||||||
|
}, function () {
|
||||||
|
// Hover out code
|
||||||
|
$(this).attr('alt', $(this).data('tipText'));
|
||||||
|
$('.stooltip').remove();
|
||||||
|
}).mousemove(function (e) {
|
||||||
|
var mousex = e.pageX + 20;
|
||||||
|
//Get X coordinates
|
||||||
|
var mousey = e.pageY + 10;
|
||||||
|
//Get Y coordinates
|
||||||
|
$('.stooltip').css({
|
||||||
|
top: mousey,
|
||||||
|
left: mousex
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
/* ==============================================
|
/* ==============================================
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
4
web/js/custom-min.js
vendored
4
web/js/custom-min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue