From 483a794d234d101f195bfdacf156a4639f00af65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Tue, 8 Nov 2016 21:05:56 +0100 Subject: [PATCH] workshop attendee: subscription --- ponyconf/templates/base.html | 14 ++++- proposals/admin.py | 7 ++- proposals/forms.py | 12 ++++ proposals/models.py | 15 +++-- .../proposals/subscriptions_list.html | 36 +++++++++++ .../templates/proposals/talk_detail.html | 17 ++++++ .../templates/proposals/talk_subscribe.html | 23 +++++++ proposals/urls.py | 2 + proposals/views.py | 61 ++++++++++++++++--- 9 files changed, 171 insertions(+), 16 deletions(-) create mode 100644 proposals/templates/proposals/subscriptions_list.html create mode 100644 proposals/templates/proposals/talk_subscribe.html diff --git a/ponyconf/templates/base.html b/ponyconf/templates/base.html index 1a2b861..eef466d 100644 --- a/ponyconf/templates/base.html +++ b/ponyconf/templates/base.html @@ -29,9 +29,13 @@ + {% endif %} + {% if conference.subscriptions_open %} +  {% trans "Subscribe to a workshop" %} + {% endif %} + {% if request.user.is_authenticated %} + {% if not request|staff %} {% trans "Topics" %} - {% if request|staff %} - {% trans "Tracks" %} {% endif %} {% endif %} {% block navbar-left %}{% endblock %} @@ -51,6 +55,12 @@
  •  {% trans "Volunteers" %}
  • +
  • +  {% trans "Topics" %}
  • + +
  • +  {% trans "Tracks" %}
  • +