Update /profile/edit layout to grid

Closes #29
This commit is contained in:
cryptogopher 2024-05-16 21:02:04 +02:00 committed by K4r0n1
parent de8f291cee
commit abd02fc7d0
2 changed files with 13 additions and 12 deletions

View File

@ -1,15 +1,16 @@
<div class="leftside">
<% content_for :navigation, flush: true do %>
<%= image_link_to t(:back), 'arrow-left-bold-outline',
request.referer.present? ? :back : root_url %>
request.referer.present? ? :back : root_path %>
<% end %>
</div>
<div class="rightside">
<div class="rightside buttongrid">
<%= image_button_to t(".delete"), "account-remove-outline", user_registration_path,
method: :delete, :class => "extendedleft", onclick: {confirm: t(".confirm_delete")} %>
method: :delete, form_class: 'tools', onclick: {confirm: t(".confirm_delete")} %>
</div>
<div class="main">
<%= labelled_form_for resource, url: registration_path(resource), html: {method: :patch} do |f| %>
<%= labelled_form_for resource, url: registration_path(resource),
html: {method: :patch, class: 'main'} do |f| %>
<%= f.email_field :email, size: 30, autofocus: true, autocomplete: "off" %>
<% if f.object.pending_reconfirmation? %>
<%= f.text_field :unconfirmed_email, readonly: true, tabindex: -1,
@ -21,8 +22,8 @@
<%= f.password_field :password, label: t(".new_password"), size: 30,
minlength: @minimum_password_length, autocomplete: "new-password",
hint: t(".blank_password_hint").html_safe + ("<br>").html_safe +
t("users.minimum_password_length", count: @minimum_password_length) %>
hint: t(".blank_password_hint_html",
subhint: t("users.minimum_password_length", count: @minimum_password_length)) %>
<%= f.password_field :password_confirmation, label: t(".password_confirmation"),
size: 30, minlength: @minimum_password_length, autocomplete: "off" %>

View File

@ -85,7 +85,7 @@ en:
unconfirmed_email_hint: (since %{timestamp})
new_password: New password
password_confirmation: Retype new password
blank_password_hint: leave blank to keep unchanged
blank_password_hint_html: leave blank to keep unchanged<br>%{subhint}
update: Update profile
sessions:
new: