Baustein 3: Wochenplan als Startseite, Fortschritt, Wochen verschieben
- Wochenplan ist die Startseite des Azubis: Thema, Leitfrage, fuenf Tage mit Theorie und Praxis, Fortschrittsbalken, was noch offen ist - Ausbilder sieht je Azubi die laufende Woche mit Stand und offenen Punkten - /woche/<nr> fuer jede Woche, Ausbilder waehlt ueber ?azubi= den Stand; Zugriff wird serverseitig bei jedem Aufruf geprueft - Tabelle wochenplanung mit geplantem und tatsaechlichem Datum, Zustand und Notiz fuer den Azubi - Verschieben per Datumsfeld, wahlweise mit allen folgenden Wochen - Reihenfolge per Ziehen und Ablegen sowie per Tastatur (Alt + Pfeil) - Warnung bei sich ueberlappenden Terminen - Plan entsteht automatisch beim Anlegen eines Azubikontos - Planungs- und Fortschrittslogik als reine Funktionen, 36 Tests dafuer - Insgesamt 104 Tests Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1af5613e9b
commit
103a603eb4
@@ -696,3 +696,185 @@ a.glossarbegriff:hover {
|
||||
.handout-zuordnung { border: 1px solid #999; }
|
||||
a.glossarbegriff { text-decoration: none; }
|
||||
}
|
||||
|
||||
/* --- Wochenplan --- */
|
||||
|
||||
.wochen-nummer {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.2rem 0.7rem;
|
||||
border-radius: var(--radius-klein);
|
||||
background: var(--petrol);
|
||||
color: var(--text-auf-petrol);
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.wochen-nummer-klein { font-size: 0.8rem; padding: 0.1rem 0.5rem; }
|
||||
|
||||
.leitfrage {
|
||||
font-size: 1.1rem;
|
||||
font-style: italic;
|
||||
color: var(--petrol);
|
||||
margin: 0 0 0.3rem;
|
||||
}
|
||||
:root[data-thema="dunkel"] .leitfrage { color: var(--petrol-hell); }
|
||||
|
||||
.offen-liste {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border-top: 1px solid var(--rand-zart);
|
||||
}
|
||||
.offen-liste li {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.45rem 0;
|
||||
border-bottom: 1px solid var(--rand-zart);
|
||||
}
|
||||
.offen-liste li::before {
|
||||
content: "○";
|
||||
color: var(--text-leise);
|
||||
margin-right: 0.4rem;
|
||||
}
|
||||
.offen-liste li > span:first-of-type { flex: 1; }
|
||||
|
||||
.wochentage {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.wochentag {
|
||||
border: 1px solid var(--rand-zart);
|
||||
border-left: 4px solid var(--rand);
|
||||
border-radius: var(--radius);
|
||||
background: var(--flaeche);
|
||||
padding: 0.7rem 0.9rem;
|
||||
}
|
||||
.wochentag-heute {
|
||||
border-left-color: var(--bernstein);
|
||||
background: var(--warnung-flaeche);
|
||||
}
|
||||
|
||||
.wochentag-kopf {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.6rem;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.wochentag-inhalt {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@media (min-width: 720px) {
|
||||
.wochentag-inhalt { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
|
||||
}
|
||||
|
||||
.wochentag-marke {
|
||||
display: block;
|
||||
font-size: 0.72rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.07em;
|
||||
font-weight: 700;
|
||||
color: var(--text-leise);
|
||||
margin-bottom: 0.15rem;
|
||||
}
|
||||
|
||||
.theorie-liste {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.theorie-liste li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.theorie-liste li + li { margin-top: 0.3rem; }
|
||||
|
||||
/* --- Planliste zum Umsortieren --- */
|
||||
|
||||
.planliste {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.planliste-wartet { opacity: 0.6; pointer-events: none; }
|
||||
|
||||
.planzeile {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.6rem;
|
||||
background: var(--flaeche);
|
||||
border: 1px solid var(--rand-zart);
|
||||
border-radius: var(--radius);
|
||||
padding: 0.7rem 0.8rem;
|
||||
}
|
||||
.planzeile-gezogen { opacity: 0.45; }
|
||||
.planzeile-ziel {
|
||||
border-color: var(--bernstein);
|
||||
box-shadow: inset 0 3px 0 var(--bernstein);
|
||||
}
|
||||
|
||||
.planzeile-griff {
|
||||
cursor: grab;
|
||||
color: var(--text-leise);
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.4;
|
||||
user-select: none;
|
||||
padding-top: 0.1rem;
|
||||
}
|
||||
|
||||
.planzeile-inhalt { flex: 1; display: grid; gap: 0.25rem; }
|
||||
|
||||
.planzeile-titel {
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
}
|
||||
.planzeile-titel:hover { text-decoration: underline; }
|
||||
|
||||
.planzeile-notiz {
|
||||
margin: 0.2rem 0 0;
|
||||
font-size: 0.9rem;
|
||||
background: var(--warnung-flaeche);
|
||||
border-left: 3px solid var(--bernstein);
|
||||
padding: 0.3rem 0.6rem;
|
||||
border-radius: 0 var(--radius-klein) var(--radius-klein) 0;
|
||||
}
|
||||
|
||||
.planzeile-knoepfe {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.15rem;
|
||||
}
|
||||
.planzeile-knoepfe .knopf { min-height: 34px; padding: 0.1rem 0.5rem; }
|
||||
|
||||
.ankreuzfeld {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
align-items: flex-start;
|
||||
font-weight: 400;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ankreuzfeld input[type="checkbox"] {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-top: 0.2rem;
|
||||
flex-shrink: 0;
|
||||
accent-color: var(--petrol);
|
||||
}
|
||||
.ankreuzfeld > span:last-child { font-weight: 600; font-size: 0.95rem; }
|
||||
|
||||
@media print {
|
||||
.planzeile-griff,
|
||||
.planzeile-knoepfe { display: none; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user