Skip to content

Commit

Permalink
add registration_closed template
Browse files Browse the repository at this point in the history
  • Loading branch information
jluebbe committed Nov 28, 2014
1 parent 46cdbd4 commit c48e7dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 %}
3 changes: 3 additions & 0 deletions nsupdate/accounts/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit c48e7dc

Please sign in to comment.