From 6446b75b9e358bf3c7969b7df302410b39249948 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Sat, 4 Jul 2015 16:55:43 +0200 Subject: 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 Signed-off-by: Lubomir I. Ivanov --- printing_templates/one_dive.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'printing_templates/one_dive.html') diff --git a/printing_templates/one_dive.html b/printing_templates/one_dive.html index 754dc85bc..87b2976e0 100644 --- a/printing_templates/one_dive.html +++ b/printing_templates/one_dive.html @@ -5,12 +5,14 @@ background-color: white; padding: 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 { - font-size: 1.2vw; float: left; + font-size: {{ template_options.font_size }}vw; } table { @@ -84,6 +86,10 @@ margin: 1.5%; float: left; } + + .textArea { + line-height: {{ template_options.line_spacing }}; + } -- cgit v1.2.3-70-g09d2