diff options
Diffstat (limited to 'themes/default')
-rw-r--r-- | themes/default/login.twig | 5 | ||||
-rw-r--r-- | themes/default/register.twig | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/themes/default/login.twig b/themes/default/login.twig index b9f8b497..d4f44019 100644 --- a/themes/default/login.twig +++ b/themes/default/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="registerform"> | ||
36 | <a href="?register">{% trans "Register" %}</a> | ||
37 | </div> | ||
38 | {% endif %} | ||
34 | {% endblock %} | 39 | {% endblock %} |
diff --git a/themes/default/register.twig b/themes/default/register.twig new file mode 100644 index 00000000..755ae132 --- /dev/null +++ b/themes/default/register.twig | |||
@@ -0,0 +1,20 @@ | |||
1 | <h2>{% trans 'Add user' %}</h2> | ||
2 | <form method="post" action="?newuser"> | ||
3 | <fieldset class="w500p"> | ||
4 | <div class="row"> | ||
5 | <label class="col w150p" for="newusername">{% trans 'Login' %}</label> | ||
6 | <input class="col" type="text" id="newusername" name="newusername" placeholder="{% trans 'Login' %}" required> | ||
7 | </div> | ||
8 | <div class="row"> | ||
9 | <label class="col w150p" for="password4newuser">{% trans "Password" %}</label> | ||
10 | <input class="col" type="password" id="password4newuser" name="password4newuser" placeholder="{% trans 'Password' %}" required> | ||
11 | </div> | ||
12 | <div class="row"> | ||
13 | <label class="col w150p" for="newuseremail">{% trans 'Email' %}</label> | ||
14 | <input class="col" type="email" id="newuseremail" name="newuseremail" placeholder="{% trans 'Email' %}"> | ||
15 | </div> | ||
16 | <div class="row mts txtcenter"> | ||
17 | <button type="submit">{% trans "Register" %}</button> | ||
18 | </div> | ||
19 | </fieldset> | ||
20 | </form> \ No newline at end of file | ||