Add landscape print template. Closes #311 #1984

Merged
hansegucker merged 1 commit from add-landscape-print-template into master 2020-10-27 17:31:20 +01:00
Owner
No description provided.
Owner

It may be good to not just copy everything, but provide common used templates for portrait and landscape templates. I mean there is only one line difference – if I saw it correctly.

It may be good to not just copy everything, but provide common used templates for portrait and landscape templates. I mean there is only one line difference – if I saw it correctly.
Owner

marked as a Work In Progress

marked as a **Work In Progress**
Author
Owner
diff -u base_print.html base_print_landscape.html                                                                                                                      ✔ 
--- base_print.html     2020-09-08 21:37:27.408649565 +0200
+++ base_print_landscape.html   2020-09-09 18:49:34.766674574 +0200
@@ -22,11 +22,11 @@
   {% block extra_head %}{% endblock %}
 </head>
 
-<body class="A4 print-body">
+<body class="A4 print-body landscape">
 <main class="sheet infinite">
   <div style="margin-top: -10mm;"></div>
 
-  <table class="print-layout-table">
+  <table>
     <thead>
     <tr class="no-border">
       <td class="print-layout-td">
@@ -37,9 +37,9 @@
 
     <tbody>
     <tr class="no-border">
-      <td class="print-layout-td">
+      <td>
         <div class="content">
-          <header>
+          <header style="width: 100%">
             <div id="print-header" class="row">
               <div class="col s6 logo">
                 {% static "img/aleksis-banner.svg" as aleksis_banner %}
``` diff -u base_print.html base_print_landscape.html  ✔ --- base_print.html 2020-09-08 21:37:27.408649565 +0200 +++ base_print_landscape.html 2020-09-09 18:49:34.766674574 +0200 @@ -22,11 +22,11 @@ {% block extra_head %}{% endblock %} </head> -<body class="A4 print-body"> +<body class="A4 print-body landscape"> <main class="sheet infinite"> <div style="margin-top: -10mm;"></div> - <table class="print-layout-table"> + <table> <thead> <tr class="no-border"> <td class="print-layout-td"> @@ -37,9 +37,9 @@ <tbody> <tr class="no-border"> - <td class="print-layout-td"> + <td> <div class="content"> - <header> + <header style="width: 100%"> <div id="print-header" class="row"> <div class="col s6 logo"> {% static "img/aleksis-banner.svg" as aleksis_banner %} ```
Author
Owner

resolved all threads

resolved all threads
Author
Owner

unmarked as a Work In Progress

unmarked as a **Work In Progress**
Owner

marked as a Work In Progress

marked as a **Work In Progress**
Author
Owner

added 104 commits

  • 10b6f475...518a9471 - 103 commits from branch master
  • 389fb69b - Merge branch 'master' into add-landscape-print-template

Compare with previous version

added 104 commits <ul><li>10b6f475...518a9471 - 103 commits from branch <code>master</code></li><li>389fb69b - Merge branch &#39;master&#39; into add-landscape-print-template</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/339/diffs?diff_id=3534&start_sha=10b6f4759bba23407726425164b1bf89b0e9b2bb)
Owner

The dev meeting decided some time ago that the diff is too small to justify just copying a file ;-)

The dev meeting decided some time ago that the diff is too small to justify just copying a file ;-)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

added 1 commit

  • a7151757 - Remove useless template

Compare with previous version

added 1 commit <ul><li>a7151757 - Remove useless template</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/339/diffs?diff_id=3536&start_sha=389fb69bc546528f037e99e7119e5ee99db6bd30)
Author
Owner

added 1 commit

  • df78f6bc - Add option to use landscape print template

Compare with previous version

added 1 commit <ul><li>df78f6bc - Add option to use landscape print template</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS/-/merge_requests/339/diffs?diff_id=3537&start_sha=a715175797d2b0568e08c62b5639ec3696a6a253)
Author
Owner

unmarked as a Work In Progress

unmarked as a **Work In Progress**
hansegucker scheduled this pull request to auto merge when all checks succeed 2020-10-27 17:29:05 +01:00
Author
Owner

changed title from Add landscape print template to Add landscape print template{+. Closes #311+}

changed title from **Add landscape print template** to **Add landscape print template{+. Closes #311+}**
hansegucker canceled auto merging this pull request when all checks succeed 2020-10-27 17:31:12 +01:00
Owner

mentioned in commit da80a66898

mentioned in commit da80a66898c21caeb56e003113354ddaf82a611b
Owner

Please only wrap the class attribute value.

Please only wrap the class attribute value.
Owner

Inline CSS is forbidden.

Inline CSS is forbidden.
Owner

Also, this looks semantically wrong. Why shouldn't the header be full width in portrait mode?

Also, this looks semantically wrong. Why shouldn't the header be full width in portrait mode?
Owner

@hansegucker , @debdolph Please either fix immediately or revert the MR

@hansegucker , @debdolph Please either fix immediately or revert the MR
Owner

Also, this looks semantically wrong. It seems that both portrait and landscape print tables are a print layout table?

Also, this looks semantically wrong. It seems that both portrait and landscape print tables are a print layout table?
Owner

mentioned in commit e6e683ec25

mentioned in commit e6e683ec2544f961778d3e50d91672be85b7ff4d
Owner

mentioned in merge request !2022

mentioned in merge request !2022
Owner

I will revert this MR at 20:00 CET if the listed issues are not fixed.

I will revert this MR at 20:00 CET if the listed issues are not fixed.
Owner

As you can see, this has been reverted already.

As you can see, this has been reverted already.
Owner

Oh, it's not noted in the MR change history? Hmm...

Oh, it's not noted in the MR change history? Hmm...
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!1984
No description provided.