From: Steve Sutton Date: Fri, 27 Oct 2017 20:36:23 +0000 (-0400) Subject: Updating the forms. X-Git-Tag: v1.0.0^2~309^2~6 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d6bea7d7f157ad90776b4d990e77b9f921ed6cf0;p=WP-Plugins%2Fglm-member-db-registrations.git Updating the forms. Switch them to use the glm grid classes. --- diff --git a/css/front.css b/css/front.css index ee8458d..eb38cc2 100644 --- a/css/front.css +++ b/css/front.css @@ -1,6 +1,6 @@ /* Event Registration Edit Page */ -/* Temp replacement for glm-row without max-width and other checkout form tampering */ +/*{{{ Temp replacement for glm-row without max-width and other checkout form tampering */ .glm-reg-row { clear: both; margin-left: auto; @@ -17,9 +17,9 @@ .glm-reg-fail input { border: 4px #FFaBa9 solid; } -/* end of tampering */ - +/*}}} end of tampering */ +/*{{{ Event Registration List */ .glm-reg-event-list { width: 100%; padding: 0; @@ -37,6 +37,9 @@ padding: .4rem; width: 80%; } +/*}}} end Event Registration List */ + +/*{{{ Event Registration Page */ .glm-reg-dates { width: 48%; float: right; @@ -47,9 +50,9 @@ margin: 0 1rem; } .glm-reg-level { - width: 48%; - float: left; - clear: left; + /* width: 48%; */ + /* float: left; */ + /* clear: left; */ } .glm-reg-level-title { font-size: 1rem; @@ -114,7 +117,7 @@ .registrant-edit input[type='text'], .registrant-add input[type='text'] { - width: 40% !important; + /* width: 40% !important; */ float: left; margin-right: 1rem; } @@ -151,98 +154,15 @@ label.registrant-label { .reg-class-accounts { padding: 5px; } +/*}}} End Event Registration Page */ -.new-reg { - background-color: white; - border: 1px solid black; - padding: 2rem; - position: absolute; - left: 1rem; - top: 0; - width: 60rem; - z-index: 999; -} -.new-reg h2 { - width: auto; -} -.new-reg .add_reg_fname, -.new-reg .add_reg_lname, -.new-reg .add_reg_addr1, -.new-reg .add_reg_addr2, -.new-reg .add_reg_city, -.new-reg .add_reg_state, -.new-reg .add_reg_zip, -.new-reg .add_reg_country { - width: 46%; - margin-right: 1rem; - float: left; -} -.new-reg .add_reg_email { - width: 96%; -} - -.new-reg-notime { - background-color: white; - border: 1px solid black; - padding: 2rem; - position: absolute; - left: 1rem; - top: 0; - width: 40rem; - z-index: 999; -} -.new-reg-notime h2 { - width: auto; -} -.new-reg-notime .add_reg_fname, -.new-reg-notime .add_reg_lname, -.new-reg-notime .add_reg_addr1, -.new-reg-notime .add_reg_addr2, -.new-reg-notime .add_reg_city, -.new-reg-notime .add_reg_state, -.new-reg-notime .add_reg_zip, -.new-reg-notime .add_reg_country { - width: 46%; - margin-right: 1rem; - float: left; -} -.new-reg-notime .add_reg_email { - width: 95%; -} -#reg-select-time { - width: 150px; -} -.reg-edit-form { - display: none; - background-color: white; - border: 1px solid black; - padding: 2rem; - position: absolute; - left: 1rem; - top: 0; - width: 60rem; - z-index: 999; -} -.reg-edit-form .reg_fname, -.reg-edit-form .reg_lname, -.reg-edit-form .reg_addr1, -.reg-edit-form .reg_addr2, -.reg-edit-form .reg_city, -.reg-edit-form .reg_state, -.reg-edit-form .reg_zip, -.reg-edit-form .reg_country { - width: 46%; - margin-right: 1rem; - float: left; -} -.reg-edit-form .reg_email { - width: 96%; -} +/*{{{ New Attendee Form */ .glm-registrant-edit { cursor: pointer; } +/*}}} End New Attendee Form */ -/* Login Page */ +/*{{{ Login Page */ div.glm-reg-login { background-color: white; border: solid 1px black; @@ -267,12 +187,14 @@ div.glm-reg-forgot { div.glm-reg-forgot h4 { color: black; } -/* New register account form */ +/*}}} End Login Page */ + +/*{{{ New Register Account Form */ div.glm-reg-register { background-color: white; border: solid 1px black; padding: 2rem; - width: 30rem; + /* width: 30rem; */ } div.glm-reg-register div { clear: both; @@ -287,7 +209,9 @@ div.glm-reg-register input.error { } div.glm-reg-register div { position: relative; -} +}/*}}} End New Register Account */ + +/*{{{ Errors */ span.glm-error { position: absolute; bottom: -56px; @@ -298,4 +222,4 @@ span.glm-error { .glm-reg-warning { color: red; } - +/*}}} End Errors */ diff --git a/models/front/registrations/list.php b/models/front/registrations/list.php index 992f808..09db5f7 100644 --- a/models/front/registrations/list.php +++ b/models/front/registrations/list.php @@ -101,7 +101,7 @@ // Get a current list of reg events $listResult = $this->getSimpleRegEventsList($where.$alphaWhere, 'event_name', true, 'id', $start, $limit, true); - echo '
$listResult: ' . print_r( $listResult, true ) . '
'; + // echo '
$listResult: ' . print_r( $listResult, true ) . '
'; // Get paging results $numbDisplayed = $listResult['returned']; diff --git a/views/front/registrations/checkout.html b/views/front/registrations/checkout.html index 5def0b1..392e7f6 100644 --- a/views/front/registrations/checkout.html +++ b/views/front/registrations/checkout.html @@ -14,7 +14,7 @@

Checkout

- +

Account Information

@@ -32,7 +32,7 @@
E-Mail Address:
{$regAccount.fieldData.email}
- {/if} + {/if}
First Name:
@@ -155,7 +155,7 @@
- {if $cart.totalCharges > 0} + {if $cart.totalCharges > 0}

Payment Information

@@ -179,9 +179,9 @@
CVV:
-
+
- {/if} + {/if}

Additional Contact Information

@@ -251,7 +251,7 @@
- {if $cart.totalCharges > 0} + {if $cart.totalCharges > 0}

Total Charged: ${$cart.totalCharges|number_format:2}

{else}
(There is no charge for your request.)
diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 47b5b72..64cec84 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -1,59 +1,11 @@ {* Even Registration App - Backbone.js *} {* Underscore Templates for the Event Registration App *} -{* Template for Account Login *}{literal} - -{/literal} {* Template for Logged in Account *}{literal} {/literal} -{* Template for Register New Account *}{literal} - -{/literal} {* Template for the regEvent *}{literal}