summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-07-04 16:55:43 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-07-05 21:01:31 +0300
commit6446b75b9e358bf3c7969b7df302410b39249948 (patch)
tree3c4aa961a06836822880e80a3c42df1f5d0ea9af
parent4a98d92489b3c404ae1d7320c27cadd9446fa5bf (diff)
downloadsubsurface-6446b75b9e358bf3c7969b7df302410b39249948.tar.gz
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>
-rw-r--r--printing_templates/one_dive.html10
-rw-r--r--printing_templates/two_dives.html7
2 files changed, 13 insertions, 4 deletions
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 }};
+ }
</style>
</head>
<body>
diff --git a/printing_templates/two_dives.html b/printing_templates/two_dives.html
index 9868bfd11..b0ad9ba15 100644
--- a/printing_templates/two_dives.html
+++ b/printing_templates/two_dives.html
@@ -5,11 +5,13 @@
background-color: white;
padding: 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 {
- font-size: 1.2vw;
+ font-size: {{ template_options.font_size }}vw;
float: left;
}
@@ -91,6 +93,7 @@
overflow: hidden !important;
text-overflow: ellipsis;
max-height: 10.3vw;
+ line-height: {{ template_options.line_spacing }};
}
#footer {