Selektor auch für Waffen und Rüstung, fest auf die jeweilige Art vorgefiltert
This commit is contained in:
parent
a121b8c202
commit
c0756971cf
5 changed files with 247 additions and 40 deletions
|
|
@ -281,6 +281,11 @@ $base = url('/characters/' . $cid);
|
|||
<?php endif; ?>
|
||||
|
||||
<hr class="divider">
|
||||
<div class="selector-actions" style="margin-bottom:.8rem">
|
||||
<button class="btn btn-primary" type="button" data-dialog-open="#weapon-selector">Waffe aus dem Katalog</button>
|
||||
<span class="muted"><?= (int) $selectors['weapon']['count'] ?> Waffen, fest vorgefiltert auf Art „Waffe“.</span>
|
||||
</div>
|
||||
|
||||
<form method="post" action="<?= e($base . '/weapons/add') ?>" class="inline-form">
|
||||
<?= csrf_field() ?>
|
||||
<label class="field grow">
|
||||
|
|
@ -371,6 +376,11 @@ $base = url('/characters/' . $cid);
|
|||
<?php endif; ?>
|
||||
|
||||
<hr class="divider">
|
||||
<div class="selector-actions" style="margin-bottom:.8rem">
|
||||
<button class="btn btn-primary" type="button" data-dialog-open="#armor-selector">Rüstung aus dem Katalog</button>
|
||||
<span class="muted"><?= (int) $selectors['armor']['count'] ?> Rüstungen und Schilde, fest vorgefiltert.</span>
|
||||
</div>
|
||||
|
||||
<form method="post" action="<?= e($base . '/armors/add') ?>" class="inline-form">
|
||||
<?= csrf_field() ?>
|
||||
<label class="field grow">
|
||||
|
|
@ -438,9 +448,8 @@ $base = url('/characters/' . $cid);
|
|||
<hr class="divider">
|
||||
<div class="selector-actions" style="margin-bottom:.8rem">
|
||||
<button class="btn btn-primary" type="button" data-dialog-open="#item-selector">Gegenstand aus dem Katalog</button>
|
||||
<span class="muted"><?= (int) ($itemCatalogCount ?? 0) ?> Gegenstände, filterbar nach Art und Verfügbarkeit (Methaven/Garana/Alle).</span>
|
||||
<span class="muted"><?= (int) $selectors['item']['count'] ?> Gegenstände, filterbar nach Art und Verfügbarkeit (Methaven/Garana/Alle).</span>
|
||||
</div>
|
||||
<?php require WS_ROOT . '/views/_selector_items.php'; ?>
|
||||
|
||||
<form method="post" action="<?= e($base . '/items/add') ?>" class="inline-form">
|
||||
<?= csrf_field() ?>
|
||||
|
|
@ -486,3 +495,7 @@ $base = url('/characters/' . $cid);
|
|||
</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<?php foreach ($selectors as $selector): ?>
|
||||
<?php require WS_ROOT . '/views/_selector_items.php'; ?>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue