diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-08-10 14:27:35 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-08-10 14:29:09 +0200 |
| commit | b8e99e574b8ef818a2bf428c8d92fb82e7796170 (patch) | |
| tree | 19e1d1ae5432b7f67e72e91fd244fe22bd55ab89 /cockpit.html | |
| parent | 7c585983d91a691401d626b55583f1917c7b1328 (diff) | |
| download | bycs-sol-b8e99e574b8ef818a2bf428c8d92fb82e7796170.tar.gz bycs-sol-b8e99e574b8ef818a2bf428c8d92fb82e7796170.zip | |
cockpit: improve graduation history
* Allow change deletion if the current user issued the change
* Only the assigned coach is allowed to change the level
Diffstat (limited to 'cockpit.html')
| -rw-r--r-- | cockpit.html | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/cockpit.html b/cockpit.html index 8e77ffe..bda0322 100644 --- a/cockpit.html +++ b/cockpit.html @@ -71,23 +71,27 @@ <details id="graduation"> <summary>Graduierung</summary> - <div id="graduation-level-change"> + <div id="graduation-level-change" data-availability="if-coach"> + <h4 id="graduation-level-change-headline">Graduierung abgeschlossen?</h4> <button id="graduation-level-change-submit">Ändere Level</button> <input type="number" min="1" max="4" id="graduation-level-change-level" /> </div> - <table class="table table-striped"> - <thead> - <tr> - <th>Änderung</th> - <th>Datum</th> - <th>Grund</th> - <th>Coach</th> - <th>Context</th> - </tr> - </thead> - <tbody id="graduation-changes"></tbody> - </table> + <div id="graduation-history"> + <h4 id="graduation-history-headline">Änderungsverlauf</h4> + <table class="table table-striped"> + <thead> + <tr> + <th>Änderung</th> + <th>Datum</th> + <th>Grund</th> + <th>Coach</th> + <th>Context</th> + </tr> + </thead> + <tbody id="graduation-changes"></tbody> + </table> + </div> </details> </div> </body> |
