From ee41c82e1927b606f0572628dbefbaf5e856afcb Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sat, 21 May 2016 23:00:58 +0200 Subject: [PATCH] Added FAB (well, not really floating). Improved form a bit. --- css/frs.css | 14 ++++++++++++++ index.php | 6 +++--- templates/hotel_html.mustache | 30 +++++++++++++++++++----------- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/css/frs.css b/css/frs.css index 0cc2cd7..939de9f 100644 --- a/css/frs.css +++ b/css/frs.css @@ -93,3 +93,17 @@ h3 .material-icons { font-size: 0.9em; vertical-align: -0.15em; } + +.frs-content { + position: relative; +} + +#frs-button-send { + position: absolute; + display: block; + right: 0; + bottom: 0; + margin-right: 40px; + margin-bottom: 40px; + z-index: 900; +} diff --git a/index.php b/index.php index 9060e45..816b268 100644 --- a/index.php +++ b/index.php @@ -62,10 +62,10 @@ if (!$tpl_done && isset($_SESSION['access_token']) && $_SESSION['access_token']) $client->setAccessToken($_SESSION['access_token']); if ($client->isAccessTokenExpired()) { - // TODO: Save everything in session + // TODO: Save everything (POST data) in session // TODO: Redirect to $client->createAuthUrl(); to reauthenticate - echo "Token expired!"; - session_destroy(); + echo "Token expired! createAuthUrl() . "\">Request new one."; + #session_destroy(); die(); } diff --git a/templates/hotel_html.mustache b/templates/hotel_html.mustache index fc9a4c4..6eb2c50 100644 --- a/templates/hotel_html.mustache +++ b/templates/hotel_html.mustache @@ -8,23 +8,31 @@

hotel Hotel Reservation

+
+

-

- + + Please input a name!
-
- -
-
- - - Input is not a date! -
-

+

+ +

+ + + Input is empty or not a date! +
+

+ + + + + {{> mdl_content_foot}} {{> mdl_foot}} {{> html_foot}}