Repository navigation
2.1.0
·
3 commits
to release
since this release
Immutable
release. Only release title and notes can be modified.
What's Changed
- Elections 2.1.0 by @agileware-kreatif in #49
Full Changelog: 2.0.0...2.1.0
Elections 2.1.0
A consistent user interface for every screen of the extension (back end, lists, front end, emails), plus fixes found while applying it. Requires CiviCRM 6.16 or later, as 2.0.
Changed for administrators
Every back end page has the same frame
- A breadcrumb above the heading that starts at Manage Elections and goes through the election to the page.
- Edit forms end with Submit, Back and Back to Manage Elections. Back returns to the page the person came from and keeps the election they were working on. Submit, Back and the action buttons are one size.
- Forms that were "Save", "Create", "Add Candidate" or "Edit Position" are now Submit.
Election Overview
- The action buttons sit in one row under the heading: Edit Election first, then Positions, Candidates, Results Page, Results, Audit Log, View as a Voter and Activate or Deactivate. Edit Election stays in place, disabled with the reason, once an election is running. Duplicate is no longer on this page (it stays on Manage Elections).
- The audit log has a heading and a description, shows readable labels ("Election changed", not
election_changed), and shows who made each change. - The audit log fingerprint is shown in full above the table, with a Copy button.
Manage Elections, Positions, Candidates, Results and Audit Log
- Add Election, Add Position and Add Candidate sit in the action bar beside Back and Back to Manage Elections.
- Row actions are Edit, Duplicate, Activate or Deactivate, and Delete. A running election shows "Locked: nominations have started." in place of Edit and Delete.
- Stage words are Inactive, Not started, Nominations open, Nominations closed, Candidates advertised, Voting open, Voting closed and Results published. Active and Inactive replace Visible and Hidden.
- Positions can be reordered by keyboard (Move up and Move down) as well as by dragging.
- Candidates show a Status (Nominee, Candidate, Declined or Withdrawn) and an Edit Statement button.
- A list opened without an election says so instead of listing every election.
- Lists have a table caption and column headings for screen readers, and a card layout on a phone.
Election form
- Tabs are Details, Dates, Participation, Display, Emails and Privacy.
- Each date has its own name: Visible from and until, Nominations open and close, Candidates advertised from, Voting opens and closes, Results published on, with one line of help under each.
- Labels are in sentence case and say what they do ("Allow people to take part without logging in", "Anonymise votes", "Voting groups", "Nominating groups", "Candidate groups"). Dates follow the format set in CiviCRM, and the page says which time zone the times are in.
Dialogs and messages
- Withdraw Election is now Deactivate. A running election still asks for its name to be typed.
- Delete, Duplicate, Activate and Deactivate dialogs have a title, a sentence that says what will happen, and a Cancel button.
- Success and error messages are short sentences ("Election saved.", "Position added."). Refusals keep what was typed. Error, warning and success messages have their own colours in every CiviCRM theme.
- Elections Settings has Submit, Back and Back to Manage Elections.
Changed for people taking part
- The election list opens on a personal link (it refused it before), and keeps the link on its buttons.
- The election list and election page show one line "Times are shown in " in place of a time zone link on every card. Administrator buttons are no longer shown on front end pages.
- A nominee Accepts or Declines; Withdraw is for a candidate who has already accepted. The two are stored apart and shown as Declined and Withdrawn.
- The ballot has a Review Your Vote step with Go Back and Change and Submit Vote. Your own choices are shown only to you on the election page, and not when the election anonymises votes.
- Every sub page has a Back to the election link.
- Access denied, not found and voting closed pages say plainly what is wrong and what to do, show one message, and answer with the right status (403 or 404). An unknown election now gets a real not found page. About 30 developer-worded messages ("Member is not allowed to vote in given election.") are now plain sentences.
- Emails: subjects and bodies say what the person is asked to do, have one Accept Nomination link, give the time zone, and use the same words as the screens.
Fixed
- Editing an election no longer switches it off, and no longer changes who created it.
- Seats and Required nominations can no longer be saved as 0.
- The election list no longer shows a PHP warning for an election without a description.
- The Audit Log always said "System" under Who.
- Back end pages with the new breadcrumb returned a server error on Joomla, and Drupal showed a deprecation message on the Results Page form.
Upgrading from 2.0.x
Two database steps run on upgrade:
- 20120 refreshes the wording of the four emails. A template a site has edited is left as it is.
- 20130 adds
has_withdrawn_nomination. Nominations that were refused before the upgrade cannot be told apart and show as Declined.
Documentation
- The user documentation describes the screens as they are now. The screenshots in
docs/imagesare replaced in version 2.2. - The README introduction is rewritten: what the extension can do, ideas for what to run with it, how an election works, what can be configured, and a contents list that links to the documentation.
SECURITY.md(security policy: 2.x supported, how to report a vulnerability) is added and linked from the docs.