diff --git a/app/templates/users/edit_profile.html.j2 b/app/templates/users/edit_profile.html.j2 index fc03909a..1da2f377 100644 --- a/app/templates/users/edit_profile.html.j2 +++ b/app/templates/users/edit_profile.html.j2 @@ -65,19 +65,15 @@
{{ edit_public_profile_information_form.hidden_tag() }} -
-
+
+
user-image
-
-
-
-
- delete -
-
-
+
{{ wtf.render_field(edit_public_profile_information_form.avatar, accept='image/jpeg, image/png, image/gif', placeholder='Choose an image file', id='avatar-upload') }} +
+
+ delete

@@ -107,7 +103,7 @@
  • -
    +
    Notification Settings keyboard_arrow_right
    @@ -122,7 +118,7 @@
  • -
    +
    Change Password keyboard_arrow_right
    @@ -139,7 +135,7 @@
  • -
    +
    Delete Account keyboard_arrow_right
    @@ -227,5 +223,21 @@ document.querySelector('#delete-user-button').addEventListener('click', (event) Requests.users.entity.delete(currentUserId) .then((response) => {window.location.href = '/';}); }); + +document.querySelectorAll('.collapsible').forEach((collapsible) => { + M.Collapsible.init( + collapsible, + { + onOpenStart: (event) => { + let caret = event.querySelector('.caret'); + caret.innerHTML = 'keyboard_arrow_down'; + }, + onCloseStart: (event) => { + let caret = event.querySelector('.caret'); + caret.innerHTML = 'keyboard_arrow_right'; + } + }); +}); + {% endblock scripts %}