138 lines
2.5 KiB
Plaintext
138 lines
2.5 KiB
Plaintext
!!!
|
|
%html
|
|
%head
|
|
|
|
%meta{:"http-equiv" => "Content-Type", :content=>"text/html; charset=UTF-8"}
|
|
%meta{:name=>"viewport", :content=>"width=device-width,initial-scale=1"}
|
|
<link href="https://fonts.googleapis.com/css?family=Cousine:400,700" rel="stylesheet">
|
|
:scss
|
|
body{
|
|
|
|
padding :0px;
|
|
margin:0px;
|
|
background-color: transparent;
|
|
-webkit-text-size-adjust: none;
|
|
height:100%;
|
|
width:100%;
|
|
padding:0;
|
|
margin:0;
|
|
|
|
font-family: Arial, Sans-serif;
|
|
|
|
}
|
|
html{
|
|
height:100%;
|
|
width:100%;
|
|
padding:0;
|
|
margin:0
|
|
|
|
}
|
|
|
|
#main{
|
|
//margin-left:4.2cm;
|
|
position:relative;
|
|
border:1px solid black;
|
|
}
|
|
td, th{
|
|
//border:1px solid black;
|
|
padding:5px;
|
|
vertical-align:top;
|
|
|
|
}
|
|
th{
|
|
font-weight:normal;
|
|
border-bottom:1px solid gray;
|
|
text-align:left;
|
|
}
|
|
|
|
td{
|
|
border-bottom:1px solid rgba(0,0,0,0.1);
|
|
|
|
p{
|
|
margin:5px 0;
|
|
}
|
|
|
|
}
|
|
|
|
table{
|
|
border-collapse:collapse;
|
|
|
|
|
|
|
|
}
|
|
|
|
tr{
|
|
page-break-inside:avoid;
|
|
|
|
}
|
|
|
|
#bottom{
|
|
page-break-inside:avoid;
|
|
|
|
}
|
|
.right{
|
|
text-align:right;
|
|
|
|
}
|
|
.line p{
|
|
margin:0px;
|
|
}
|
|
.description{
|
|
padding-top:2pt;
|
|
display:block;
|
|
|
|
}
|
|
|
|
.bot_separate{
|
|
height:50pt;
|
|
|
|
}
|
|
|
|
.upcase{
|
|
|
|
text-transform:uppercase;
|
|
}
|
|
|
|
h3{
|
|
|
|
font-size:1em;
|
|
margin-bottom:5px;
|
|
font-weight:normal;
|
|
}
|
|
|
|
|
|
|
|
-if params[:id] == "multiple" or (@bl and @p_document and @p_document.p_sheet_line)
|
|
:scss
|
|
body{
|
|
font-size:9pt;
|
|
font-family:Cousine;
|
|
}
|
|
-else
|
|
:scss
|
|
body{
|
|
font-size:9pt;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%body
|
|
|
|
=# @p_document.totals[:total_ttc]
|
|
=# @p_document.th_paid_completed?
|
|
|
|
-if params[:id] == "multiple"
|
|
-@p_documents.each do |p_document|
|
|
=render :partial => "admin/p_documents/bl", :locals => {:p_document => p_document}
|
|
|
|
-elsif @bl and @p_document.p_sheet_line
|
|
=render :partial => "admin/p_documents/bl", :locals => {:p_document => @p_document}
|
|
-else
|
|
=render :partial => "admin/p_documents/general"
|
|
|
|
|
|
|
|
|
|
|