From 0b7056c0bd229422a9220e01d601962fe5dab7e3 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 17 Nov 2017 15:57:37 -0500 Subject: [PATCH] Add graphic for instructions. Add "Please select a Date / Time" with pointer to the calendar section. Only outputs if the event has time specific (calendar). output graphic pointing right if medium up or down if small view. --- css/front.css | 24 +++++++++++++++++++++ models/admin/ajax/regFront/registrant.php | 11 +++++++++- views/front/registrations/registration.html | 11 ++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/css/front.css b/css/front.css index 8759c24..f0fe467 100644 --- a/css/front.css +++ b/css/front.css @@ -250,3 +250,27 @@ span.glm-error { display: inline-block; } + +/*{{{ Media Queries */ + +@media (min-width: 64.063em) { + /* Large */ + .glm-small-only { + display: none; + } +} + +@media (min-width: 50.065em) { + /* Medium */ + .glm-small-only { + display: none; + } +} + +@media (max-width: 50em) { + /* Small */ + .glm-medium-up { + display: none; + } +} +/*}}} */ diff --git a/models/admin/ajax/regFront/registrant.php b/models/admin/ajax/regFront/registrant.php index 8ce06e3..d930388 100644 --- a/models/admin/ajax/regFront/registrant.php +++ b/models/admin/ajax/regFront/registrant.php @@ -164,10 +164,19 @@ class GlmMembersAdmin_registrations_ajax_registrant extends GlmDataRegistrations $modelData['reg_request'] ) ); + // Need to fetch the Event Name for the update / insert + $regEventName = $this->wpdb->get_var( + $this->wpdb->prepare( + "SELECT event_name + FROM " . GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX . "reg_event + WHERE id = %d", + $modelData['reg_event'] + ) + ); $data = array( 'reg_request' => $modelData['reg_request'], 'reg_event' => $modelData['reg_event'], - 'event_name' => $modelData['event_name'] + 'event_name' => $regEventName ); $dataFormat = array( '%d', // reg_request diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index a5a83d5..817d1db 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -67,6 +67,17 @@
 
+ + <% if ( app.timeSpecific ) { %> +
+ Please select a Date / Time! + +
+
+ Please select a Date / Time! + +
+ <% } %>
-- 2.17.1