feat: add localStorage helpers and wire team editor pre-fill

This commit is contained in:
Keith Solomon
2026-07-12 20:10:04 -05:00
parent 8eefd749be
commit facbb1a311
2 changed files with 221 additions and 0 deletions
+2
View File
@@ -82,6 +82,8 @@ render_layout(static function () use ($csrf, $e, $a, $archetypes, $error, $old,
<label>Hold rounds: <input type="number" name="holdRoundsRequired" min="1" max="10" value="<?= $e($old['holdRoundsRequired'] ?? '1') ?>"></label>
</fieldset>
<button type="submit">Save</button>
<button type="button" id="bf-start-match">Start match</button>
</form>
<script type="module" src="<?= $a('/js/storage.js') ?>"></script>
<?php
}, $csrf, 'Team editor');