mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Add transfer button to foreign domain info #2678
This commit is contained in:
parent
867a43835e
commit
1317570091
4 changed files with 6 additions and 6 deletions
|
@ -622,6 +622,3 @@ DEPENDENCIES
|
|||
uuidtools (~> 2.1.4)
|
||||
validates_email_format_of (~> 1.6.3)
|
||||
whenever (~> 0.9.4)
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.6
|
||||
|
|
|
@ -130,7 +130,7 @@ class Registrar::DomainsController < Registrar::DeppController # EPP controller
|
|||
|
||||
def transfer
|
||||
authorize! :transfer, Depp::Domain
|
||||
if params[:domain_name]
|
||||
if request.post? && params[:domain_name]
|
||||
@data = @domain.transfer(params)
|
||||
render 'transfer_index' and return unless response_ok?
|
||||
else
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
class: 'btn btn-default')
|
||||
= link_to(t(:delete), delete_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
class: 'btn btn-default')
|
||||
- else
|
||||
= link_to(t(:transfer), transfer_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
class: 'btn btn-default')
|
||||
= render 'shared/title', name: truncate(@data.css('name').text)
|
||||
|
||||
.row
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
.row
|
||||
.col-md-8
|
||||
= form_tag transfer_registrar_domains_path, class: 'form-horizontal', method: :post, multipart: true do
|
||||
= form_tag transfer_registrar_domains_path, class: 'form-horizontal', method: :post, multipart: true, autocomplete: 'off' do
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag :domain_name, t(:name), class: 'required'
|
||||
|
@ -13,7 +13,7 @@
|
|||
.col-md-3.control-label
|
||||
= label_tag :password, t(:password), class: 'required'
|
||||
.col-md-7
|
||||
= text_field_tag :password, params[:password],
|
||||
= password_field_tag :password, params[:password],
|
||||
class: 'form-control', autocomplete: 'off', required: true
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue