summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-04 19:28:57 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-04 19:28:57 +0100
commita47d76958c36f365893c01a62561c54856765ba8 (patch)
tree8a01284cbe1675ed5c23cd3922ed791c82e53dd9 /templates
parent5b523ff2f01f2e185fcb67d6bb49cb95ffd3f654 (diff)
Use proper Mojolicious input fields (-> no need to re-type everything on errors)
Diffstat (limited to 'templates')
-rw-r--r--templates/login.html.ep4
-rw-r--r--templates/register.html.ep8
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/login.html.ep b/templates/login.html.ep
index 3ef8dbc..1acff00 100644
--- a/templates/login.html.ep
+++ b/templates/login.html.ep
@@ -45,12 +45,12 @@
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
- <input name="user" id="user" type="text" class="validate">
+ %= text_field 'user', id => 'user', class => 'validate'
<label for="user">Account</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">lock</i>
- <input name="password" id="password" type="password" class="validate">
+ %= password_field 'password', id => 'password', class => 'validate'
<label for="password">Passwort</label>
</div>
</div>
diff --git a/templates/register.html.ep b/templates/register.html.ep
index 0e43e4d..2a421bb 100644
--- a/templates/register.html.ep
+++ b/templates/register.html.ep
@@ -29,22 +29,22 @@
<div class="row">
<div class="input-field col l6 m12 s12">
<i class="material-icons prefix">account_circle</i>
- <input name="user" id="account" type="text" class="validate">
+ %= text_field 'user', id => 'account', class => 'validate'
<label for="account">Name</label>
</div>
<div class="input-field col l6 m12 s12">
<i class="material-icons prefix">email</i>
- <input name="email" id="email" type="email" class="validate">
+ %= email_field 'email', id => 'email', class => 'validate'
<label for="email">Mail-Adresse</label>
</div>
<div class="input-field col l6 m12 s12">
<i class="material-icons prefix">lock</i>
- <input name="password" id="password" type="password" class="validate">
+ %= password_field 'password', id => 'password', class => 'validate'
<label for="password">Passwort</label>
</div>
<div class="input-field col l6 m12 s12">
<i class="material-icons prefix">lock</i>
- <input name="password2" id="password2" type="password" class="validate">
+ %= password_field 'password2', id => 'password2', class => 'validate'
<label for="password2">Passwort wiederholen</label>
</div>
</div>