mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Edit country select in forms
This commit is contained in:
parent
7537bb3712
commit
195aa4a890
7 changed files with 147 additions and 104 deletions
|
@ -57,7 +57,7 @@ class Admin::RegistrarsController < AdminController
|
|||
def registrar_params
|
||||
params.require(:registrar).permit(
|
||||
:name, :reg_no, :vat_no, :address, :billing_address,
|
||||
:country_id, :email, :phone, :billing_email
|
||||
:country_code, :email, :phone, :billing_email
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -54,6 +54,6 @@ class Admin::UsersController < AdminController
|
|||
end
|
||||
|
||||
def user_params
|
||||
params.require(:user).permit(:username, :password, :identity_code, :email, :country_id, { roles: [] })
|
||||
params.require(:user).permit(:username, :password, :identity_code, :email, :country_code, { roles: [] })
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue