diff --git a/nsupdate/accounts/templates/registration/registration_closed.html b/nsupdate/accounts/templates/registration/registration_closed.html new file mode 100644 index 00000000..d36ef486 --- /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 424a30ad..ec701c6c 100644 --- a/nsupdate/accounts/urls.py +++ b/nsupdate/accounts/urls.py @@ -30,5 +30,8 @@ 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 )