diff --git a/src/wireviz/templates/bom.html b/src/wireviz/templates/bom.html
index dbf7ef3..b019d57 100644
--- a/src/wireviz/templates/bom.html
+++ b/src/wireviz/templates/bom.html
@@ -3,16 +3,17 @@
position: absolute;
bottom: {{ (titleblock_rows + 1) * 4.25 }}mm;
right: 0;
+ width:180mm;
}
.A3 #bom, .A2 #bom { /* BOM to the left of title block */
position: absolute;
+ {% if bom_updated_position %}
+ {{ bom_updated_position }}
+ {% else %}
bottom: 0mm;
left: 0mm;
- }
-
- #bom table {
- width:180mm;
+ {% endif %}
}
#bom tr {
diff --git a/src/wireviz/templates/din-6771.html b/src/wireviz/templates/din-6771.html
index e576a47..a2832ad 100644
--- a/src/wireviz/templates/din-6771.html
+++ b/src/wireviz/templates/din-6771.html
@@ -1,57 +1,7 @@
-
-
-
-
-
-
- {{ description }}
-
-
-
- {{ diagram }}
-
-
- {% if show_notes %}
- {{ notes }}
- {% endif %}
-
- {% if show_bom %}
- {{ bom }}
- {% endif %}
-
- {{ titleblock }}
-
-
-
-
+ {% if show_bom %}
+ {{ bom }}
+ {% endif %}
+{% endblock %}
diff --git a/src/wireviz/templates/notes.html b/src/wireviz/templates/notes.html
index a9f2324..01ff507 100644
--- a/src/wireviz/templates/notes.html
+++ b/src/wireviz/templates/notes.html
@@ -12,15 +12,15 @@
.A3 #notes, .A2 #notes { /* NOTES on top of title block */
position: absolute;
{% if notes_on_right %}
- bottom: {{ (titleblock_rows + 1) * 4.25 }}mm;
right: 0;
+ bottom: {{ (titleblock_rows + 1) * 4.25 }}mm;
{% else %}
+ left: 0;
{% if show_bom %}
bottom: {{ (bom_rows + 1) * 4.25 }}mm;
{% else %}
bottom: 0;
{% endif %}
- left: 0;
{% endif %}
}
diff --git a/src/wireviz/templates/page.html b/src/wireviz/templates/page.html
new file mode 100644
index 0000000..61ab054
--- /dev/null
+++ b/src/wireviz/templates/page.html
@@ -0,0 +1,84 @@
+
+
+
+
+
+ {% block frame_content %} {% endblock %}
+ {{ titleblock }}
+
+
+
+
diff --git a/src/wireviz/templates/titleblock.html b/src/wireviz/templates/titleblock.html
index c4edcee..3909222 100644
--- a/src/wireviz/templates/titleblock.html
+++ b/src/wireviz/templates/titleblock.html
@@ -1,4 +1,8 @@
+{% endblock %}
+
+{% block frame_content %}
+