From 39661b8de733d5eea2d063ccaf7741ff7f03d63f Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 3 May 2016 12:06:03 +0200 Subject: [PATCH] Add new club view --- club/templates/club/club_edit_prop.jinja | 2 +- club/templates/club/club_list.jinja | 3 +++ club/urls.py | 1 + club/views.py | 10 ++++++++++ core/management/commands/populate.py | 21 +++++++++++++++++++++ 5 files changed, 36 insertions(+), 1 deletion(-) diff --git a/club/templates/club/club_edit_prop.jinja b/club/templates/club/club_edit_prop.jinja index 23d63d11..400be64d 100644 --- a/club/templates/club/club_edit_prop.jinja +++ b/club/templates/club/club_edit_prop.jinja @@ -2,7 +2,7 @@ {% block content %}

Edit club properties

-
+ {% csrf_token %} {{ form.as_p() }}

diff --git a/club/templates/club/club_list.jinja b/club/templates/club/club_list.jinja index 4685ebf7..9cbe2d43 100644 --- a/club/templates/club/club_list.jinja +++ b/club/templates/club/club_list.jinja @@ -17,6 +17,9 @@ {%- endmacro %} {% block content %} + {% if user.is_superuser or user.is_in_group(settings.SITH_GROUPS['root']['name']) %} +

New club

+ {% endif %} {% if club_list %}

Club list