From 5d5a3bd747425e6fd2eb9b9373c1dba84389890b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 8 Oct 2018 10:29:37 -0400 Subject: [PATCH] Updating the check for max attendees per request. Change this to inline message. Add text for max number per request if it is set for the event. --- js/frontRegApp.js | 2 +- js/views/front/regTime.js | 2 +- views/front/registrations/registration.html | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/js/frontRegApp.js b/js/frontRegApp.js index d941621..f7ff329 100644 --- a/js/frontRegApp.js +++ b/js/frontRegApp.js @@ -952,7 +952,7 @@ app.Views.Front.RegTime = Backbone.View.extend({ // add new account addNewAccount: function(){ if ( app.checkForMaxAttendees() === true ) { - alert( 'You\'re only allowed to have ' + app.attendeeMaxPerReg + ' ' + app.attendeePlurCapTerm + ' per Registration!' ); + $('.glm-attendee-maxed').show(); return; } // check for the lock diff --git a/js/views/front/regTime.js b/js/views/front/regTime.js index 71b4a5d..69c4e71 100644 --- a/js/views/front/regTime.js +++ b/js/views/front/regTime.js @@ -47,7 +47,7 @@ app.Views.Front.RegTime = Backbone.View.extend({ // add new account addNewAccount: function(){ if ( app.checkForMaxAttendees() === true ) { - alert( 'You\'re only allowed to have ' + app.attendeeMaxPerReg + ' ' + app.attendeePlurCapTerm + ' per Registration!' ); + $('.glm-attendee-maxed').show(); return; } // check for the lock diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 89cfd39..f615efc 100755 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -229,7 +229,13 @@
+ {/literal}{if $regEvent.attendee_max_per_reg}{literal} + + {/literal}{/if}{literal} List of {/literal}{$terms.reg_term_attendee_plur}{literal} + {/literal}{if $regEvent.attendee_max_per_reg}{literal} + Max {/literal}{$regEvent.attendee_max_per_reg} {literal} per Request + {/literal}{/if}{literal}