mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Allow entering identity codes to api user
This commit is contained in:
parent
d8828750d9
commit
000b0fc140
2 changed files with 4 additions and 1 deletions
|
@ -54,6 +54,6 @@ class Admin::ApiUsersController < AdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def api_user_params
|
def api_user_params
|
||||||
params.require(:api_user).permit(:username, :password, :active, :registrar_id, :registrar_typeahead)
|
params.require(:api_user).permit(:username, :password, :active, :registrar_id, :registrar_typeahead, :identity_code)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
.form-group
|
.form-group
|
||||||
= f.label :password
|
= f.label :password
|
||||||
= f.text_field(:password, class: 'form-control')
|
= f.text_field(:password, class: 'form-control')
|
||||||
|
.form-group
|
||||||
|
= f.label :identity_code
|
||||||
|
= f.text_field(:identity_code, class: 'form-control')
|
||||||
.form-group
|
.form-group
|
||||||
.form-group.has-feedback.js-typeahead-container
|
.form-group.has-feedback.js-typeahead-container
|
||||||
= f.label :registrar_typeahead, t('registrar')
|
= f.label :registrar_typeahead, t('registrar')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue