from django.conf.urls import *

urlpatterns = patterns('',

    url(r'^(?P<election_slug>[-\w]+)/$', 'modules.elections.views.election', name='elections_election'),
    
    url(r'^(?P<election_slug>[-\w]+)/registration/$', 'modules.elections.views.election_registration', name='elections_election_registration'),
    url(r'^(?P<election_slug>[-\w]+)/registration/approve/(?P<approval_key>[-\w]+)/$', 'modules.elections.views.election_registration_approve', name='elections_election_registration_approve'),
    
    url(r'^(?P<election_slug>[-\w]+)/registration/complete/$', 'modules.elections.views.election_registration_complete', name='elections_election_registration_complete'),
    url(r'^(?P<election_slug>[-\w]+)/vote/$', 'modules.elections.views.election_vote', name='elections_election_vote'),
    url(r'^(?P<election_slug>[-\w]+)/vote/complete/$', 'modules.elections.views.election_vote_complete', name='elections_election_vote_complete'),
    url(r'^(?P<election_slug>[-\w]+)/vote/candidate/(?P<candidate_id>[-\w]+)/$', 'modules.elections.views.election_vote_candidate', name='elections_election_vote_candidate'),

)