From df78f6bca52bb017109ae738233c878fe416824d Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Tue, 27 Oct 2020 17:25:39 +0100
Subject: [PATCH] Add option to use landscape print template

---
 aleksis/core/templates/core/base_print.html | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/aleksis/core/templates/core/base_print.html b/aleksis/core/templates/core/base_print.html
index a229d723e..b0daf883c 100644
--- a/aleksis/core/templates/core/base_print.html
+++ b/aleksis/core/templates/core/base_print.html
@@ -26,7 +26,11 @@
 <main class="sheet infinite">
   <div style="margin-top: -10mm;"></div>
 
+{% if landscape %}
+  <table>
+{% else %}
   <table class="print-layout-table">
+{% endif %}
     <thead>
     <tr class="no-border">
       <td class="print-layout-td">
@@ -39,7 +43,11 @@
     <tr class="no-border">
       <td class="print-layout-td">
         <div class="content">
+        {% if landscape %}
+          <header style="width: 100%">
+        {% else %}
           <header>
+        {% endif %}
             <div id="print-header" class="row">
               <div class="col s6 logo">
                 {% static "img/aleksis-banner.svg" as aleksis_banner %}
-- 
GitLab