Browse Source

footer auf Kursliste

hmt 4 years ago
parent
commit
3fe38bb305
2 changed files with 9 additions and 1 deletions
  1. 1 1
      build/global.css
  2. 8 0
      src/components/Print/Kurs.svelte

+ 1 - 1
build/global.css

@@ -141,7 +141,7 @@ Link: https://www.w3.org/TR/css3-page/#using-named-pages
   grid-area: main;
 }
 
-.footer {
+.grid-footer {
   grid-area: footer;
   align-self: end;
 }

+ 8 - 0
src/components/Print/Kurs.svelte

@@ -53,5 +53,13 @@
         </tbody>
       </table>
     </div>
+    <div class="grid-footer">
+        {$schueler[0].klasse} – {$schueler[0].kurs} – {$schueler[0].kurs_lehrer}
+        – {new Date().toLocaleDateString('de', {
+          day: '2-digit',
+          month: '2-digit',
+          year: 'numeric'
+        })}
+    </div>
   </div>
 {/each}