From: laury Date: Tue, 12 Dec 2017 20:11:59 +0000 (-0500) Subject: Registraction edit js fix, styles for update button X-Git-Tag: v1.0.0^2~223^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1236d6f85606ac02326825f125cb90ca579f4868;p=WP-Plugins%2Fglm-member-db-registrations.git Registraction edit js fix, styles for update button --- diff --git a/css/front.css b/css/front.css index 5f67e6b..a617a2c 100644 --- a/css/front.css +++ b/css/front.css @@ -171,9 +171,10 @@ .glm-reg-list-data{ padding: 0; } -.glm-reg-list-description{ +.glm-reg-list-description { padding: 5px 0; line-height: 1.2; + white-space: normal; } #glm-reg-list .glm-reg-event-item { border: 1px solid black; @@ -498,6 +499,9 @@ span.glm-error { /* Reg detail styles */ #regApp { +} +#regApp .reg-edit-form { + float: left; } #regApp .glm-reg-class-container { border: 1px solid lightgrey; @@ -507,8 +511,11 @@ span.glm-error { #regApp .glm-reg-class-container.collapsed .reg-class-detail { } #regApp .glm-reg-class-container .reg-class-detail { + background: white; } #regApp .glm-reg-class-container .glm-reg-event-details { + border-top-left-radius: 3px; + border-top-right-radius: 3px; background-color: #007095; color: white; cursor: pointer; @@ -517,7 +524,15 @@ span.glm-error { #regApp .glm-reg-class-container .glm-reg-event-details:hover { background-color: #008CBA; } - +#regApp .reg-edit-form .update-registrant-button-container { + float: left; +} +#regApp .reg-edit-form .update-registrant-button-container .update-registrant { + float: left; +} +#regApp .reg-edit-form .update-registrant-button-container .update-registrant.cancel { + float: right; +} #accountHeader { background: -webkit-linear-gradient(top, #f2f2f2 45%, #FFFFFF 100%); background: -moz-linear-gradient(center top, #f2f2f2 45%, #FFFFFF 100%); @@ -551,7 +566,7 @@ span.glm-error { border-color: lightgrey; border-width: 0 1px; border-style: solid; - border-radius: 2px; + border-radius: 1px; background: white; min-height: 60px; width: 100%; @@ -572,8 +587,7 @@ span.glm-error { #accountHeader #glm-header-reg-widget { margin-top: 0; min-height: 0; - border-top: 1px; - border-bottom: 1px; + border-width: 1px; } } #accountHeader .button { @@ -588,11 +602,10 @@ span.glm-error { #accountHeader .button { margin-bottom: 5px; } - #glm-header-reg-widget { + #accountHeader #glm-header-reg-widget { width: 100%; - margin-bottom: 5px; } - #glm-header-reg-widget #registrations-cart-link-widget { + #accountHeader #glm-header-reg-widget #registrations-cart-link-widget { width: 100% !important; } #regApp #glm-reg-event-name { diff --git a/js/frontRegApp.js b/js/frontRegApp.js index 55083e0..2e53861 100644 --- a/js/frontRegApp.js +++ b/js/frontRegApp.js @@ -851,11 +851,16 @@ app.Views.Front.RegRequestRegistrant = Backbone.View.extend({ // show the edit form editRegistrant: function(){ - if ( app.checkForEditLock() === true ) { - return; + if ( !this.$('.reg-edit-form').is(":visible") ) { + if ( app.checkForEditLock() === true ) { + return; + } + this.$('.reg-edit-form').show(); + app.regEventLock = true; + } else { + this.$('.reg-edit-form').hide(); + app.regEventLock = false; } - this.$('.reg-edit-form').show(); - app.regEventLock = true; }, // render the view diff --git a/views/front/registrations/checkout.html b/views/front/registrations/checkout.html index 1a0dc13..2a6d087 100644 --- a/views/front/registrations/checkout.html +++ b/views/front/registrations/checkout.html @@ -190,20 +190,6 @@

Payment Information

- - - Currently the 'select' foreach iterates without also dumping the payment method detail div - Either iterate over it once again (as below) or find some way to spit it out outside of the 'select' element - {foreach $payMethods as $payMethod} {$pmname = array_search($payMethod.value, $payMethodsNumb)} @@ -268,100 +254,7 @@ {/if} {/if} {/foreach} - the code below is the same, but doesn't utilize a foreach loop - - {$pm = $payMethodsNumb.NoCharge} - {if $payMethods.{$pm}.default} -
-
-

*** No Charge ****

-
- {/if} - {$pm = $payMethodsNumb.CompCode} - {if $payMethods.{$pm}.default} -
-
-
-
Enter code:
-
- -
-
-
- {/if} - {$pm = $payMethodsNumb.Cash} - {if $payMethods.{$pm}.default} -
-
-

*** Cash ****

-
- - {/if} - {$pm = $payMethodsNumb.Check} - {if $payMethods.{$pm}.default} -
-
-

*** No Check ****

-
- {/if} - {$pm = $payMethodsNumb.CallFromMerchant} - {if $payMethods.{$pm}.default} -
-
-

*** Call From Merchant ****

-
- {/if} - {$pm = $payMethodsNumb.CreditCard} - {if $payMethods.{$pm}.default} -
-
-
-
Name on Card:
-
- -
-
-
-
Card Type:
-
- -
-
-
-
Card Number:
-
- -
-
-
-
Card Expiration:
-
- -
-
-
-
CVV:
-
- -
-
-
- {/if} - {$pm = $payMethodsNumb.PayPal} - {if $payMethods.{$pm}.default} -
-
-

*** Pay Pal ****

-
- {/if}
{/if} {* / total charges > 0 *}
diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index b9b17dd..2257967 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -264,7 +264,7 @@ {/if}{literal} -
+