From c85ef6cddfafd41bbc425794d47fdf0e3c95f4e8 Mon Sep 17 00:00:00 2001 From: PekopT Date: Tue, 30 Aug 2016 12:28:01 +0300 Subject: [PATCH] #ARC-2 18-20 --- archilance/settings/base.py | 2 ++ templates/partials/footer.html | 5 +++++ templates/registration/registration_form.html | 6 +++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/archilance/settings/base.py b/archilance/settings/base.py index c17774f..af737c0 100644 --- a/archilance/settings/base.py +++ b/archilance/settings/base.py @@ -314,6 +314,8 @@ else: WAGTAIL_SITE_NAME = 'PROEKTON' +REGISTRATION_FORM = 'registration.forms.RegistrationFormTermsOfService' + # class ASCIIFileSystemStorage(FileSystemStorage): # def get_valid_name(self, name): diff --git a/templates/partials/footer.html b/templates/partials/footer.html index b29df6b..f70f86f 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -41,6 +41,11 @@ Мой офис {% endif %} + {% if request.user.is_staff %} +
  • + Админка +
  • + {% endif %} {% endif %} diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index e6845e6..0177e0e 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -89,9 +89,9 @@
    - -

    Регистрируясь, я подтверждаю свое согласие у условиями пользавательского - соглашения

    + +

    Регистрируясь, я подтверждаю свое согласие у условиями пользовательского соглашения

    + {{ form.tos.errors }}