Add ability to deactivate/reactivate soldier records; make hex clearing work with right-click and add a confirmation modal dialog

This commit is contained in:
2025-06-16 22:41:33 -07:00
parent 264dd1ab3f
commit e0bddbb263
5 changed files with 97 additions and 97 deletions

View File

@@ -101,17 +101,17 @@
<p class="grenades">
<span>Hand Grenades</span>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
<circle cx="0" cy="0" r="5" />
</svg></label>
<circle cx="0" cy="0" r="5" />
</svg></label>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
<circle cx="0" cy="0" r="5" />
</svg></label>
<circle cx="0" cy="0" r="5" />
</svg></label>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
<circle cx="0" cy="0" r="5" />
</svg></label>
<circle cx="0" cy="0" r="5" />
</svg></label>
<label><input type='checkbox' checked /><svg viewBox="-7 -7 14 14" xmlns="http://www.w3.org/2000/svg">
<circle cx="0" cy="0" r="5" />
</svg></label>
<circle cx="0" cy="0" r="5" />
</svg></label>
</p>
</template>
@@ -361,9 +361,20 @@
<dialog id="clear-hex">
<p>Clear hex contents?</p>
<div>
<form>
<button value="cancel" formmethod="dialog">Cancel</button>
<button value="confirm" formmethod="dialog">Confirm</button>
<form style="display: flex; flex-direction: row;">
<div style="width: 50%;">
<button
style="display: block; margin-right: auto;"
value="cancel"
formmethod="dialog"
>Cancel</button>
</div>
<div style="width: 50%;">
<button
style="display: block; margin-left: auto;"
value="confirm"
>Confirm</button>
</div>
</form>
</div>
</dialog>