Update settings to re-use admin layout, one big navigation tree, improve settings forms
This commit is contained in:
		
					parent
					
						
							
								04bce0cdf2
							
						
					
				
			
			
				commit
				
					
						f4bc9620a9
					
				
			
		
					 22 changed files with 169 additions and 82 deletions
				
			
		|  | @ -2,6 +2,7 @@ | |||
| 
 | ||||
| class Auth::RegistrationsController < Devise::RegistrationsController | ||||
|   layout 'auth' | ||||
|   layout 'admin', only: [:edit] | ||||
| 
 | ||||
|   before_action :check_single_user_mode | ||||
|   before_action :configure_sign_up_params, only: [:create] | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # frozen_string_literal: true | ||||
| 
 | ||||
| class Settings::PreferencesController < ApplicationController | ||||
|   layout 'auth' | ||||
|   layout 'admin' | ||||
| 
 | ||||
|   before_action :authenticate_user! | ||||
| 
 | ||||
|  |  | |||
|  | @ -3,7 +3,7 @@ | |||
| class Settings::ProfilesController < ApplicationController | ||||
|   include ObfuscateFilename | ||||
| 
 | ||||
|   layout 'auth' | ||||
|   layout 'admin' | ||||
| 
 | ||||
|   before_action :authenticate_user! | ||||
|   before_action :set_account | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| # frozen_string_literal: true | ||||
| 
 | ||||
| class Settings::TwoFactorAuthsController < ApplicationController | ||||
|   layout 'auth' | ||||
|   layout 'admin' | ||||
| 
 | ||||
|   before_action :authenticate_user! | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue