You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2019/05/02 18:52:45 UTC
[whimsy] branch master updated: Properly display checked when set
This is an automated email from the ASF dual-hosted git repository.
curcuru 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 59448fc Properly display checked when set
59448fc is described below
commit 59448fc784702582c2a5ed2d9778ee2ffefbdfe7
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Thu May 2 14:52:34 2019 -0400
Properly display checked when set
---
www/members/mentor-update.cgi | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/www/members/mentor-update.cgi b/www/members/mentor-update.cgi
index b0de5f5..25437fe 100755
--- a/www/members/mentor-update.cgi
+++ b/www/members/mentor-update.cgi
@@ -84,7 +84,9 @@ def emit_form(apacheid, mdata, button_help, uimap)
_div.col_sm_9 do
_div.input_group do
_label "#{MentorFormat::NOTAVAILABLE}" do
- _input ' Stop accepting NEW Mentees', type: 'checkbox', id: "#{MentorFormat::NOTAVAILABLE}", name: "#{MentorFormat::NOTAVAILABLE}", value: "#{MentorFormat::NOTAVAILABLE}"
+ args = { type: 'checkbox', id: "#{MentorFormat::NOTAVAILABLE}", name: "#{MentorFormat::NOTAVAILABLE}", value: "#{MentorFormat::NOTAVAILABLE}" }
+ args[:checked] = true if mdata[MentorFormat::NOTAVAILABLE]
+ _input ' Stop accepting NEW Mentees', args
end
end
_span.help_block do