mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Fix pdf issues
This commit is contained in:
parent
67152b6304
commit
6a46041074
3 changed files with 45 additions and 16 deletions
|
@ -107,24 +107,43 @@
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#header {
|
||||||
|
position: relative;
|
||||||
|
min-height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 106px;
|
||||||
|
height: 102px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-content {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#footer {
|
#footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
width: 99%;
|
width: 99%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
/%style{type:"text/css"}
|
/%style{type:"text/css"}
|
||||||
/ = Rails.application.assets.find_asset('shared/pdf').to_s
|
/ = Rails.application.assets.find_asset('shared/pdf').to_s
|
||||||
/ = stylesheet_link_tag 'shared/pdf', media: 'all'
|
/ = stylesheet_link_tag 'shared/pdf', media: 'all'
|
||||||
/ = stylesheet_link_tag 'shared/pdf', media: 'all'
|
/ = stylesheet_link_tag 'shared/pdf', media: 'all'
|
||||||
%body
|
%body
|
||||||
.container
|
.container
|
||||||
.row
|
#header.row
|
||||||
.col-sm-6.left
|
.col-sm-6.left
|
||||||
%h1
|
#header-content
|
||||||
= t(:invoice_no, no: @invoice.id)
|
%h1
|
||||||
|
= t(:invoice_no, no: @invoice.id)
|
||||||
.col-sm-6.right
|
.col-sm-6.right
|
||||||
%h1
|
%img{src: "#{Rails.root}/public/eis-logo-black-et.png"}
|
||||||
= image_tag('eis-logo-black-et.png')
|
|
||||||
.clear
|
.clear
|
||||||
%hr
|
%hr
|
||||||
.row
|
.row
|
||||||
|
@ -145,6 +164,9 @@
|
||||||
- else
|
- else
|
||||||
%dd{class: 'text-danger'}= t('unpaid')
|
%dd{class: 'text-danger'}= t('unpaid')
|
||||||
|
|
||||||
|
%dt= t('issuer')
|
||||||
|
%dd= @invoice.seller_contact_name
|
||||||
|
|
||||||
%dt= t('payment_term')
|
%dt= t('payment_term')
|
||||||
%dd= t(@invoice.payment_term)
|
%dd= t(@invoice.payment_term)
|
||||||
|
|
||||||
|
@ -154,8 +176,9 @@
|
||||||
|
|
||||||
%dt= t('reference_no')
|
%dt= t('reference_no')
|
||||||
%dd= @invoice.reference_no
|
%dd= @invoice.reference_no
|
||||||
|
|
||||||
.col-md-6.right
|
.col-md-6.right
|
||||||
%h4= t('buyer')
|
%h4= t('client')
|
||||||
%hr
|
%hr
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt= t('name')
|
%dt= t('name')
|
||||||
|
@ -164,20 +187,25 @@
|
||||||
%dt= t('reg_no')
|
%dt= t('reg_no')
|
||||||
%dd= @invoice.buyer_reg_no
|
%dd= @invoice.buyer_reg_no
|
||||||
|
|
||||||
%dt= t('address')
|
- if @invoice.buyer_address.present?
|
||||||
%dd= @invoice.buyer_address
|
%dt= t('address')
|
||||||
|
%dd= @invoice.buyer_address
|
||||||
|
|
||||||
%dt= t('country')
|
- if @invoice.buyer_country.present?
|
||||||
%dd= @invoice.buyer_country
|
%dt= t('country')
|
||||||
|
%dd= @invoice.buyer_country
|
||||||
|
|
||||||
%dt= t('phone')
|
- if @invoice.buyer_phone.present?
|
||||||
%dd= @invoice.buyer_phone
|
%dt= t('phone')
|
||||||
|
%dd= @invoice.buyer_phone
|
||||||
|
|
||||||
%dt= t('url')
|
- if @invoice.buyer_phone.present?
|
||||||
%dd= @invoice.buyer_url
|
%dt= t('url')
|
||||||
|
%dd= @invoice.buyer_url
|
||||||
|
|
||||||
%dt= t('email')
|
- if @invoice.buyer_email.present?
|
||||||
%dd= @invoice.buyer_email
|
%dt= t('email')
|
||||||
|
%dd= @invoice.buyer_email
|
||||||
|
|
||||||
|
|
||||||
/ = render 'registrar/invoices/partials/details'
|
/ = render 'registrar/invoices/partials/details'
|
||||||
|
|
|
@ -728,3 +728,4 @@ en:
|
||||||
back_to_invoice: 'Back to invoice'
|
back_to_invoice: 'Back to invoice'
|
||||||
invoice_forwared: 'Invoice forwarded'
|
invoice_forwared: 'Invoice forwarded'
|
||||||
failed_to_forward_invoice: 'Failed to forward invoice'
|
failed_to_forward_invoice: 'Failed to forward invoice'
|
||||||
|
client: 'Client'
|
||||||
|
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue