Trefferwurf-Knopf dezent als .btn, Cache-Buster aus Dateizeit statt fester Version
This commit is contained in:
parent
f9126675b2
commit
38ad53254c
3 changed files with 19 additions and 27 deletions
|
|
@ -76,13 +76,14 @@ $hpSlotValue = static fn (int $slot): string => ((int) ($hpRolls[$slot] ?? 0)) >
|
|||
<div class="field" style="grid-column: span 2;">
|
||||
<span>Trefferwürfe <small class="muted">Stufe 0 (1W<?= (int) WS_HP_LEVEL0_DIE ?>), dann Stufe 1 … <?= (int) $hp['level'] ?></small></span>
|
||||
<input type="hidden" name="hp_rolls" data-hp-input value="<?= e(hp_rolls_format($hpRolls)) ?>">
|
||||
<button class="hp-sum" type="button" data-dialog-open="#hp-rolls-dialog" title="Einzelne Würfe bearbeiten">
|
||||
<button class="btn hp-sum" type="button" data-dialog-open="#hp-rolls-dialog" title="Einzelne Würfe bearbeiten">
|
||||
<span data-hp-sum><?= e(hp_rolls_sum($values)) ?></span>
|
||||
<small>bearbeiten</small>
|
||||
<small class="muted">bearbeiten</small>
|
||||
</button>
|
||||
<small class="muted">
|
||||
<?= (int) $hp['con'] === 0 ? 'ohne Konstitutionsbonus' : 'Konstitutionsbonus ' . e(signed((int) $hp['con'])) . ' eingerechnet' ?>
|
||||
· fehlende Würfe zählen nicht mit
|
||||
<?= $hp['complete']
|
||||
? ((int) $hp['con'] === 0 ? '' : 'Konstitutionsbonus ' . e(signed((int) $hp['con'])) . ' eingerechnet')
|
||||
: 'fehlende Würfe zählen nicht mit' ?>
|
||||
</small>
|
||||
</div>
|
||||
<label class="field">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue