On master: Tower Auto-Stash: 2018-10-15 16:57:13 +0200
This commit is contained in:
commit
d64ee56813
4 changed files with 26 additions and 6 deletions
|
|
@ -663,7 +663,7 @@
|
|||
|
||||
</div> <!-- st trav -->
|
||||
<h2>Hinweis</h2>
|
||||
<p>Sofern Sie nicht oder nicht ausschließlich nur die deutsche Staatsbürgerschaft besitzen, können Sie die Reise nicht buchen,
|
||||
<p>Sofern Sie nicht oder nicht ausschließlich nur die deutsche, österreichische oder schweizerische Staatsbürgerschaft besitzen, können Sie die Reise nicht buchen,
|
||||
da wir Sie vorher u.a. über die Einreisebestimmungen für Ihre individuelle Staatsbürgerschaft informieren müssen.
|
||||
Bitte nehmen Sie vor einer Buchung Kontakt mit uns auf, damit Sie nach Erhalt der Informationen entscheiden können, ob Sie die Reise buchen möchten.</p>
|
||||
</div> <!-- col -->
|
||||
|
|
|
|||
|
|
@ -101,6 +101,8 @@ class BookingController extends Controller
|
|||
'travel_date' => $travelDate,
|
||||
'travel_program' => $travelProgram
|
||||
]);
|
||||
die();
|
||||
|
||||
if ($request->getMethod() == 'POST')
|
||||
{
|
||||
$form->handleRequest($request);
|
||||
|
|
|
|||
|
|
@ -1631,7 +1631,6 @@ class TravelProgram
|
|||
public function addTravelDateFromSeasonTravelPeriod($key, TravelPeriod $travelPeriod, $index, \DateTime $start,
|
||||
\DateTime $end = null, FlightPeriod $flightPeriod = null, $currencyFactor)
|
||||
{
|
||||
|
||||
$this->assertTravelDateNotDefinedYet($key);
|
||||
$this->isTravelDateMapTainted = true;
|
||||
$this->travelDateByKey[$key] = TravelDate::createForSeasonTravelPeriod($key, $travelPeriod, $index, $start,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
namespace AppBundle\Form;
|
||||
|
||||
use AppBundle\Entity\Traveler;
|
||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
|
|
@ -34,6 +35,8 @@ class TravelerType extends AbstractType
|
|||
*/
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
$resolver->setAllowedTypes('nationality', ['AppBundle\Entity\TravelNationality']);
|
||||
|
||||
$resolver->setDefaults(array(
|
||||
'data_class' => 'AppBundle\Entity\Traveler'
|
||||
));
|
||||
|
|
@ -45,6 +48,10 @@ class TravelerType extends AbstractType
|
|||
*/
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
|
||||
$nationality = $options['nationality'];
|
||||
|
||||
|
||||
$builder
|
||||
->add('sex', ChoiceType::class, [
|
||||
//'placeholder' => 'Geschlecht (Bitte wählen) *',
|
||||
|
|
@ -57,23 +64,35 @@ class TravelerType extends AbstractType
|
|||
->add('firstName')
|
||||
->add('lastName')
|
||||
->add('birthDate')
|
||||
->add('nationality', ChoiceType::class, [
|
||||
|
||||
|
||||
/*->add('nationality', ChoiceType::class, [
|
||||
'choices' => self::$NATIONALITY_CHOICES,
|
||||
'constraints' => [
|
||||
new NotNull(),
|
||||
new Choice(['choices' => self::$NATIONALITY_CHOICES])
|
||||
],
|
||||
'required' => true,
|
||||
])
|
||||
])*/
|
||||
->add('acceptEntryRequirements', CheckboxType::class, ['required' => true])
|
||||
|
||||
|
||||
;
|
||||
/*
|
||||
, StDateType::class, [
|
||||
'format' => 'dd.MM.yyyy'
|
||||
]
|
||||
*/
|
||||
|
||||
$builder->add('nationality', EntityType::class, [
|
||||
'placeholder' => 'Nationalität (Bitte wählen) *',
|
||||
'class' => 'AppBundle\Entity\TravelNationality',
|
||||
'choices' => $nationality->getNationality(),
|
||||
'constraints' => [
|
||||
new NotNull(),
|
||||
new Choice([
|
||||
'choices' => $nationality->getNationality()
|
||||
]
|
||||
)]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue