mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
Add a view and routes
This commit is contained in:
parent
489cd2f7e5
commit
fca12fdb34
9 changed files with 119 additions and 9 deletions
19
app/controllers/registrar/admin_contacts_controller.rb
Normal file
19
app/controllers/registrar/admin_contacts_controller.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
class Registrar
|
||||
class AdminContactsController < BulkChangeController
|
||||
BASE_URL = URI.parse("#{ENV['repp_url']}domains/admin_contacts").freeze
|
||||
ACTIVE_TAB = :admin_contact
|
||||
|
||||
def update
|
||||
authorize! :manage, :repp
|
||||
|
||||
uri = BASE_URL
|
||||
request = form_request(uri)
|
||||
response = do_request(request, uri)
|
||||
start_notice = t('.replaced')
|
||||
|
||||
process_response(response: response,
|
||||
start_notice: start_notice,
|
||||
active_tab: ACTIVE_TAB)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue