Merge pull request #186 from jluebbe/master

add registration_closed template
This commit is contained in:
ThomasWaldmann 2014-11-28 19:57:52 +01:00
commit 1d262b4f1e
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{% extends "registration/registration_base.html" %}
{% load i18n %}{% load bootstrap %}
{% block title %}{% trans "Registration closed" %}{% endblock %}
{% block content %}
<h2>{% trans 'The account registration is closed.' %}</h2>
<p>{% blocktrans %}Registration is currently only possible by contacting the admin ({{ SERVICE_CONTACT }}). {% endblocktrans %}</p>
{% endblock %}

View File

@ -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
)