Move password change to new Security tab
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
92bfc33bf0
commit
8997349186
@ -16,7 +16,7 @@
|
|||||||
@include media-max(large) {
|
@include media-max(large) {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(1fr);
|
grid-template-columns: repeat(1fr);
|
||||||
grid-template-columns: 1fr 1fr 1fr;
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
@ -41,6 +41,10 @@
|
|||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-max(small) {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
color: $text-color-body;
|
color: $text-color-body;
|
||||||
border-bottom: 2px solid #ffd000;
|
border-bottom: 2px solid #ffd000;
|
||||||
|
7
app/controllers/security_controller.rb
Normal file
7
app/controllers/security_controller.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
class SecurityController < ApplicationController
|
||||||
|
before_action :require_user_signed_in
|
||||||
|
|
||||||
|
def index
|
||||||
|
@current_section = :security
|
||||||
|
end
|
||||||
|
end
|
@ -37,12 +37,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
|
||||||
<h3>Password change</h3>
|
|
||||||
<p>
|
|
||||||
<%= form_with(url: settings_reset_password_path, method: :post) do %>
|
|
||||||
<%= submit_tag("Send me a password reset link") %>
|
|
||||||
<% end %>
|
|
||||||
</p>
|
|
||||||
</section>
|
|
||||||
|
12
app/views/security/index.html.erb
Normal file
12
app/views/security/index.html.erb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<section>
|
||||||
|
<h2>Security</h2>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h3>Password change</h3>
|
||||||
|
<p>
|
||||||
|
<%= form_with(url: settings_reset_password_path, method: :post) do %>
|
||||||
|
<%= submit_tag("Send me a password reset link") %>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
</section>
|
@ -13,6 +13,10 @@
|
|||||||
<%= link_to "Donations", donations_path,
|
<%= link_to "Donations", donations_path,
|
||||||
class: @current_section == :contributions ? "active" : nil %>
|
class: @current_section == :contributions ? "active" : nil %>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to "Security", security_path,
|
||||||
|
class: @current_section == :security ? "active" : nil %>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -12,6 +12,8 @@ Rails.application.routes.draw do
|
|||||||
get 'settings', to: 'settings#index'
|
get 'settings', to: 'settings#index'
|
||||||
post 'settings_reset_password', to: 'settings#reset_password'
|
post 'settings_reset_password', to: 'settings#reset_password'
|
||||||
|
|
||||||
|
get 'security', to: 'security#index'
|
||||||
|
|
||||||
resources :invitations, only: ['index', 'show', 'create', 'destroy']
|
resources :invitations, only: ['index', 'show', 'create', 'destroy']
|
||||||
|
|
||||||
namespace :admin do
|
namespace :admin do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user