summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-06-13 08:19:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-06-13 08:19:29 +0200
commitbccdefbb7d3b2a92df919cea75d102f95cadf188 (patch)
tree184448f59ab3b3ddd5abff52ddfc8d75d39ffb3a /templates
parent581aae081dcc75c0fd0520c0b9ae096e4b138681 (diff)
add missing change_name template
Diffstat (limited to 'templates')
-rw-r--r--templates/change_name.html.ep32
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/change_name.html.ep b/templates/change_name.html.ep
new file mode 100644
index 0000000..6ddbe42
--- /dev/null
+++ b/templates/change_name.html.ep
@@ -0,0 +1,32 @@
+% if (my $invalid = stash('invalid')) {
+ %= include '_invalid_input', invalid => $invalid
+% }
+
+<h1>Name ändern</h1>
+%= form_for '/account/name' => (method => 'POST') => begin
+ %= csrf_field
+ <div class="row">
+ <div class="input-field col s12">
+ <i class="material-icons prefix">lock</i>
+ %= password_field 'password', id => 'password', class => 'validate', required => undef, autocomplete => 'current-password'
+ <label for="password">Aktuelles Passwort</label>
+ </div>
+ <div class="input-field col s12">
+ <i class="material-icons prefix">account_circle</i>
+ %= text_field 'name', id => 'account', class => 'validate', required => undef, pattern => '[0-9a-zA-Z_-]+', maxlength => 60
+ <label for="email">Neuer Name</label>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col s3 m3 l3">
+ </div>
+ <div class="col s6 m6 l6 center-align">
+ <button class="btn waves-effect waves-light" type="submit" name="action" value="update_name">
+ Ändern
+ <i class="material-icons right">send</i>
+ </button>
+ </div>
+ <div class="col s3 m3 l3">
+ </div>
+ </div>
+%= end