from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='index'),
    path('select-campaign/<int:tenant_id>/', views.select_campaign, name='select_campaign'),
    path('voters/', views.voter_list, name='voter_list'),
    path('voters/advanced-search/', views.voter_advanced_search, name='voter_advanced_search'),
    path('voters/export-csv/', views.export_voters_csv, name='export_voters_csv'),
    path('voters/<int:voter_id>/', views.voter_detail, name='voter_detail'),
    path('voters/<int:voter_id>/edit/', views.voter_edit, name='voter_edit'),
    path('voters/<int:voter_id>/geocode/', views.voter_geocode, name='voter_geocode'),
    
    path('voters/<int:voter_id>/interaction/add/', views.add_interaction, name='add_interaction'),
    path('interaction/<int:interaction_id>/edit/', views.edit_interaction, name='edit_interaction'),
    path('interaction/<int:interaction_id>/delete/', views.delete_interaction, name='delete_interaction'),
    
    path('voters/<int:voter_id>/donation/add/', views.add_donation, name='add_donation'),
    path('donation/<int:donation_id>/edit/', views.edit_donation, name='edit_donation'),
    path('donation/<int:donation_id>/delete/', views.delete_donation, name='delete_donation'),
    
    path('voters/<int:voter_id>/likelihood/add/', views.add_likelihood, name='add_likelihood'),
    path('likelihood/<int:likelihood_id>/edit/', views.edit_likelihood, name='edit_likelihood'),
    path('likelihood/<int:likelihood_id>/delete/', views.delete_likelihood, name='delete_likelihood'),
    
    path('voters/<int:voter_id>/event-participation/add/', views.add_event_participation, name='add_event_participation'),
    path('event-participation/<int:participation_id>/edit/', views.edit_event_participation, name='edit_event_participation'),
    path('event-participation/<int:participation_id>/delete/', views.delete_event_participation, name='delete_event_participation'),
]