From 0172f0ce8ac543d287fef02786960d3e980556f4 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Sun, 4 Jun 2023 14:28:04 +0200 Subject: add profile editor --- templates/account.html.ep | 3 ++- templates/edit_profile.html.ep | 60 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 templates/edit_profile.html.ep (limited to 'templates') diff --git a/templates/account.html.ep b/templates/account.html.ep index e5dba60..ef6b847 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -73,7 +73,8 @@ Sichtbarkeit edit - <%= visibility_icon($acc->{default_visibility_str}) %> + <%= visibility_icon($acc->{default_visibility_str}) %> + • Öffentliches Profil 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 @@ +
+
+

Profil bearbeiten

+
+
+%= form_for '/account/profile' => (method => 'POST') => begin + %= csrf_field +
+
+
+
+ <%= $name %> +

+ Markdown möglich, maximal 2000 Zeichen. + %= text_area 'bio', id => 'bio', class => 'materialize-textarea' +

+
+
+ + Abbrechen + + +
+
+
+
+
+
+ Metadaten: Markdown-Links im Inhalt erlaubt, jeweils maximal 500 Zeichen +
+
+ % for my $i (0 .. 10) { +
+
+ %= text_field "key_$i", id => "key_$i", maxlength => 50 + +
+
+ %= text_field "value_$i", id => "value_$i", maxlength => 500 + +
+
+ % } +
+ +
+ +
+
+%= end -- cgit v1.2.3