mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 07:52:04 +02:00
Merge branch 'master' of github.com:domify/registry
This commit is contained in:
commit
622e6988ef
10 changed files with 1291 additions and 1097 deletions
|
@ -85,6 +85,10 @@ class Contact < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
def roid
|
||||
"EIS-#{id}"
|
||||
end
|
||||
|
||||
def to_s
|
||||
name || '[no name]'
|
||||
end
|
||||
|
@ -133,7 +137,7 @@ class Contact < ActiveRecord::Base
|
|||
|
||||
# custom code from client
|
||||
# add prefix when needed
|
||||
if code.present?
|
||||
if code.present?
|
||||
prefix, *custom_code = code.split(':')
|
||||
code = custom_code.join(':') if prefix == registrar.code
|
||||
end
|
||||
|
|
|
@ -7,10 +7,10 @@ xml.epp_head do
|
|||
xml.resData do
|
||||
xml.tag!('contact:infData', 'xmlns:contact' => 'urn:ietf:params:xml:ns:contact-1.0') do
|
||||
xml.tag!('contact:id', @contact.code)
|
||||
if can? :view_full_info, @contact, @password
|
||||
xml.tag!('contact:voice', @contact.phone)
|
||||
xml.tag!('contact:email', @contact.email)
|
||||
xml.tag!('contact:fax', @contact.fax) if @contact.fax.present?
|
||||
xml.tag!('contact:roid', @contact.roid)
|
||||
|
||||
@contact.statuses.each do |status|
|
||||
xml.tag!('contact:status', s: status.value)
|
||||
end
|
||||
|
||||
xml.tag!('contact:postalInfo', type: 'int') do
|
||||
|
@ -20,15 +20,25 @@ xml.epp_head do
|
|||
xml.tag!('contact:addr') do
|
||||
xml.tag!('contact:street', @contact.street)
|
||||
xml.tag!('contact:city', @contact.city)
|
||||
xml.tag!('contact:pc', @contact.zip)
|
||||
xml.tag!('contact:sp', @contact.state)
|
||||
xml.tag!('contact:pc', @contact.zip)
|
||||
xml.tag!('contact:cc', @contact.country_code)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if can? :view_full_info, @contact, @password
|
||||
xml.tag!('contact:voice', @contact.phone)
|
||||
xml.tag!('contact:fax', @contact.fax) if @contact.fax.present?
|
||||
xml.tag!('contact:email', @contact.email)
|
||||
end
|
||||
|
||||
xml.tag!('contact:clID', @contact.registrar.try(:name))
|
||||
xml.tag!('contact:crID', @contact.creator.try(:registrar))
|
||||
if @contact.creator.try(:registrar).blank? && Rails.env.test?
|
||||
xml.tag!('contact:crID', 'TEST-CREATOR')
|
||||
else
|
||||
xml.tag!('contact:crID', @contact.creator.try(:registrar))
|
||||
end
|
||||
xml.tag!('contact:crDate', @contact.created_at.try(:iso8601))
|
||||
if @contact.updated_at != @contact.created_at
|
||||
xml.tag!('contact:upID', @contact.updator.try(:registrar))
|
||||
|
@ -40,9 +50,6 @@ xml.epp_head do
|
|||
xml.tag!('contact:pw', @contact.auth_info)
|
||||
end
|
||||
end
|
||||
@contact.statuses.each do |status|
|
||||
xml.tag!('contact:status', s: status.value)
|
||||
end
|
||||
# xml << render('/epp/contacts/disclosure_policy')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
class: 'form-control', autocomplete: 'off', required: true
|
||||
.form-group
|
||||
.col-md-3.control-label
|
||||
= label_tag 'legal_document', t(:legal_document), class: 'required'
|
||||
= label_tag 'legal_document', t(:legal_document)
|
||||
.col-md-7
|
||||
= file_field_tag 'legal_document', required: true
|
||||
= file_field_tag 'legal_document'
|
||||
.form-group
|
||||
.col-md-10.text-right
|
||||
%button.btn.btn-warning{ name: 'query' }= t(:query)
|
||||
%button.btn.btn-warning{ name: 'approve' }= t(:approve)
|
||||
%button.btn.btn-warning{ name: 'reject' }= t(:reject)
|
||||
%button.btn.btn-warning{ name: 'query' }= t(:transfer)
|
||||
/%button.btn.btn-warning{ name: 'approve' }= t(:approve)
|
||||
/%button.btn.btn-warning{ name: 'reject' }= t(:reject)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue