mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Keyrelay list on domain, translations refactor
This commit is contained in:
parent
c15b4d48b9
commit
ee060fca1a
56 changed files with 439 additions and 356 deletions
|
@ -15,10 +15,10 @@ class Admin::EppUsersController < AdminController
|
|||
@epp_user = EppUser.new(epp_user_params)
|
||||
|
||||
if @epp_user.save
|
||||
flash[:notice] = I18n.t('shared.record_created')
|
||||
flash[:notice] = I18n.t('record_created')
|
||||
redirect_to [:admin, @epp_user]
|
||||
else
|
||||
flash.now[:alert] = I18n.t('shared.failed_to_create_record')
|
||||
flash.now[:alert] = I18n.t('failed_to_create_record')
|
||||
render 'new'
|
||||
end
|
||||
end
|
||||
|
@ -29,20 +29,20 @@ class Admin::EppUsersController < AdminController
|
|||
|
||||
def update
|
||||
if @epp_user.update(epp_user_params)
|
||||
flash[:notice] = I18n.t('shared.record_updated')
|
||||
flash[:notice] = I18n.t('record_updated')
|
||||
redirect_to [:admin, @epp_user]
|
||||
else
|
||||
flash.now[:alert] = I18n.t('shared.failed_to_update_record')
|
||||
flash.now[:alert] = I18n.t('failed_to_update_record')
|
||||
render 'edit'
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
if @epp_user.destroy
|
||||
flash[:notice] = I18n.t('shared.record_deleted')
|
||||
flash[:notice] = I18n.t('record_deleted')
|
||||
redirect_to admin_epp_users_path
|
||||
else
|
||||
flash.now[:alert] = I18n.t('shared.failed_to_delete_record')
|
||||
flash.now[:alert] = I18n.t('failed_to_delete_record')
|
||||
render 'show'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue