Use proper Mojolicious input fields (-> no need to re-type everything on errors)
This commit is contained in:
parent
5b523ff2f0
commit
a47d76958c
2 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue