mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Improve pdf style
This commit is contained in:
parent
318dec4f52
commit
b909578c2c
1 changed files with 138 additions and 179 deletions
|
@ -11,24 +11,10 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-md-6 {
|
|
||||||
width: 49%;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.col-xs-4 {
|
.col-xs-4 {
|
||||||
width: 33%;
|
width: 33%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-xs-2 {
|
|
||||||
width: 16%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.col-md-3 {
|
|
||||||
width: 24%;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
@ -41,10 +27,6 @@
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-right {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
dt {
|
dt {
|
||||||
float: left;
|
float: left;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
@ -88,10 +70,6 @@
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-border {
|
|
||||||
border: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
height: 1px;
|
height: 1px;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
@ -104,7 +82,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.pull-down {
|
.pull-down {
|
||||||
margin-top: 50px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
|
@ -122,12 +100,6 @@
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
|
||||||
position: absolute;
|
|
||||||
bottom: 0px;
|
|
||||||
width: 99%;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
@ -137,19 +109,15 @@
|
||||||
#header.row
|
#header.row
|
||||||
.col-sm-6.left
|
.col-sm-6.left
|
||||||
#header-content
|
#header-content
|
||||||
%h1
|
%h1= @domain.name
|
||||||
= @domain.name
|
|
||||||
.col-sm-6.right
|
.col-sm-6.right
|
||||||
%img{src: "#{Rails.root}/public/eis-logo-black-et.png"}
|
%img{src: "#{Rails.root}/public/eis-logo-black-et.png"}
|
||||||
.clear
|
.clear
|
||||||
%hr
|
%hr
|
||||||
.row
|
.row
|
||||||
.col-md-6
|
.col-sm-6.left
|
||||||
.panel.panel-default
|
%h3= t(:general)
|
||||||
.panel-heading
|
%hr
|
||||||
%h3.panel-title
|
|
||||||
= t(:general)
|
|
||||||
.panel-body
|
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt= t(:name)
|
%dt= t(:name)
|
||||||
%dd= @domain.name
|
%dd= @domain.name
|
||||||
|
@ -169,11 +137,9 @@
|
||||||
%dd= l @domain.force_delete_date
|
%dd= l @domain.force_delete_date
|
||||||
%dt= t('.locked_by_registrant_at')
|
%dt= t('.locked_by_registrant_at')
|
||||||
%dd= l(@domain.locked_by_registrant_at)
|
%dd= l(@domain.locked_by_registrant_at)
|
||||||
.col-md-6
|
.col-sm-6.right
|
||||||
.panel.panel-default
|
%h3= t('activerecord.models.registrant')
|
||||||
.panel-heading
|
%hr
|
||||||
%h3.panel-title= t('activerecord.models.registrant')
|
|
||||||
.panel-body
|
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt.left_25= t(:name)
|
%dt.left_25= t(:name)
|
||||||
%dd.left_25= @domain.registrant
|
%dd.left_25= @domain.registrant
|
||||||
|
@ -189,15 +155,14 @@
|
||||||
|
|
||||||
%dt.left_25= t(:phone)
|
%dt.left_25= t(:phone)
|
||||||
%dd.left_25= @domain.registrant.phone
|
%dd.left_25= @domain.registrant.phone
|
||||||
.row
|
.clear
|
||||||
|
.row.pull-down
|
||||||
.col-md-12
|
.col-md-12
|
||||||
- tech_contacts_invalid = @domain.errors.include?(:tech_contacts)
|
- tech_contacts_invalid = @domain.errors.include?(:tech_contacts)
|
||||||
- panel_class = tech_contacts_invalid ? 'panel-danger' : 'panel-default'
|
%h3= t(:tech_contacts)
|
||||||
.panel{class: panel_class}
|
%hr
|
||||||
.panel-heading.clearfix
|
|
||||||
= t(:tech_contacts)
|
|
||||||
.table-responsive
|
.table-responsive
|
||||||
%table.table.table-hover.table-bordered.table-condensed
|
%table.table.table-hover.table-condensed
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-4'}= t(:name)
|
%th{class: 'col-xs-4'}= t(:name)
|
||||||
|
@ -217,12 +182,10 @@
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
- admin_contacts_invalid = @domain.errors.include?(:admin_contacts)
|
- admin_contacts_invalid = @domain.errors.include?(:admin_contacts)
|
||||||
- panel_class = admin_contacts_invalid ? 'panel-danger' : 'panel-default'
|
%h3= t(:admin_contacts)
|
||||||
.panel{class: panel_class}
|
%hr
|
||||||
.panel-heading.clearfix
|
|
||||||
= t(:admin_contacts)
|
|
||||||
.table-responsive
|
.table-responsive
|
||||||
%table.table.table-hover.table-bordered.table-condensed
|
%table.table.table-hover.table-condensed
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-4'}= t(:name)
|
%th{class: 'col-xs-4'}= t(:name)
|
||||||
|
@ -239,13 +202,13 @@
|
||||||
- @domain.errors.messages[:admin_contacts].each do |x|
|
- @domain.errors.messages[:admin_contacts].each do |x|
|
||||||
%tr
|
%tr
|
||||||
%td{colspan: 4}= x
|
%td{colspan: 4}= x
|
||||||
.row
|
.clear
|
||||||
|
.row.pull-down
|
||||||
.col-md-12
|
.col-md-12
|
||||||
#domain_statuses.panel.panel-default
|
%h3= t(:statuses)
|
||||||
.panel-heading.clearfix
|
%hr
|
||||||
= t(:statuses)
|
|
||||||
.table-responsive
|
.table-responsive
|
||||||
%table.table.table-hover.table-bordered.table-condensed
|
%table.table.table-hover.table-condensed
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-6'}= t(:status)
|
%th{class: 'col-xs-6'}= t(:status)
|
||||||
|
@ -253,19 +216,15 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @domain.statuses.each do |status|
|
- @domain.statuses.each do |status|
|
||||||
%tr
|
%tr
|
||||||
%td
|
%td= status
|
||||||
- if @domain.pending_json.present? && [DomainStatus::PENDING_UPDATE, DomainStatus::PENDING_DELETE].include?(status)
|
|
||||||
= link_to status, admin_domain_domain_versions_path(@domain.id)
|
|
||||||
- else
|
|
||||||
= status
|
|
||||||
%td= @domain.status_notes[status]
|
%td= @domain.status_notes[status]
|
||||||
.row
|
.clear
|
||||||
|
.row.pull-down
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.panel.panel-default
|
%h3= t(:nameservers)
|
||||||
.panel-heading.clearfix
|
%hr
|
||||||
= t(:nameservers)
|
|
||||||
.table-responsive
|
.table-responsive
|
||||||
%table.table.table-hover.table-bordered.table-condensed
|
%table.table.table-hover.table-condensed
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-4'}= t(:hostname)
|
%th{class: 'col-xs-4'}= t(:hostname)
|
||||||
|
@ -277,13 +236,13 @@
|
||||||
%td= x
|
%td= x
|
||||||
%td= x.ipv4
|
%td= x.ipv4
|
||||||
%td= x.ipv6
|
%td= x.ipv6
|
||||||
.row
|
.clear
|
||||||
|
.row.pull-down
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.panel.panel-default
|
%h3= t(:dnskeys)
|
||||||
.panel-heading.clearfix
|
%hr
|
||||||
= t(:dnskeys)
|
|
||||||
.table-responsive
|
.table-responsive
|
||||||
%table.table.table-hover.table-bordered.table-condensed
|
%table.table.table-hover.table-condensed
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-1'}= t(:flag)
|
%th{class: 'col-xs-1'}= t(:flag)
|
||||||
|
@ -297,13 +256,13 @@
|
||||||
%td= x.protocol
|
%td= x.protocol
|
||||||
%td= x.alg
|
%td= x.alg
|
||||||
%td= x.public_key
|
%td= x.public_key
|
||||||
.row
|
.clear
|
||||||
|
.row.pull-down
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.panel.panel-default
|
%h3= t(:legal_documents)
|
||||||
.panel-heading.clearfix
|
%hr
|
||||||
= t(:legal_documents)
|
|
||||||
.table-responsive
|
.table-responsive
|
||||||
%table.table.table-hover.table-bordered.table-condensed
|
%table.table.table-hover.table-condensed
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th{class: 'col-xs-8'}= t(:created_at)
|
%th{class: 'col-xs-8'}= t(:created_at)
|
||||||
|
@ -311,5 +270,5 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @domain.legal_documents.each do |x|
|
- @domain.legal_documents.each do |x|
|
||||||
%tr
|
%tr
|
||||||
%td= link_to(x.created_at, [:admin, x])
|
%td= x.created_at
|
||||||
%td= x.document_type
|
%td= x.document_type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue