From c48e7dc5fcbd56bfb8d91d20537255966af6f319 Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Fri, 28 Nov 2014 16:48:30 +0100 Subject: [PATCH] add registration_closed template --- .../templates/registration/registration_closed.html | 8 ++++++++ nsupdate/accounts/urls.py | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 nsupdate/accounts/templates/registration/registration_closed.html diff --git a/nsupdate/accounts/templates/registration/registration_closed.html b/nsupdate/accounts/templates/registration/registration_closed.html new file mode 100644 index 0000000..d36ef48 --- /dev/null +++ b/nsupdate/accounts/templates/registration/registration_closed.html @@ -0,0 +1,8 @@ +{% extends "registration/registration_base.html" %} +{% load i18n %}{% load bootstrap %} +{% block title %}{% trans "Registration closed" %}{% endblock %} + +{% block content %} +

{% trans 'The account registration is closed.' %}

+

{% blocktrans %}Registration is currently only possible by contacting the admin ({{ SERVICE_CONTACT }}). {% endblocktrans %}

+{% endblock %} diff --git a/nsupdate/accounts/urls.py b/nsupdate/accounts/urls.py index 424a30a..ec701c6 100644 --- a/nsupdate/accounts/urls.py +++ b/nsupdate/accounts/urls.py @@ -30,5 +30,8 @@ urlpatterns = patterns( url(r'^register/complete/$', TemplateView.as_view(template_name='registration/registration_complete.html'), name='registration_complete'), + url(r'^register/closed/$', + TemplateView.as_view(template_name='registration/registration_closed.html'), + name='registration_disallowed'), # registration end )