Use the following button to request an email with a password reset link:
<%= form_with(url: settings_reset_password_path, method: :post) do %> <%= submit_tag("Send me a password reset link", class: 'btn-md btn-gray w-full sm:w-auto') %> diff --git a/app/views/shared/_main_nav.html.erb b/app/views/shared/_main_nav.html.erb index 5905646..2e49a05 100644 --- a/app/views/shared/_main_nav.html.erb +++ b/app/views/shared/_main_nav.html.erb @@ -6,5 +6,5 @@ class: main_nav_class(@current_section, :contributions) %> <%= link_to "Wallet", wallet_path, class: main_nav_class(@current_section, :wallet) %> -<%= link_to "Account", security_path, +<%= link_to "Settings", security_path, class: main_nav_class(@current_section, :security) %> diff --git a/app/views/shared/_sidenav_settings.html.erb b/app/views/shared/_sidenav_settings.html.erb new file mode 100644 index 0000000..3239907 --- /dev/null +++ b/app/views/shared/_sidenav_settings.html.erb @@ -0,0 +1,10 @@ +<%= render SidenavLinkComponent.new( + name: "Account", path: "#", icon: "settings", disabled: true +) %> +<%= render SidenavLinkComponent.new( + name: "Password", path: security_path, icon: "key", + active: current_page?(security_path) +) %> +<%= render SidenavLinkComponent.new( + name: "Security", path: "#", icon: "shield", disabled: true +) %>