diff options
Diffstat (limited to 'templates/registration')
-rw-r--r-- | templates/registration/activate.html | 24 | ||||
-rw-r--r-- | templates/registration/activation_complete.html | 22 | ||||
-rw-r--r-- | templates/registration/activation_email.txt | 14 | ||||
-rw-r--r-- | templates/registration/activation_email_subject.txt | 1 | ||||
-rw-r--r-- | templates/registration/registration_closed.html | 19 | ||||
-rw-r--r-- | templates/registration/registration_complete.html | 27 | ||||
-rw-r--r-- | templates/registration/registration_form.html | 25 |
7 files changed, 132 insertions, 0 deletions
diff --git a/templates/registration/activate.html b/templates/registration/activate.html new file mode 100644 index 0000000..113d1b3 --- /dev/null +++ b/templates/registration/activate.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# step 3. activating ... #} +{% comment %} +Note: This page is showed when activation failed. + Otherwise, it will be redirect to 'registration_activation_complete' +{% endcomment %} + +{% block title %} +激活失败 | 2014 SKA Summer School +{% endblock %} + +{% block content %} + <div class="container"> + <h2>激活失败</h2> + <p class="lead">Oops, 激活您的账户时遇到一点小问题,请检查激活链接是否正确并且没有过期……</p> + <p>如果您还是不能激活账户,请直接与我们联系:<a href="mailto:skaschool2014@163.com"><code>skaschool2014@163.com</code></a></p> + </div> +{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/templates/registration/activation_complete.html b/templates/registration/activation_complete.html new file mode 100644 index 0000000..d27622a --- /dev/null +++ b/templates/registration/activation_complete.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# step 4. activation complete #} + +{% block title %} +成功激活 | 2014 SKA Summer School +{% endblock %} + +{% block content %} + <div class="container"> + <h2>成功激活</h2> + <p class="lead">您已成功激活账户。</p> + + <br> + <p><a href="{% url 'login' %}" class="btn btn-primary">登录</a></p> + </div> +{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/templates/registration/activation_email.txt b/templates/registration/activation_email.txt new file mode 100644 index 0000000..0667fa0 --- /dev/null +++ b/templates/registration/activation_email.txt @@ -0,0 +1,14 @@ +Hello, + +Please follow the link below to activate your account at +"2014 SKA Summer School"({{ site }}). + +http://{{ site }}/accounts/activate/{{ activation_key }} + +Note: this link will expire in {{ expiration_days }} days. + + +Best regards. + +2014 SKA Summer School Team + diff --git a/templates/registration/activation_email_subject.txt b/templates/registration/activation_email_subject.txt new file mode 100644 index 0000000..215f006 --- /dev/null +++ b/templates/registration/activation_email_subject.txt @@ -0,0 +1 @@ +激活您的账户 diff --git a/templates/registration/registration_closed.html b/templates/registration/registration_closed.html new file mode 100644 index 0000000..7368c71 --- /dev/null +++ b/templates/registration/registration_closed.html @@ -0,0 +1,19 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} + +{# registration closed #} + +{% block title %} +注册已关闭 | 2014 SKA Summer School +{% endblock %} + +{% block content %} + <div class="container"> + <h2>注册已关闭</h2> + <p class="lead">很抱歉,暑期学校注册已经关闭。</p> + <p>如果您有需要,请与我们联系:<a href="mailto:skaschool2014@163.com"><code>skaschool2014@163.com</code></a></p> + </div> +{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/templates/registration/registration_complete.html b/templates/registration/registration_complete.html new file mode 100644 index 0000000..553a154 --- /dev/null +++ b/templates/registration/registration_complete.html @@ -0,0 +1,27 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# step 2. registration complete #} + +{% block title %} +注册完成 | 2014 SKA Summer School +{% endblock %} + +{% block content %} + <div class="container"> + <h2>注册完成</h2> + <p class="lead"> + 您已顺利完成注册。我们已向您注册使用的邮箱发送了激活邮件,请留意查收,并使用其中的链接激活账户。 + </p> + + <br> + <p> + 还未收到激活邮件? + <a href="#" class="btn btn-default">重新发送激活邮件</a> + </p> + </div> +{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html new file mode 100644 index 0000000..31316fe --- /dev/null +++ b/templates/registration/registration_form.html @@ -0,0 +1,25 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# step 1. registration #} + +{% block title %} +注册 | 2014 SKA Summer School +{% endblock %} + +{% block content %} + <div class="container"> + <h2>注册账户</h2> + <br> + + <form role="form" class="form-horizontal" method="post"> + {% csrf_token %} + {% bootstrap_form form layout='horizontal' %} + {% buttons submit='提交' reset='重置' layout='horizontal' %}{% endbuttons %} + </form> + </div> +{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} |