munin/templates/workspaces.html
Thomas Adamek 466f1e40af Workspaces, Änderungshistorie, Papierkorb, Nutzungsübersicht, Hilfe
Umsetzung der Ausbaustufen 2.1, 3.6, 3.8, 3.9, 4.1, 4.2, 4.4, 4.6,
5.1–5.4 (Details in AUSBAUSTUFEN.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 07:44:52 +02:00

80 lines
2.8 KiB
HTML

{{template "kopf" .}}
<div class="seitenkopf">
<div class="seitenkopf-titel">
<h1>Workspaces {{template "hilfelink" "plattform-admin#workspaces"}}</h1>
<span class="hilfe">Jede Abteilung hat ihren eigenen Workspace — eigene Projekte,
eigene Einträge, eigene Datei. Sie sehen sich gegenseitig nicht.</span>
</div>
</div>
{{if .Data.Workspaces}}
<div class="tabelle-huelle">
<table class="tabelle">
<thead>
<tr>
<th>Workspace</th>
<th class="zahl">Projekte</th>
<th>Angelegt</th>
<th class="schmal rechts">Auswahl</th>
<th class="schmal rechts">Verwaltung</th>
</tr>
</thead>
<tbody>
{{$aktuell := .Data.Current}}
{{range .Data.Workspaces}}
<tr>
<td>
{{.Name}}
{{if eq .ID $aktuell}}<span class="marke betont">Aktuell</span>{{end}}
</td>
<td class="zahl">{{.Projects}}</td>
<td class="hilfe">{{.CreatedAt}}</td>
<td class="schmal rechts">
{{if eq .ID $aktuell}}
<a href="/admin/projects" class="knopf zweitrangig">Weiter</a>
{{else}}
<form method="POST" action="/admin/workspaces/select" class="reihe">
<input type="hidden" name="csrf_token" value="{{$.CSRFToken}}">
<input type="hidden" name="id" value="{{.ID}}">
<button type="submit" class="zweitrangig">Öffnen</button>
</form>
{{end}}
</td>
<td class="schmal rechts">
<a href="/admin/workspaces/{{.ID}}/edit">Bearbeiten</a>
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{else}}
<div class="leer">
<p>Noch kein Workspace angelegt.</p>
<p class="hilfe">Ein Workspace ist die Abschottungsgrenze zwischen Abteilungen — meist einer je Team.</p>
</div>
{{end}}
<section class="abschnitt">
<h2>Neuer Workspace</h2>
<span class="hilfe">Für eine neue Abteilung. Projekte werden danach innerhalb
des Workspace angelegt.</span>
<div class="karte">
<form method="POST" action="/admin/workspaces/create" class="formular">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<div class="feld mittel">
<label for="name">Name</label>
<input type="text" id="name" name="name" required placeholder="z.B. Marketing" autofocus>
</div>
<div class="formular-aktionen">
<button type="submit">Workspace anlegen</button>
</div>
</form>
</div>
</section>
{{template "fuss" .}}