burningTyger 5 lat temu
rodzic
commit
2d8fc1ba1a
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 2 2
      components/projektwoche-tn-listen.svelte
  2. 1 1
      Übersicht.svelte

+ 2 - 2
components/projektwoche-tn-listen.svelte

@@ -2,7 +2,7 @@
   <div class="page" orientation="portrait" size="A4">
     <div class="main">
       <h4>{p.titel}</h4>
-      <h5>Teilnehmerliste</h5>
+      <h5>Teilnehmerliste (unter 18 mit ⚠ gekennzeichnet)</h5>
       <table class="table tabele-narrow">
         <thead><th></th><th>Name</th><th>Anwesend/Abgemeldet</th></thead>
         {#each Object.entries(schueler) as [klasse, gruppe]}
@@ -10,7 +10,7 @@
             <tr>
               <td>{t.woche === p.id ? 'Mo-Do':''}{t.mo_di === p.id ? 'Mo/Di':''} {t.mi_do === p.id ? 'Mi/Do':''}</td>
               <td>{t.Name}, {t.Vorname} – {t.Klasse}</td>
-              <td></td>
+              <td>{t.Volljaehrig === '+' ? '':'⚠'}</td>
             </tr>
           {/each}
         {/each}

+ 1 - 1
Übersicht.svelte

@@ -93,7 +93,7 @@
   const mysql_connection = mysql.createConnection(knexConfig.connection)
   mysql_connection.connect()
   function hole_lokale_schueler () {
-    mysql_connection.query(`SELECT ID AS id, Name, Vorname, Klasse,
+    mysql_connection.query(`SELECT ID AS id, Name, Vorname, Klasse, Volljaehrig,
                               CONCAT (LOWER (Vorname), ' ', LOWER (Name)) AS vollname
                             FROM schueler
                             WHERE Status = 2 AND Geloescht = "-" AND Gesperrt = "-"