Printing: edit templates to show template options dynamically

Template styles must refere to Grantlee fields to be replaced with
user selected settings.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Gehad elrobey 2015-07-04 16:55:43 +02:00 committed by Lubomir I. Ivanov
parent 4a98d92489
commit 6446b75b9e
2 changed files with 13 additions and 4 deletions

View file

@ -5,12 +5,14 @@
background-color: white; background-color: white;
padding: 0; padding: 0;
margin: 0; margin: 0;
font-size: 1.2vw; font-size: {{ template_options.font_size }}vw;
line-height: {{ template_options.line_spacing }};
font-family: {{ template_options.font }};
} }
h1 { h1 {
font-size: 1.2vw;
float: left; float: left;
font-size: {{ template_options.font_size }}vw;
} }
table { table {
@ -84,6 +86,10 @@
margin: 1.5%; margin: 1.5%;
float: left; float: left;
} }
.textArea {
line-height: {{ template_options.line_spacing }};
}
</style> </style>
</head> </head>
<body> <body>

View file

@ -5,11 +5,13 @@
background-color: white; background-color: white;
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
font-size: 1.2vw; font-size: {{ template_options.font_size }}vw;
line-height: {{ template_options.line_spacing }};
font-family: {{ template_options.font }};
} }
h1 { h1 {
font-size: 1.2vw; font-size: {{ template_options.font_size }}vw;
float: left; float: left;
} }
@ -91,6 +93,7 @@
overflow: hidden !important; overflow: hidden !important;
text-overflow: ellipsis; text-overflow: ellipsis;
max-height: 10.3vw; max-height: 10.3vw;
line-height: {{ template_options.line_spacing }};
} }
#footer { #footer {