Files

126 lines
5.3 KiB
HTML
Raw Permalink Normal View History

2025-12-18 21:44:23 +01:00
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ausrüstungsblatt - {{.Character.Name}}</title>
2025-12-18 22:59:33 +01:00
<link rel="stylesheet" href="shared/export_format_a4_quer.css">
2025-12-18 21:44:23 +01:00
</head>
<body>
<div class="container">
<div class="header">
<span class="header-left">Ausrüstungsblatt</span>
<span class="header-right">Datum: {{.Meta.Date}}</span>
</div>
<div class="title-row">
2025-12-18 22:59:33 +01:00
<img src="shared/images/headerimg.png" alt="Schmuckgrafik" class="header-decoration">
2025-12-18 21:44:23 +01:00
<div class="info-box">
<div><strong>Figur</strong> &nbsp; {{.Character.Name}} &nbsp; <strong>Grad</strong> &nbsp; {{.Character.Grade}}</div>
<hr>
<div><strong>Typ</strong> &nbsp; {{.Character.Type}} &nbsp; <strong>Zaubern</strong> &nbsp; + {{.DerivedValues.Zaubern}}</div>
</div>
2025-12-18 22:59:33 +01:00
<img src="shared/images/headerimg.png" alt="Schmuckgrafik" class="header-decoration">
2025-12-18 21:44:23 +01:00
</div>
<div class="flex main-content">
<!-- Left section: Character icon, currency, and small containers -->
<div class="equipment-left">
<div class="char-icon-section">
{{if .Character.IconBase64}}
<img src="{{.Character.IconBase64}}" alt="Charakter" class="char-icon">
2025-12-19 17:04:20 +01:00
{{else}}
<img src="shared/images/token_bebe.png" alt="Charakter" class="char-icon">
2025-12-18 21:44:23 +01:00
{{end}}
</div>
<table class="currency-table">
<tr>
<td><strong>GS</strong></td>
2025-12-19 17:04:20 +01:00
<td>{{.Character.Vermoegen.Goldstuecke}}</td>
2025-12-18 21:44:23 +01:00
{{range $i := iterate 9}}<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>{{end}}
</tr>
<tr>
<td><strong>SS</strong></td>
2025-12-19 17:04:20 +01:00
<td>{{.Character.Vermoegen.Silberstuecke}}</td>
2025-12-18 21:44:23 +01:00
{{range $i := iterate 9}}<td></td>{{end}}
</tr>
<tr>
<td><strong>KS</strong></td>
2025-12-19 17:04:20 +01:00
<td>{{.Character.Vermoegen.Kupferstuecke}}</td>
2025-12-18 21:44:23 +01:00
{{range $i := iterate 9}}<td></td>{{end}}
</tr>
</table>
<!-- Containers sections -->
{{range .Equipment}}
{{if .IsContainer}}
{{$containerName := .Name}}
2025-12-18 21:44:23 +01:00
<table class="equipment-section">
<tr>
<th colspan="2">{{.Name}}</th>
</tr>
{{range $.Equipment}}
{{if and (not .IsContainer) (eq .Container $containerName)}}
2025-12-18 21:44:23 +01:00
<tr>
<td>{{.Name}}</td>
<td>{{.Quantity}} x {{.Weight}} kg</td>
</tr>
{{end}}
{{end}}
<tr>
<td colspan="2" class="weight-total"><strong>Gewicht {{.Weight}} kg</strong></td>
</tr>
</table>
{{end}}
{{end}}
</div>
<!-- Right section: Equipment sections -->
<div class="equipment-right">
<!-- Section: Am Körper getragen -->
<!-- BLOCK: equipment_worn, TYPE: equipment, MAX: 10, FILTER: worn -->
<table class="equipment-section">
<tr>
<th colspan="2">Am Körper getragen</th>
</tr>
{{range .Equipment}}
{{if .IsWorn}}
<tr>
<td>{{.Name}}</td>
<td>{{.Quantity}} x {{.Weight}} kg - {{.Value}} GS{{if .Notes}}<br>{{.Notes}}{{end}}</td>
</tr>
{{end}}
{{end}}
<tr>
<td colspan="2" class="weight-total"><strong>Gewicht ? kg</strong></td>
</tr>
</table>
<!-- Other equipment sections by container -->
{{$containers := .Equipment}}
{{range $container := $containers}}
{{if and $container.IsContainer (ne $container.Name "Am Körper")}}
<table class="equipment-section">
<tr>
<th colspan="2">{{$container.Name}}</th>
</tr>
{{range $item := $containers}}
{{if and (not $item.IsContainer) (eq $item.Container $container.Name)}}
<tr>
<td>{{$item.Name}}</td>
<td>{{$item.Quantity}} x {{$item.Weight}} kg - {{$item.Value}} GS</td>
</tr>
{{end}}
{{end}}
<tr>
<td colspan="2" class="weight-total"><strong>Gewicht {{$container.Weight}} kg</strong></td>
</tr>
</table>
{{end}}
{{end}}
</div>
</div>
</div>
</body>
</html>