This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push: new b6a37047 Don't show form out of season b6a37047 is described below commit b6a37047352d742100efd90987c1f198184293ae Author: Sebb <s...@apache.org> AuthorDate: Thu Feb 8 12:33:48 2024 +0000 Don't show form out of season --- www/members/proxy.cgi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/www/members/proxy.cgi b/www/members/proxy.cgi index b3273eee..25020700 100755 --- a/www/members/proxy.cgi +++ b/www/members/proxy.cgi @@ -81,6 +81,11 @@ end # Emit meeting data and form for user to select a proxy - GET def emit_form(cur_mtg_dir, meeting, volunteers, disabled) + if disabled + _h3 'No upcoming meeting' + _p 'There is currently no meeting scheduled. Call back later.' + return + end begin secretary_id = ASF::Committee.officers.select{|x|x.name == 'secretary'}.first.chairs.map{|x|x[:id]}.first rescue StandardError @@ -158,11 +163,7 @@ def emit_form(cur_mtg_dir, meeting, volunteers, disabled) end _p 'Note that you cannot select a member who has provided a proxy' _div.button_group.text_center do - if disabled - _button.btn.btn_primary 'Submit', :disabled - else - _button.btn.btn_primary 'Submit' - end + _button.btn.btn_primary 'Submit' end end end