-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make spamaway ids unique #4966
Comments
Can I please work on this issue? |
Hey @divyabaid16 there's this isuue that's already assigned to you. Mind if i work on this one? |
hey @GettyOrawo, you can start working on this as @divyabaid16 has started with #4971 as per their comment . You both can also work on this together, totally up to you. Thanks! |
How's the work going in on this one @GettyOrawo ? Checking in to see if you need any help! |
Hey @GettyOrawo are you still working on this one? |
Hi Is this issue available @gauravano ? |
yes @CleverFool77! |
I would like to work on this. @gauravano |
Great! |
Hi @gauravano I opened a PR #5465 for this issue. |
Reviewing!! |
Our spamaway system shows these nice emoji to prevent spammers:
https://publiclab.org/signup?spamaway=true (if you're not logged in)
The code is here:
plots2/app/views/users/_spamaway.html.erb
Lines 19 to 21 in 3d74756
However, we're getting a warning now that since this is loaded multiple times per page, this segment is causing a collision of identical CSS ids:
I think we have to replumb it using classnames to get rid of this warning.
I /think/ we can potentially change these lines:
plots2/app/views/users/_spamaway.html.erb
Lines 19 to 21 in 3d74756
They're currently rendering like this, and you can see the
id="spamaway_statement1_"
that's causing the problem. But i think it may not be important to the functioning of the system, because thename
field is the important part of a form. TheThe above
radio_button
line is part of the form helpers in Rails: https://guides.rubyonrails.org/form_helpers.htmlCan we maybe pass in something to the
radio_button
method to give a more unique id?The text was updated successfully, but these errors were encountered: