Patch adds configuration setting to put Terms of Service checkbox above or below content.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | cep_tos_checkbox_position-1433490-8.patch | 3.35 KB | luksak |
| #7 | cep_tos_checkbox_position-1433490-7.patch | 2.73 KB | luksak |
| #6 | cep_tos_checkbox_position-1433490-6.patch | 2.96 KB | jonathan_hunt |
| #3 | cep_tos_checkbox_position-1433490-3.patch | 2.88 KB | jonathan_hunt |
| cep_tos_checkbox_position.patch | 2.02 KB | jonathan_hunt |
Comments
Comment #1
pcambraSetting to needs review
Comment #2
pcambraWe need to delete on uninstall all variables that have been created.
Comment #3
jonathan_hunt commentedGood call. Amended patch attached.
Comment #4
mr.baileysReviewed and tested the patch, and it looks good to me. My only gripe is the fact that the title of the form element says "Position checkbox below content.", and then gives you the option to position below or above, which is confusing.
Comment #5
philipz commentedI wonder if it is possible to put the checkbox below/above the pane so it stays visible even if the pane is collapsed ?
This way the user could check that he/she agrees to terms of service but doesn't have to see the terms of service all the time. If someone would like to read them he would just expand them.
EDIT:
I moved the 'termsofservice' checkbox to
$form['buttons']form array but it's not validated as required there.Comment #6
jonathan_hunt commentedRerolled patch against stable version.
@mr.baileys Agreed, I've tidied the text in this patch.
@philipz Your idea makes sense, but I suggest you raise it in a separate issue.
Comment #7
luksakI rerolled the patch against the latest version. I had to fix the issue that the exact opposite setting was being applied. Now it works perfectly. Ready to be commited?
Comment #8
pcambraLooks nice! thanks. Some minor fixes yet:
A line at the end of the file is needed
Shouldn't be the weight relative? a +1/-1 of the other element will do it
Comment #9
luksakChanges implemented.
Comment #10
pcambraA line at the end of the file is still missing
I think that instead of doing the weight absolute could be $form[$pane_id]['#attributes']['#weight'] +1 -1
Comment #11
luksakI cant get rid of the "No newline at end of file" git thing... I tried saving it both in TextMate an Sublime.
Well, I set the weight of both elements hard coded. How should it be dynamic?
Comment #12
mr.baileysLeft-over debug statement.
Another left-over debug statement.
Comment #13
pcambraAnd committed, thanks all.
I've modified these things: