42 lines
2 KiB
HTML
42 lines
2 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="de">
|
||
|
|
<head>
|
||
|
|
<meta charset="utf-8">
|
||
|
|
<title>Rate {{.Rate.RateID}}</title>
|
||
|
|
<style>
|
||
|
|
body { font-family: system-ui, sans-serif; margin: 2rem; max-width: 700px; }
|
||
|
|
dt { font-weight: 600; margin-top: 0.5rem; }
|
||
|
|
dd { margin-left: 1rem; }
|
||
|
|
.amount { font-variant-numeric: tabular-nums; }
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<p><a href="/admin/per-diem-rates/">← Zurück zur Liste</a></p>
|
||
|
|
<h1>{{.Rate.RateID}}</h1>
|
||
|
|
<dl>
|
||
|
|
<dt>Land / Stadt</dt><dd>{{.Rate.Country}}{{if .Rate.City}} / {{.Rate.City}}{{end}}</dd>
|
||
|
|
<dt>Währung</dt><dd>{{.Rate.Currency}}</dd>
|
||
|
|
<dt>Voller Tag</dt><dd class="amount">{{.Rate.FullDay}}</dd>
|
||
|
|
<dt>8h+ Teiltag</dt><dd class="amount">{{.Rate.PartialDayMin8h}}</dd>
|
||
|
|
<dt>Anreisetag</dt><dd class="amount">{{.Rate.ArrivalDay}}</dd>
|
||
|
|
<dt>Abreisetag</dt><dd class="amount">{{.Rate.DepartureDay}}</dd>
|
||
|
|
<dt>Gültig ab</dt><dd>{{.Rate.ValidFrom.Format "2006-01-02"}}</dd>
|
||
|
|
<dt>Gültig bis</dt><dd>{{if .Rate.ValidTo}}{{.Rate.ValidTo.Format "2006-01-02"}}{{else}}—{{end}}</dd>
|
||
|
|
<dt>Quelle</dt><dd>{{.Rate.SourceRegulation}}</dd>
|
||
|
|
<dt>Angelegt von</dt><dd>{{.Rate.CreatedBy}} am {{.Rate.CreatedAt.Format "2006-01-02 15:04 UTC"}}</dd>
|
||
|
|
<dt>Attestations-Ref</dt><dd>{{if .Rate.RateChangeAttestationRef}}<code>{{.Rate.RateChangeAttestationRef}}</code>{{else}}<em>(ausstehend)</em>{{end}}</dd>
|
||
|
|
</dl>
|
||
|
|
|
||
|
|
{{if not .Rate.ValidTo}}
|
||
|
|
<h2>Rate ablaufen lassen</h2>
|
||
|
|
<form method="post" action="/admin/per-diem-rates/{{.Rate.RateID}}/retire">
|
||
|
|
<label>Gültig bis (einschließlich) <input type="date" name="valid_to" required></label>
|
||
|
|
<button type="submit">Retire</button>
|
||
|
|
</form>
|
||
|
|
<p><small>Hinweis: Die Rate bleibt für historische Berechnungen bestehen; nur neu generierte Workflows nach <code>valid_to</code> nutzen eine Nachfolge-Rate.</small></p>
|
||
|
|
{{else}}
|
||
|
|
<p><em>Rate ist bereits bis {{.Rate.ValidTo.Format "2006-01-02"}} begrenzt — keine weitere Pflegeaktion möglich.</em></p>
|
||
|
|
{{end}}
|
||
|
|
</body>
|
||
|
|
</html>
|