From 3bec25bcd932a15e10b14bd20612ed83dc9ffd55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Thu, 19 Oct 2017 20:30:50 +0200 Subject: [PATCH] talk confirmation by staff --- cfp/templates/cfp/staff/talk_details.html | 17 ++++++++++------- cfp/urls.py | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/cfp/templates/cfp/staff/talk_details.html b/cfp/templates/cfp/staff/talk_details.html index 216caf3..4d18d65 100644 --- a/cfp/templates/cfp/staff/talk_details.html +++ b/cfp/templates/cfp/staff/talk_details.html @@ -78,12 +78,10 @@

{% if talk.notes %}{{ talk.notes|linebreaksbr }}{% else %}{% trans "No notes." %}{% endif %}

-

{% trans "Moderation" %}

- -

{% trans "Status" %}

- {% if talk.accepted == None %}

{% trans "Vote" %}

+ +

-2 -1 @@ -91,11 +89,16 @@ +1 +2
-

+

{{ talk.vote_set.count }} {% trans "vote" %}{{ talk.vote_set.count|pluralize }}, {% trans "average:" %} {{ talk.score|floatformat:1 }}

-Accept -Decline +{% trans "Accept" %} +{% trans "Decline" %} +{% elif talk.accepted == True and talk.confirmed == None %} +

{% trans "Speaker confirmation" %}

+ +{% trans "The speaker confirmed" %} +{% trans "The speaker cancelled" %} {% endif %} {% comment %} diff --git a/cfp/urls.py b/cfp/urls.py index 71c354f..c1799aa 100644 --- a/cfp/urls.py +++ b/cfp/urls.py @@ -21,7 +21,7 @@ urlpatterns = [ url(r'^staff/talks/(?P[\w\-]+)/accept/$', views.talk_decide, {'accept': True}, name='talk-accept'), url(r'^staff/talks/(?P[\w\-]+)/decline/$', views.talk_decide, {'accept': False}, name='talk-decline'), url(r'^staff/talks/(?P[\w\-]+)/confirm/$', views.talk_acknowledgment, {'confirm': True}, name='talk-confirm-by-staff'), - url(r'^staff/talks/(?P[\w\-]+)/desist/$', views.talk_acknowledgment, {'confirm': False}, name='talk-cancel-by-staff'), + url(r'^staff/talks/(?P[\w\-]+)/desist/$', views.talk_acknowledgment, {'confirm': False}, name='talk-desist-by-staff'), url(r'^staff/talks/(?P[\w\-]+)/edit/$', views.TalkUpdate.as_view(), name='talk-edit'), url(r'^staff/speakers/$', views.participant_list, name='participant-list'), url(r'^staff/speakers/(?P[\w\-]+)/$', views.participant_details, name='participant-details'),