Improve pdf style

This commit is contained in:
Thiago Youssef 2022-06-28 11:29:25 -03:00
parent 318dec4f52
commit b909578c2c

View file

@ -11,24 +11,10 @@
}
.col-md-6 {
width: 49%;
display: inline-block;
}
.col-xs-4 {
width: 33%;
}
.col-xs-2 {
width: 16%;
}
.col-md-3 {
width: 24%;
display: inline-block;
}
.left {
float: left;
}
@ -41,10 +27,6 @@
float: right;
}
.text-right {
text-align: right;
}
dt {
float: left;
width: 100px;
@ -88,10 +70,6 @@
padding: 6px;
}
.no-border {
border: 0px;
}
hr {
height: 1px;
border: 0;
@ -104,7 +82,7 @@
}
.pull-down {
margin-top: 50px;
margin-top: 30px;
}
#header {
@ -122,12 +100,6 @@
bottom: 0;
}
#footer {
position: absolute;
bottom: 0px;
width: 99%;
}
h1 {
margin-bottom: 5px;
}
@ -137,19 +109,15 @@
#header.row
.col-sm-6.left
#header-content
%h1
= @domain.name
%h1= @domain.name
.col-sm-6.right
%img{src: "#{Rails.root}/public/eis-logo-black-et.png"}
.clear
%hr
.row
.col-md-6
.panel.panel-default
.panel-heading
%h3.panel-title
= t(:general)
.panel-body
.col-sm-6.left
%h3= t(:general)
%hr
%dl.dl-horizontal
%dt= t(:name)
%dd= @domain.name
@ -169,11 +137,9 @@
%dd= l @domain.force_delete_date
%dt= t('.locked_by_registrant_at')
%dd= l(@domain.locked_by_registrant_at)
.col-md-6
.panel.panel-default
.panel-heading
%h3.panel-title= t('activerecord.models.registrant')
.panel-body
.col-sm-6.right
%h3= t('activerecord.models.registrant')
%hr
%dl.dl-horizontal
%dt.left_25= t(:name)
%dd.left_25= @domain.registrant
@ -189,15 +155,14 @@
%dt.left_25= t(:phone)
%dd.left_25= @domain.registrant.phone
.row
.clear
.row.pull-down
.col-md-12
- tech_contacts_invalid = @domain.errors.include?(:tech_contacts)
- panel_class = tech_contacts_invalid ? 'panel-danger' : 'panel-default'
.panel{class: panel_class}
.panel-heading.clearfix
= t(:tech_contacts)
%h3= t(:tech_contacts)
%hr
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%table.table.table-hover.table-condensed
%thead
%tr
%th{class: 'col-xs-4'}= t(:name)
@ -217,12 +182,10 @@
.row
.col-md-12
- admin_contacts_invalid = @domain.errors.include?(:admin_contacts)
- panel_class = admin_contacts_invalid ? 'panel-danger' : 'panel-default'
.panel{class: panel_class}
.panel-heading.clearfix
= t(:admin_contacts)
%h3= t(:admin_contacts)
%hr
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%table.table.table-hover.table-condensed
%thead
%tr
%th{class: 'col-xs-4'}= t(:name)
@ -239,13 +202,13 @@
- @domain.errors.messages[:admin_contacts].each do |x|
%tr
%td{colspan: 4}= x
.row
.clear
.row.pull-down
.col-md-12
#domain_statuses.panel.panel-default
.panel-heading.clearfix
= t(:statuses)
%h3= t(:statuses)
%hr
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%table.table.table-hover.table-condensed
%thead
%tr
%th{class: 'col-xs-6'}= t(:status)
@ -253,19 +216,15 @@
%tbody
- @domain.statuses.each do |status|
%tr
%td
- 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= status
%td= @domain.status_notes[status]
.row
.clear
.row.pull-down
.col-md-12
.panel.panel-default
.panel-heading.clearfix
= t(:nameservers)
%h3= t(:nameservers)
%hr
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%table.table.table-hover.table-condensed
%thead
%tr
%th{class: 'col-xs-4'}= t(:hostname)
@ -277,13 +236,13 @@
%td= x
%td= x.ipv4
%td= x.ipv6
.row
.clear
.row.pull-down
.col-md-12
.panel.panel-default
.panel-heading.clearfix
= t(:dnskeys)
%h3= t(:dnskeys)
%hr
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%table.table.table-hover.table-condensed
%thead
%tr
%th{class: 'col-xs-1'}= t(:flag)
@ -297,13 +256,13 @@
%td= x.protocol
%td= x.alg
%td= x.public_key
.row
.clear
.row.pull-down
.col-md-12
.panel.panel-default
.panel-heading.clearfix
= t(:legal_documents)
%h3= t(:legal_documents)
%hr
.table-responsive
%table.table.table-hover.table-bordered.table-condensed
%table.table.table-hover.table-condensed
%thead
%tr
%th{class: 'col-xs-8'}= t(:created_at)
@ -311,5 +270,5 @@
%tbody
- @domain.legal_documents.each do |x|
%tr
%td= link_to(x.created_at, [:admin, x])
%td= x.created_at
%td= x.document_type