mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
TEMP
This commit is contained in:
parent
17bf5c373e
commit
d444552b9b
9 changed files with 31 additions and 273 deletions
|
@ -45,8 +45,6 @@
|
|||
|
||||
.container
|
||||
= render 'shared/flash'
|
||||
- if depp_controller?
|
||||
= render 'registrar/shared/epp_results'
|
||||
= yield
|
||||
|
||||
%footer.footer
|
||||
|
|
|
@ -1,46 +1,27 @@
|
|||
- content_for :actions do
|
||||
-# = link_to(t(:new), new_registrant_domain_path, class: 'btn btn-primary')
|
||||
= render 'shared/title', name: t(:domains)
|
||||
|
||||
.row
|
||||
.col-md-12{style: 'margin-bottom: -15px;'}
|
||||
= form_tag info_registrant_domains_path, class: 'form-horizontal', method: :get do
|
||||
.col-md-11
|
||||
.form-group
|
||||
= text_field_tag :domain_name, params[:domain_name], class: 'form-control', placeholder: t(:domain_name), autocomplete: 'off', autofocus: true
|
||||
.col-md-1.text-right.text-center-xs
|
||||
.form-group
|
||||
%button.btn.btn-default
|
||||
|
||||
%span.glyphicon.glyphicon-search
|
||||
|
||||
|
||||
%hr
|
||||
|
||||
- if @response
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%th{class: 'col-xs-3'}= t(:name)
|
||||
%th{class: 'col-xs-6'}= t(:valid)
|
||||
%th{class: 'col-xs-3'}= t(:actions)
|
||||
%tbody
|
||||
- @response['domains'].each do |x|
|
||||
.row
|
||||
.col-md-12
|
||||
.table-responsive
|
||||
%table.table.table-hover.table-bordered.table-condensed
|
||||
%thead
|
||||
%tr
|
||||
%td= link_to(x['name'], info_registrant_domains_path(domain_name: x['name']))
|
||||
%td
|
||||
= Time.zone.parse(x['valid_from']).try(:to_date)
|
||||
\-
|
||||
= Time.zone.parse(x['valid_to']).try(:to_date)
|
||||
%td
|
||||
= link_to(t(:view), info_registrant_domains_path(domain_name: x['name']),
|
||||
class: 'btn btn-primary btn-xs')
|
||||
-# = link_to(t(:edit), edit_registrant_domains_path(domain_name: x['name']),
|
||||
-# class: 'btn btn-primary btn-xs')
|
||||
-# = link_to(t(:renew), renew_registrant_domains_path(domain_name: x['name']),
|
||||
-# class: 'btn btn-default btn-xs')
|
||||
-# = link_to(t(:delete), delete_registrant_domains_path(domain_name: x['name']),
|
||||
-# class: 'btn btn-default btn-xs')
|
||||
%th{class: 'col-xs-2'}
|
||||
= t(:name)
|
||||
%th{class: 'col-xs-2'}
|
||||
= t(:registrant)
|
||||
%th{class: 'col-xs-2'}
|
||||
= t(:valid_to)
|
||||
%th{class: 'col-xs-2'}
|
||||
= t(:registrar)
|
||||
%tbody
|
||||
- @domains.each do |x|
|
||||
%tr
|
||||
%td= link_to(x, admin_domain_path(x))
|
||||
%td
|
||||
- if x.registrant
|
||||
= link_to(x.registrant, [:admin, x.registrant])
|
||||
|
||||
= paginate @paginatable_array
|
||||
%td= l(x.valid_to, format: :short)
|
||||
%td= link_to(x.registrar, admin_registrar_path(x.registrar)) if x.registrar
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
- content_for :actions do
|
||||
-# = link_to(t(:edit), edit_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
-# class: 'btn btn-default')
|
||||
-# = link_to(t(:renew), renew_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
-# class: 'btn btn-default')
|
||||
-# = link_to(t(:delete), delete_registrar_domains_path(domain_name: params[:domain_name]),
|
||||
-# class: 'btn btn-default')
|
||||
= render 'shared/title', name: truncate(@data.css('name').text)
|
||||
|
||||
.row
|
||||
.col-sm-12
|
||||
- if @data.css('result').first['code'] == '1000'
|
||||
.row
|
||||
.col-md-12= render 'registrar/domains/partials/general'
|
||||
.row
|
||||
.col-md-12= render 'registrar/domains/partials/contacts'
|
||||
.row
|
||||
.col-md-12= render 'registrar/domains/partials/statuses'
|
||||
.row
|
||||
.col-md-12= render 'registrar/domains/partials/nameservers'
|
||||
.row
|
||||
.col-md-12= render 'registrar/domains/partials/dnskeys'
|
||||
- else
|
||||
.row
|
||||
.col-sm-6
|
||||
%h1= t(:not_found)
|
|
@ -4,11 +4,3 @@
|
|||
%hr
|
||||
= link_to '/registrant/id', method: :post do
|
||||
= image_tag 'id_card.gif'
|
||||
|
||||
%hr
|
||||
-# = link_to '/regisrant/login/mid' do
|
||||
-# = image_tag 'mid.gif'
|
||||
-# = link_to '/registrant/login/id' do
|
||||
-# = image_tag 'id_card.gif'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue