aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-01-23 16:34:56 +0100
committerThomas Citharel <tcit@tcit.fr>2015-01-23 16:34:56 +0100
commit121691e90026dcfaaecef0a1db07d40cd43a9278 (patch)
tree43e5f079b926c7c79b265c1453c90a12c6f0486b /themes/baggy
parentcdde19d6096c85a3ed9b9399482bcc04bb79583c (diff)
downloadwallabag-121691e90026dcfaaecef0a1db07d40cd43a9278.tar.gz
wallabag-121691e90026dcfaaecef0a1db07d40cd43a9278.tar.zst
wallabag-121691e90026dcfaaecef0a1db07d40cd43a9278.zip
working on registration support
Diffstat (limited to 'themes/baggy')
-rw-r--r--themes/baggy/login.twig5
-rw-r--r--themes/baggy/register.twig25
2 files changed, 30 insertions, 0 deletions
diff --git a/themes/baggy/login.twig b/themes/baggy/login.twig
index 58290e9c..7906cc20 100644
--- a/themes/baggy/login.twig
+++ b/themes/baggy/login.twig
@@ -31,4 +31,9 @@
31 <input type="hidden" name="token" value="{{ token }}"> 31 <input type="hidden" name="token" value="{{ token }}">
32 </form> 32 </form>
33 {% endif %} 33 {% endif %}
34 {% if constant('ALLOW_REGISTER') == 1 %}
35 <div class="register">
36 <a href="?registerform">{% trans "Register" %}</a>
37 </div>
38 {% endif %}
34{% endblock %} 39{% endblock %}
diff --git a/themes/baggy/register.twig b/themes/baggy/register.twig
new file mode 100644
index 00000000..5744a481
--- /dev/null
+++ b/themes/baggy/register.twig
@@ -0,0 +1,25 @@
1{% extends "layout-login.twig" %}
2{% block content %}
3
4<h2>{% trans 'Add user' %}</h2>
5 <form method="post" action="?register">
6 <fieldset class="w500p">
7 <div class="row">
8 <label class="col w150p" for="newusername">{% trans 'Login' %}</label>
9 <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}" required>
10 </div>
11 <div class="row">
12 <label class="col w150p" for="password4newuser">{% trans "Password" %}</label>
13 <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans 'Password' %}" required>
14 </div>
15 <div class="row">
16 <label class="col w150p" for="newuseremail">{% trans 'Email' %}</label>
17 <input class="col" type="email" id="newuseremail" name="newuseremail" placeholder="{% trans 'Email' %}">
18 </div>
19 <div class="row mts txtcenter">
20 <button type="submit">{% trans "Register" %}</button>
21 </div>
22 </fieldset>
23 </form>
24
25{% endblock %} \ No newline at end of file