diff options
author | Derf Null <derf@finalrewind.org> | 2023-06-04 14:28:04 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-06-04 14:28:04 +0200 |
commit | 0172f0ce8ac543d287fef02786960d3e980556f4 (patch) | |
tree | b164d901bfe11ac9842e9cc344569d4764558440 /templates/edit_profile.html.ep | |
parent | d4a647014194d635d1025f83e595138c71db9c1d (diff) |
add profile editor
Diffstat (limited to 'templates/edit_profile.html.ep')
-rw-r--r-- | templates/edit_profile.html.ep | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/templates/edit_profile.html.ep b/templates/edit_profile.html.ep new file mode 100644 index 0000000..55b1e1e --- /dev/null +++ b/templates/edit_profile.html.ep @@ -0,0 +1,60 @@ +<div class="row"> + <div class="col s12"> + <h1>Profil bearbeiten</h1> + </div> +</div> +%= form_for '/account/profile' => (method => 'POST') => begin + %= csrf_field + <div class="row"> + <div class="col s12"> + <div class="card"> + <div class="card-content"> + <span class="card-title"><%= $name %></span> + <p> + Markdown möglich, maximal 2000 Zeichen. + %= text_area 'bio', id => 'bio', class => 'materialize-textarea' + </p> + </div> + <div class="card-action"> + <a href="/p/<%= $name %>" class="waves-effect waves-light btn"> + Abbrechen + </a> + <button class="btn waves-effect waves-light right" type="submit" name="action" value="save"> + Speichern + <i class="material-icons right">send</i> + </button> + </div> + </div> + </div> + </div> + <div class="row"> + <div class="col s12"> + Metadaten: Markdown-Links im Inhalt erlaubt, jeweils maximal 500 Zeichen + </div> + </div> + % for my $i (0 .. 10) { + <div class="row"> + <div class="input-field col l3 m12 s12"> + %= text_field "key_$i", id => "key_$i", maxlength => 50 + <label for="key_<%= $i %>">Attribut</label> + </div> + <div class="input-field col l9 m12 s12"> + %= text_field "value_$i", id => "value_$i", maxlength => 500 + <label for="value_<%= $i %>">Inhalt</label> + </div> + </div> + % } + <div class="row center-align"> + <div class="col s6"> + <a href="/p/<%= $name %>" class="waves-effect waves-light btn"> + Abbrechen + </a> + </div> + <div class="col s6"> + <button class="btn waves-effect waves-light" type="submit" name="action" value="save"> + Speichern + <i class="material-icons right">send</i> + </button> + </div> + </div> +%= end |