Merge pull request #129 from internetee/117226457-registrar_client_domain_view

117226457 registrar client domain view
This commit is contained in:
Timo Võhmar 2016-05-06 15:42:04 +03:00
commit 6c67f29ddc
3 changed files with 8 additions and 5 deletions

View file

@ -50,7 +50,7 @@ module Repp
api_user_name: current_user.try(:username),
api_user_registrar: current_user.try(:registrar).try(:to_s),
ip: request.ip,
uuid: request.uuid
uuid: request.try(:uuid)
})
end

View file

@ -6,10 +6,12 @@
%thead
%tr
%th{class: 'col-xs-4'}= t(:type)
%th{class: 'col-xs-8'}= t(:id)
%th{class: 'col-xs-4'}= t(:name)
%th{class: 'col-xs-4'}= t(:id)
%tbody
- @data.css('contact').each do |x|
- registrant = Contact.find_by_code(x.text)
%tr
%td= x['type']
%td= registrant.name
%td= x.text

View file

@ -10,8 +10,9 @@
%dt= t(:registrar)
%dd= @data.css('clID').text
- registrant = Contact.find_by_code(@data.css('registrant').text)
%dt= t(:registrant)
%dd= @data.css('registrant').text
%dd= "#{registrant.name} (#{@data.css('registrant').text})"
%dt= t(:registered)
%dd= @data.css('crDate').text