diff options
Diffstat (limited to 'views/login.html')
| -rw-r--r-- | views/login.html | 48 |
1 files changed, 40 insertions, 8 deletions
diff --git a/views/login.html b/views/login.html index 7a08c41..33627cb 100644 --- a/views/login.html +++ b/views/login.html | |||
| @@ -2,16 +2,48 @@ | |||
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <title>Grilist - Login</title> | 4 | <title>Grilist - Login</title> |
| 5 | {{ template "materialize" }} | ||
| 6 | <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
| 5 | </head> | 7 | </head> |
| 6 | <body> | 8 | <body> |
| 7 | {{ if .error }} | 9 | <div class="row"> |
| 8 | <div style="color: red">Es gab einen Fehler: {{ .error }}</div> | 10 | <div class="col s12 m6 offset-m3 l6 offset-l3"> |
| 9 | {{ end }} | 11 | <div class="row"> |
| 10 | <form action="#" method="POST"> | 12 | <h1 class="center-align">grilist</h1> |
| 11 | <input name="username" type="text" placeholder="Username" value="{{ .previous_user }}"/><br /> | 13 | {{ if .error }} |
| 12 | <input name="password" type="password" placerholder="benis" /><br /> | 14 | <div class="col s12 m8 offset-m2"> |
| 13 | <button type="submit">Einloggen</button> | 15 | <div class="card red lighten-2"> |
| 14 | </form> | 16 | <div class="card-content white-text"> |
| 17 | <span class="card-title">Fehler</span> | ||
| 18 | <p>Es gab einen Fehler: {{ .error }}</p> | ||
| 19 | </div> | ||
| 20 | </div> | ||
| 21 | </div> | ||
| 22 | {{ end }} | ||
| 23 | |||
| 24 | <form method="POST" name="login" action="#"> | ||
| 25 | <div class="input-field col s12"> | ||
| 26 | <i class="material-icons prefix">perm_identity</i> | ||
| 27 | <input name="username" type="text" placeholder="Username" class="validate" value="{{ .previous_user }}"/> | ||
| 28 | </div> | ||
| 29 | <div class="input-field col s12"> | ||
| 30 | <i class="material-icons prefix">lock_outline</i> | ||
| 31 | <input name="password" type="password" placeholder="Password" class="validate" /> | ||
| 32 | </div> | ||
| 33 | <div class="row col s12"> | ||
| 34 | <div class="col s4"> | ||
| 35 | <a class="waves-effect waves-teal btn-flat">Register</a> | ||
| 36 | </div> | ||
| 37 | <div class="right-align"> | ||
| 38 | <button class="btn waves-effect waves-light purple lighten-2" type="submit" name="action"> | ||
| 39 | Login <i class="material-icons right">send</i> | ||
| 40 | </button> | ||
| 41 | </div> | ||
| 42 | </div> | ||
| 43 | </form> | ||
| 44 | </div> | ||
| 45 | </div> | ||
| 46 | </div> | ||
| 15 | </body> | 47 | </body> |
| 16 | </html> | 48 | </html> |
| 17 | {{ end }} \ No newline at end of file | 49 | {{ end }} \ No newline at end of file |
