maybe voters should be allowed to view poll forms and electoral lists even before the poll opens, so they are given a chance to check their eligibility, and the candidate list. Errors can then be corrected before opening the poll. Thank you.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | advpoll_eligible.patch | 4.14 KB | anders.fajerson |
| #4 | advpoll-eligable_0.patch | 4.39 KB | anders.fajerson |
| #3 | advpoll-eligable.patch | 4.49 KB | anders.fajerson |
| #2 | disabled-poll.png | 6.54 KB | anders.fajerson |
Comments
Comment #1
ChrisKennedy commentedThose both sound like good ideas - I'll see about implementing them.
Comment #2
anders.fajerson commentedFirst attempt. Now the poll is shown but the button is disabled and a message is displayed next to it. Added validating of eligible voter. First a screenshot.
Comment #3
anders.fajerson commentedAnd the patch. I still have problems making these patches on this borrowed laptop. Hopefully it applies. Please test carefully.
Comment #4
anders.fajerson commentedrerolled
Comment #5
ChrisKennedy commentedThis looks pretty good. A few things:
1. "Eligible" is misspelled a few times in the comments.
2. I'd check if you can still submit the form by enabling the submit button via jQuery.
3. I wonder if it would be better usability to just show results and a message saying the user is ineligible and/or not logged in, rather than displaying form elements that are not meant to actually be used.
4. Minor: imo, it's cleaner to not create $eligible if we're only using checking advpoll_eligible() once, and instead could just put advpoll_eligible() in the IF statement.
Comment #6
anders.fajerson commented1. Fixed.
2. You mean manipulating the submit button client-side so it can be clicked? Did it and
// Check if user is eligible to votecatches it.3. I thought the main motivation behind this patch was just that, to be able to view the form? It might be better to remove the button though. In Opera for example a disabled button looks the same as an enabled.
4. Fixed.
Comment #7
ChrisKennedy commented2. Cool.
3. I think the desired functionality is to let someone view the choices even if they're ineligible. This could be implemented as showing the form or the results, but I think the results might be the better choice.
Comment #8
anders.fajerson commentedI think the form is better. If the user can't view the result (e.g. if is set to show after vote is closed) we end up with the empty form again. On my site I also see the form as a sort of advertisment: "hey, log in/become member so you can vote on this!"
Comment #9
ChrisKennedy commentedAh good point about results display. Committed.
http://drupal.org/node/143194
Comment #10
ChrisKennedy commentedhttp://drupal.org/cvs?commit=76460 I mean.
Comment #11
(not verified) commented