From: Anthony Talarico Date: Tue, 5 Dec 2017 21:10:37 +0000 (-0500) Subject: new layout for the front end of the registrations page X-Git-Tag: v1.0.0^2~223^2~22 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b127b53caf11254707682c222f0834da94b07fe9;p=WP-Plugins%2Fglm-member-db-registrations.git new layout for the front end of the registrations page --- diff --git a/css/front.css b/css/front.css index f0fe467..d1d8d02 100644 --- a/css/front.css +++ b/css/front.css @@ -1,6 +1,45 @@ /* Event Registration Edit Page */ /*{{{ Temp replacement for glm-row without max-width and other checkout form tampering */ +@media(max-width: 641px){ + #regApp{ + padding: 0; + } + .glm-reg-classes{ + padding: 0; + } + .glm-reg-image-container{ + padding: 0; + } + #glm-reg-event-name{ + padding: 0; + line-height: 1.2; + } + .glm-reg-event-profile-details{ + padding-left: 0; + } +} +.glm-reg-map{ + width: 100%; + margin: 0; + height: 250px; + overflow: hidden; + background: url('../assets/fingerUpRed.png'); + background-position: center center; + background-size: cover; + position: relative; +} +#glm-reg-map-container{ + height: 0px; + margin: 0; + overflow: hidden; +} +.glm-reg-event-profile-details-container{ + padding: 0; +} +.glm-reg-class-container{ + padding: 0; +} .glm-reg-row { clear: both; margin-left: auto; @@ -28,7 +67,7 @@ padding: 0; } .glm-reg-event-item { - border: 1px solid black; +/* border: 1px solid black;*/ /* padding: 10px; */ margin: 1rem 0; } @@ -52,16 +91,22 @@ margin: 0 1rem; } .glm-reg-level { + margin-bottom: 25px; /* width: 48%; */ /* float: left; */ /* clear: left; */ } +.glm-reg-level-info{ + padding: 0 2px; + font-size: 14px; +} + .glm-reg-level-title { - font-size: 1rem; + font-size: 1.3rem; font-weight: bold; text-decoration: none; - padding: .3rem; - width: 80%; +/* padding: .3rem; + width: 80%;*/ } .glm-class-row-header { border-bottom: 4px solid black; @@ -82,6 +127,7 @@ padding: .4rem; margin: .4rem; background-color: lightgrey; + max-width: 425px; } .glm-reg-level-registrant span { padding: .3rem 1rem .3rem .2rem; @@ -134,6 +180,9 @@ .glm-reg-level-registrant-delete { float: right; } +.glm-reg-event-details{ + border-bottom: 2px solid darkslategrey; +} label.registrant-label { width: 80%; } @@ -153,8 +202,17 @@ label.registrant-label { .reg-class-count { float: right; } +.glm-reg-event-profile{ + margin-bottom: 25px; + padding: 0; +} + .reg-class-accounts { padding: 5px; +/* -moz-column-count: 2; + column-count: 2; + -webkit-column-count: 2;*/ + } /*}}} End Event Registration Page */ @@ -244,6 +302,7 @@ span.glm-error { .glm-add-new-account { font-size: 1rem; + margin-left: 10px; } #glm-reg-widget { diff --git a/models/front/registrations/registration.php b/models/front/registrations/registration.php index 65f6ada..58f10e7 100644 --- a/models/front/registrations/registration.php +++ b/models/front/registrations/registration.php @@ -357,6 +357,7 @@ 'regClassesJSON' => $regClassJSON, 'regTimesJSON' => $regTimesJSON, 'regCartJSON' => $regCartJSON, + 'imgBaseUrl' => GLM_MEMBERS_PLUGIN_MEDIA_URL ."/images/", 'regRequestJSON' => $regRequestJSON, 'loginAccount' => $loginAccount, 'termsJSON' => $termsJSON, diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index b08e22e..6ed6e04 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -1,6 +1,7 @@ {* Even Registration App - Backbone.js *} {* Underscore Templates for the Event Registration App *} {* Template for Logged in Account *}{literal} + {/literal} {* Template for regTime *}{literal} {/literal} {* Template for registrant add form *}{literal} @@ -285,5 +332,41 @@ jQuery(function($){ regEvent.setClasses( {$regClassesJSON} ); regEvent.setClassRegistrants( {$regJSON} ); var glmApp = new app.Views.Front.App(); + + $("#glm-reg-detail-map-button").click(function() { + var map_container = "#glm-reg-map-container"; + var map = "#glm-reg-map"; + var mapNewH = 0; + var mapOverflow = 'hidden'; + var mapBtnTxt = 'view map'; + + if ($(map_container).height() == 0) { + mapNewH = 250; + mapV = 'visible'; + mapBtnTxt = 'hide map' + } + $(map_container).animate({ + overflow: mapOverflow, + height: mapNewH + }, 250, "swing", function() { + + }); + $(this).html(mapBtnTxt); + }); + function initMap() { + + // Set default - Need to make this configurable + var map = new google.maps.Map(document.getElementById('glm-reg-map'), { + zoom: {$settings.maps_default_zoom}, + + disableDefaultUI: false, + mapTypeId: google.maps.MapTypeId.MAP, + }); + + // Create a marker for this member + + + } + google.maps.event.addDomListener(window, 'load', initMap); });