imagex/imagex_contest — pull request #7 by thomjjames (2013-11-22 14:31:02+00:00)
Title: Feature: LDC-259 - Allow users to vote on finalists

## Ready State: Yes

This pull request is related to the following JIRA tickets:
https://imagex.atlassian.net/browse/LDC-259

NOTES:
* Allows 1 vote per contest per user (code & custom rules action has been write with expanding that in mind ie. allowing users to vote for more than 1 entry in a contest)
* Users can alter their vote while voting on contest is still open
* Uses custom Rules action which is triggered via Views Bulk Operations
* Contest nodes have a "Vote Now" tab which is accessible from both contest & contest entry nodes providing:
* Contest is open for voting
* User has "vote on contest entries" permissions
* If the user has already voted on a contest their current vote is shown and the top of the "Vote Now" tab including a warning that they will overwrite their existing vote is they vote again
* The imagex_contest_voting feature attempts to inject new contest views ordering (by vote), these show in the Views but the functionality doesn't show, I believe it similar to https://imagex.atlassian.net/browse/LDC-261 where features_override isn't working working as expected. Similar with panelizer settings for the addthis functionality.

## Requirements & Dependencies

* VotingAPI module needs to be present

## Deployment Instructions

* Merge code.
* Enable module imagex_contest, imagex_contest_permissions, imagex_contest_voting
* Clear caches with `drush cache-clear all`

## Usage/Test Instructions

* Create a contest node and then add some contest entries which are marked as "finalists" and ensure:
* The finalists show on the contest node view
* A "Vote Now" tab shows on the contest node
* A "Cast your vote now!" link to shown at the bottom of contest nodes which leads to the "Vote Now" tab of the contest
* A "Cast your vote for this entry now!" link to shown at the bottom of contest entry nodes which leads to the "Vote Now" tab of the contest
* Unchecking the "Open For Voting" checkbox on contest nodes hides the vote links & tab
* On the "Vote Now" ensure:
* You can only select 1 entry to vote on
* Voting again removes the previous votes
* The total votes for an entry is display with the entry