Browse Source

Add templates for account activation

sh4nks 9 years ago
parent
commit
090366bab7

+ 22 - 0
flaskbb/templates/auth/account_activation.html

@@ -0,0 +1,22 @@
+{% set page_title = _("Account Activation") %}
+{% set active_forum_nav=True %}
+
+{% extends theme("layout.html") %}
+{% block content %}
+{% from theme("macros.html") import horizontal_field %}
+
+<div class="panel page-panel">
+    <div class="panel-heading page-head">
+        {% trans %}Account Activation{% endtrans %}
+    </div>
+
+    <div class="panel-body">
+        <form class="form-horizontal" role="form" method="POST">
+            {{ form.hidden_tag() }}
+            {{ horizontal_field(form.token) }}
+            {{ horizontal_field(form.submit)}}
+        </form>
+    </div>
+</div>
+
+{% endblock %}

+ 23 - 0
flaskbb/templates/auth/request_account_activation.html

@@ -0,0 +1,23 @@
+{% set page_title = _("Request Account Activation") %}
+{% set active_forum_nav=True %}
+
+{% extends theme("layout.html") %}
+{% block content %}
+{% from theme("macros.html") import horizontal_field %}
+
+<div class="panel page-panel">
+    <div class="panel-heading page-head">
+        {% trans %}Request Account Activation{% endtrans %}
+    </div>
+
+    <div class="panel-body">
+        <form class="form-horizontal" role="form" method="POST">
+            {{ form.hidden_tag() }}
+            {{ horizontal_field(form.username) }}
+            {{ horizontal_field(form.email) }}
+            {{ horizontal_field(form.submit)}}
+        </form>
+    </div>
+</div>
+
+{% endblock %}

+ 2 - 2
flaskbb/templates/email/confirm_email.html → flaskbb/templates/email/activate_account.html

@@ -1,8 +1,8 @@
-{% set link = url_for('auth.email_confirmation', token=token, _external=True) %}
+{% set link = url_for('auth.activate_account', token=token, _external=True) %}
 
 <p>{% trans user=user.username %}Dear {{ user }},{% endtrans %}</p>
 
-<p>{% trans %}Click the link below to confirm your email:{% endtrans %}</p>
+<p>{% trans %}Click the link below to activate your account:{% endtrans %}</p>
 
 <p><a href="{{ link }}"</a></p>
 

+ 11 - 0
flaskbb/templates/email/activate_account.txt

@@ -0,0 +1,11 @@
+{% set link = url_for('auth.activate_account', token=token, _external=True) %}
+
+{% trans user=user.username, link=link %}Dear {{ user }},
+
+Click the link below to activate your account:
+
+{{ link }}
+
+Sincerely,
+The Administration
+{% endtrans %}

+ 0 - 11
flaskbb/templates/email/confirm_email.txt

@@ -1,11 +0,0 @@
-{% set link = url_for('auth.email_confirmation', token=token, _external=True) %}
-
-{% trans user=user.username, link=link %}Dear {{ user }},
-
-Click the link below to confirm your email:
-
-{{ link }}
-
-Sincerely,
-The Administration
-{% endtrans %}