* Fertigstellung Buchungsformular (#1321) (SternTours-CRM-API-Anbindung, Mailversand, Validierung, Dynamische Preisberechnung, Persistierung von Buchungsinformationen)
* Fehler bei der Preisberechnung behoben * Farbschema geändert (Kevin Adametz) git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3289 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
dde3b91724
commit
3a28866cd2
36 changed files with 2200 additions and 268 deletions
|
|
@ -13,4 +13,9 @@
|
|||
.st-booking-table .st-total-price {
|
||||
border-bottom: 1px solid;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* #TODO Move */
|
||||
.st-required:after {
|
||||
content: " *";
|
||||
}
|
||||
|
|
@ -733,7 +733,7 @@ a,
|
|||
text-transform: uppercase;
|
||||
display: block;
|
||||
position: relative;
|
||||
background-color: #ffc926;
|
||||
background-color: #777777;
|
||||
color: #fff;
|
||||
padding: 8px 58px 8px 20px;
|
||||
font-size: 14px;
|
||||
|
|
@ -790,7 +790,7 @@ a,
|
|||
z-index: 10;
|
||||
left: 0;
|
||||
top: 140px;
|
||||
background-color: #648859;
|
||||
background-color: #1a457c;
|
||||
color: #fff;
|
||||
padding: 4px 6px 4px 12px;
|
||||
font-weight: bold;
|
||||
|
|
@ -835,7 +835,7 @@ a,
|
|||
text-transform: uppercase;
|
||||
display: block;
|
||||
position: relative;
|
||||
background-color: #ffc926;
|
||||
background-color: #777777;
|
||||
color: #fff;
|
||||
padding: 4px 12px 3px 12px;
|
||||
font-size: 14px;
|
||||
|
|
@ -852,18 +852,18 @@ a,
|
|||
}
|
||||
.item-switch > a.item-button-prev:hover {
|
||||
color: #fff;
|
||||
background-color: #777777;
|
||||
background-color: #ffc926;
|
||||
}
|
||||
.item-switch > a.item-button-next:hover {
|
||||
color: #fff;
|
||||
background-color: #777777;
|
||||
background-color: #ffc926;
|
||||
}
|
||||
.travel-wrapper .item > a.item-button:hover {
|
||||
color: #fff;
|
||||
background-color: #777777;
|
||||
background-color: #ffc926;
|
||||
}
|
||||
.travel-wrapper .item > a.item-button:hover:after {
|
||||
background-color: #5e5e5e;
|
||||
background-color: #f2b600;
|
||||
}
|
||||
.travel-wrapper .item > a.item-button:after {
|
||||
transition: 0.5s ease;
|
||||
|
|
@ -873,7 +873,7 @@ a,
|
|||
bottom: 0;
|
||||
width: 46px;
|
||||
right: 0px;
|
||||
background-color: #f2b600;
|
||||
background-color: #5e5e5e;
|
||||
content: '';
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
|
|
@ -883,7 +883,7 @@ a,
|
|||
font-size: 26px;
|
||||
}
|
||||
.item-switch > a.item-button-prev:hover:before {
|
||||
background-color: #5e5e5e;
|
||||
background-color: #f2b600;
|
||||
}
|
||||
.item-switch > a.item-button-prev:before {
|
||||
transition: 0.5s ease;
|
||||
|
|
@ -893,7 +893,7 @@ a,
|
|||
bottom: 0;
|
||||
width: 30px;
|
||||
left: 0px;
|
||||
background-color: #f2b600;
|
||||
background-color: #5e5e5e;
|
||||
content: '\f104';
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
|
|
@ -903,7 +903,7 @@ a,
|
|||
font-size: 26px;
|
||||
}
|
||||
.item-switch > a.item-button-next:hover:after {
|
||||
background-color: #5e5e5e;
|
||||
background-color: #f2b600;
|
||||
}
|
||||
.item-switch > a.item-button-next:after {
|
||||
transition: 0.5s ease;
|
||||
|
|
@ -913,7 +913,7 @@ a,
|
|||
bottom: 0;
|
||||
width: 30px;
|
||||
right: 0px;
|
||||
background-color: #f2b600;
|
||||
background-color: #5e5e5e;
|
||||
content: '';
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
|
|
@ -3296,6 +3296,11 @@ h5:hover a,
|
|||
.c2 li span,
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
background-color: #777777;
|
||||
border-color: #777777;
|
||||
}
|
||||
.btn-primary:hover,
|
||||
.btn-primary:active:hover {
|
||||
background-color: #ffc926;
|
||||
border-color: #ffc926;
|
||||
}
|
||||
|
|
|
|||
1
trunk/src/AppBundle/Resources/public/css/custom.css.map
Normal file
1
trunk/src/AppBundle/Resources/public/css/custom.css.map
Normal file
File diff suppressed because one or more lines are too long
45
trunk/src/AppBundle/Resources/public/js/booking.js
Normal file
45
trunk/src/AppBundle/Resources/public/js/booking.js
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
$(document).ready(function() {
|
||||
|
||||
var frm$ = $('.st-booking-form');
|
||||
var summary$ = $('.st-booking-summary');
|
||||
var travelerCountDd$ = $('#booking_request_travelerCount');
|
||||
var travelers$ = $('.st-traveler');
|
||||
var travelerFields$ = travelers$.find('input,select');
|
||||
|
||||
frm$.find('input, select').change(function() {
|
||||
var tmp = location.href.split('?');
|
||||
var tmp2 = tmp[0].split('/');
|
||||
tmp2.pop();
|
||||
var url = tmp2.join('/') + '/berechne-gesamtpreis';
|
||||
if (tmp[1])
|
||||
{
|
||||
url += '?'+ tmp[1];
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
type: 'post',
|
||||
data: frm$.serialize()
|
||||
|
||||
}).then(function(r) {
|
||||
summary$.html(r);
|
||||
|
||||
}, function() {
|
||||
summary$.html('Aufgrund eines Fehlers konnte kein Angebot ermittelt werden.');
|
||||
})
|
||||
});
|
||||
|
||||
function updateTravelers()
|
||||
{
|
||||
var travelerCount = parseInt(travelerCountDd$.val());
|
||||
travelers$.hide();
|
||||
travelerFields$.prop('required', false);
|
||||
for (var i = 1; i <= travelerCount; ++i)
|
||||
{
|
||||
$('.st-traveler-'+ i).show().find('input,select').prop('required', true);
|
||||
}
|
||||
}
|
||||
travelerCountDd$.change(updateTravelers);
|
||||
updateTravelers();
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue