Charakterverwalter (westreiche_website) ergänzen, Website-Nav "Charaktere"

This commit is contained in:
torsten 2026-11-21 04:02:29 +01:00
parent d107f90c93
commit 01dae01c7c
84 changed files with 8915 additions and 17 deletions

View file

@ -0,0 +1,48 @@
<?php
/** @var array $weapons */
/** @var array $armors */
?>
<div class="page-head">
<div>
<h1>Waffen &amp; Rüstungen</h1>
<p class="lede">Der Katalog füllt die Auswahllisten im Bogen. Werte sind Startpunkte – im Bogen bleibt jeder Eintrag änderbar.</p>
</div>
<a class="btn btn-ghost" href="<?= e(url('/admin/users')) ?>">Zurück</a>
</div>
<section class="panel">
<h2>Waffen</h2>
<table class="data">
<thead><tr><th>Name</th><th>Schaden</th><th class="num">Bonus</th><th>Art</th><th>Gewicht</th><th>Preis</th></tr></thead>
<tbody>
<?php foreach ($weapons as $weapon): ?>
<tr>
<td><?= e((string) $weapon['name']) ?></td>
<td><?= e((string) $weapon['damage']) ?></td>
<td class="num"><?= e(signed((int) $weapon['attack_bonus'])) ?></td>
<td class="muted"><?= e((string) $weapon['category']) ?></td>
<td class="muted"><?= e((string) $weapon['weight']) ?></td>
<td class="muted"><?= e((string) $weapon['value']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</section>
<section class="panel">
<h2>Rüstungen &amp; Schilde</h2>
<table class="data">
<thead><tr><th>Name</th><th class="num">RK-Bonus</th><th>Art</th><th>Gewicht</th><th>Preis</th></tr></thead>
<tbody>
<?php foreach ($armors as $armor): ?>
<tr>
<td><?= e((string) $armor['name']) ?></td>
<td class="num"><?= e(signed((int) $armor['ac_bonus'])) ?></td>
<td class="muted"><?= e((string) $armor['kind']) ?></td>
<td class="muted"><?= e((string) $armor['weight']) ?></td>
<td class="muted"><?= e((string) $armor['value']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</section>