Skip to content

Commit 4f19232

Browse files
Merge branch 'feature/20725-road-trip-page' into stage
2 parents 54da039 + 4f8a0da commit 4f19232

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

src/Controller/ContactsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function roadTrip()
4141
if ($this->Contacts->save($contact)) {
4242
$this->sendEmail($contact);
4343

44-
$this->Flash->success(__('Thank you!'), ['key' => 'contact']);
44+
$this->Flash->success(__('Thank you, we are adding your city to the list if others and will let you know if we choose yours to visit.'), ['key' => 'contact']);
4545
}
4646

4747
return $this->redirect('/roadtrip');

src/Template/Pages/road_trip.ctp

+10-13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ $this->assign('title', __('CakePHP is coming to your town!'));
88
<section class="clearfix">
99
<div class="container-fluid">
1010
<div class="row roadtrip-hero">
11+
<?= $this->Flash->render('contact') ?>
1112
<?= $this->Html->image('roadtrip-hero.svg') ?>
1213
</div>
1314
</div>
@@ -27,20 +28,16 @@ $this->assign('title', __('CakePHP is coming to your town!'));
2728
<p><?= __('If you have a PHP or CakePHP meetup group and are excited to have us come visit, let us know soon! We will go to as many places as we can fit into our Cake Road Trip. And will be asking the community to vote for the top places to visit!') ?></p>
2829
</div>
2930
</div>
30-
<?php if (!$flash = $this->Flash->render('contact')): ?>
31-
<div class="row">
32-
<div class="col-md-6 col-md-offset-3">
33-
<?= $this->Form->create(null, ['url' => ['controller' => 'Contacts', 'action' => 'roadTrip'], 'class' => 'road-form']) ?>
34-
<?= $this->Form->input('name', ['label' => __('Name {0}', $this->Html->tag('span', __('(Required)'))), 'escape' => false, 'class' => 'form-control']) ?>
35-
<?= $this->Form->input('email', ['label' => __('Email {0}', $this->Html->tag('span', __('(Required)'))), 'escape' => false, 'class' => 'form-control']) ?>
36-
<?= $this->Form->input('where', ['label' => __('Tell us where would you’d like us to go next {0}', $this->Html->tag('span', __('(Required)'))), 'escape' => false, 'class' => 'form-control']) ?>
37-
<?= $this->Form->button(__('Notify me!')) ?>
38-
<?= $this->Form->end() ?>
39-
</div>
31+
<div class="row">
32+
<div class="col-md-6 col-md-offset-3">
33+
<?= $this->Form->create(null, ['url' => ['controller' => 'Contacts', 'action' => 'roadTrip'], 'class' => 'road-form']) ?>
34+
<?= $this->Form->input('name', ['label' => __('Name {0}', $this->Html->tag('span', __('(Required)'))), 'escape' => false, 'class' => 'form-control', 'required' => true]) ?>
35+
<?= $this->Form->input('email', ['label' => __('Email {0}', $this->Html->tag('span', __('(Required)'))), 'escape' => false, 'class' => 'form-control', 'required' => true]) ?>
36+
<?= $this->Form->input('where', ['label' => __('Tell us where would you’d like us to go next {0}', $this->Html->tag('span', __('(Required)'))), 'escape' => false, 'class' => 'form-control', 'required' => true]) ?>
37+
<?= $this->Form->button(__('Notify me!')) ?>
38+
<?= $this->Form->end() ?>
4039
</div>
41-
<?php else: ?>
42-
<?= $flash ?>
43-
<?php endif; ?>
40+
</div>
4441
</div>
4542
<div class="roadtrip-bottom">
4643
<?= $this->Html->image('roadtrip-footer-img.svg') ?>

webroot/css/style.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -10333,7 +10333,10 @@ code {
1033310333
width: 100%;
1033410334
}
1033510335

10336-
10336+
.roadtrip-hero .alert {
10337+
margin-top: 90px;
10338+
margin-bottom: -60px;
10339+
}
1033710340

1033810341
.roadtrip-body {
1033910342
padding-top: 40px;
@@ -10426,6 +10429,9 @@ code {
1042610429
max-width: inherit !important;
1042710430
margin-left: -25%;
1042810431
}
10432+
.roadtrip-hero .alert {
10433+
margin-top: 70px;
10434+
}
1042910435
.road-cloud1, .road-cloud2 {
1043010436
display: none;
1043110437
}

0 commit comments

Comments
 (0)