Allow entering identity codes to api user

This commit is contained in:
Martin Lensment 2015-03-23 17:16:24 +02:00
parent d8828750d9
commit 000b0fc140
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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')