diff --git a/dashboard/views.py b/dashboard/views.py index 3a21929..6e5f54c 100644 --- a/dashboard/views.py +++ b/dashboard/views.py @@ -100,7 +100,7 @@ def gen_sponsorship_chart(sponsorships, hackathon): for sp in sponsorships: if sp.status in [Sponsorship.CONFIRMED, Sponsorship.PAID]: confirmed_count += 1 - elif sp.status in [Sponsorship.CONTACTED, Sponsorship.RESPONDED]: + elif sp.status in [Sponsorship.ASSIGNED, Sponsorship.CONTACTED, Sponsorship.RESPONDED]: progress_count += 1 elif sp.status in [Sponsorship.DENIED, Sponsorship.GHOSTED]: dead_count += 1 diff --git a/hackathons/models.py b/hackathons/models.py index 059a2f5..c248350 100644 --- a/hackathons/models.py +++ b/hackathons/models.py @@ -61,6 +61,7 @@ class Meta: class Sponsorship(models.Model): + ASSIGNED = "assigned" CONTACTED = "contacted" RESPONDED = "responded" CONFIRMED = "confirmed" @@ -68,6 +69,7 @@ class Sponsorship(models.Model): GHOSTED = "ghosted" PAID = "paid" STATUSES = ( + (ASSIGNED, "Assigned"), (CONTACTED, "Contacted"), (RESPONDED, "Responded"), (CONFIRMED, "Confirmed"), diff --git a/hackathons/templates/cards/sponsorship_status.html b/hackathons/templates/cards/sponsorship_status.html index 1eb4924..177de6b 100644 --- a/hackathons/templates/cards/sponsorship_status.html +++ b/hackathons/templates/cards/sponsorship_status.html @@ -1,6 +1,8 @@ {% if not sponsorship %} Uncontacted +{% elif sponsorship.status == 'assigned' %} + Assigned {% elif sponsorship.status == 'contacted' %} Contacted {% elif sponsorship.status == 'responded' %} diff --git a/hackathons/templates/cards/sponsorship_table.html b/hackathons/templates/cards/sponsorship_table.html index e0f75f9..5050fd8 100644 --- a/hackathons/templates/cards/sponsorship_table.html +++ b/hackathons/templates/cards/sponsorship_table.html @@ -104,7 +104,7 @@

{{ card_title }}

{% if faked %} - Mark Contacted + Start Tracking {% else %} diff --git a/hackathons/templates/sponsorship_detail.html b/hackathons/templates/sponsorship_detail.html index 316d894..061b4be 100644 --- a/hackathons/templates/sponsorship_detail.html +++ b/hackathons/templates/sponsorship_detail.html @@ -19,7 +19,7 @@

{{ company.name }}

{% else %}
- +
{% endif %} @@ -34,7 +34,7 @@

Status:  
This company has not been contacted for the current hackathon.
- Press "Mark Contacted" to begin tracking this company as a potential sponsor. + Press "Start Tracking" to begin tracking this company as a potential sponsor.
{% elif no_contacted_employees %}