mysociety / yournextrepresentative

A website for crowd-sourcing structured election candidate data
https://candidates.democracyclub.org.uk/
GNU Affero General Public License v3.0
56 stars 21 forks source link

Allow adding of candidacies in new elections via JavaScript #971

Closed mhl closed 7 years ago

mhl commented 7 years ago

This pull request ports work from the DemocracyClub fork of YNR back to the upsteam master. It changes the person edit page so that instead of clicking through to the add candidacy wizard, you can add the form elements for a new candidacy into the form.

I've tried to reuse @symroe's commits and preserve their messages as far as possible, but in order to apply them to master some changes have been needed. I've also squashed in some of my later changes into those. Hopefully the commit authorship and commit messages still retain appropriate credit.