205stelzear / elections

Website / Webapp to create and view elections for any Scout group
https://205stelzear-elections.v-ed.ca/
MIT License
0 stars 0 forks source link

Add possibility to vote multiple times for the same candidate #50

Closed V-ed closed 5 years ago

V-ed commented 5 years ago

This PR allows for toggling a checkbox that changes the behavior to make the votes able to be multiple on the same candidate instead of maximum 1 per candidate.

The number will follow the maximum range allowed in the number of votes in the setup.

The voting page shows a spinner for each candidate, allowing to either add or remove a vote for this candidate.

The spinner is using the neat library https://github.com/shaack/bootstrap-input-spinner, which was (relatively highly) modified to fit my needs and add better configurable support. My fork of his work can be found here : https://github.com/V-ed/bootstrap-input-spinner

It also added an hoverable state to the checkbox labels to explain a bit more how the checkbox changes the app behavior.

Closes #40 Closes #46