Refactor settings routes and menu
Use sub controllers/routes for the sections
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<h2>Settings</h2>
|
||||
9
app/views/settings/profile/index.html.erb
Normal file
9
app/views/settings/profile/index.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<%= render HeaderComponent.new(title: "Settings") %>
|
||||
|
||||
<%= render MainWithSidenavComponent.new(sidenav_partial: 'shared/sidenav_settings') do %>
|
||||
<section>
|
||||
<h3>Profile</h3>
|
||||
<p class="mb-12">
|
||||
</p>
|
||||
</section>
|
||||
<% end %>
|
||||
13
app/views/settings/security/index.html.erb
Normal file
13
app/views/settings/security/index.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= render HeaderComponent.new(title: "Settings") %>
|
||||
|
||||
<%= render MainWithSidenavComponent.new(sidenav_partial: 'shared/sidenav_settings') do %>
|
||||
<section>
|
||||
<h3>Password</h3>
|
||||
<p class="mb-12">Use the following button to request an email with a password reset link:</p>
|
||||
<p>
|
||||
<%= 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') %>
|
||||
<% end %>
|
||||
</p>
|
||||
</section>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user