aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/templates/hazards.html
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-29 22:31:11 -0400
committerhistoria <[not public]>2026-06-29 22:31:11 -0400
commit069d3c1c81d71042706372df153254487a765dfc (patch)
treed83a4a3954d2b8304f49d83e365f4c2b075b91eb /internal/admin/templates/hazards.html
parent6c5271fb085b4571a10f106391974c249cd84317 (diff)
downloadthehouseoficarus-069d3c1c81d71042706372df153254487a765dfc.tar.gz
feat: wip web admin for mapping and crud
Diffstat (limited to 'internal/admin/templates/hazards.html')
-rw-r--r--internal/admin/templates/hazards.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/admin/templates/hazards.html b/internal/admin/templates/hazards.html
new file mode 100644
index 0000000..0d60df6
--- /dev/null
+++ b/internal/admin/templates/hazards.html
@@ -0,0 +1,14 @@
+{{define "body-hazards"}}
+<div class="editor-container">
+ <div class="editor-list" id="itemList">
+ <div class="search-bar"><input placeholder="Search hazards..." oninput="filterList(this.value)"></div>
+ <div id="listEntries"></div>
+ <button class="btn btn-primary btn-sm" style="margin-top:8px;width:100%" onclick="createNew()">+ New Hazard</button>
+ </div>
+ <div class="editor-main" id="editorMain">
+ <p style="color:#888;text-align:center;margin-top:60px">Select a hazard to edit</p>
+ </div>
+</div>
+<script src="/static/editor.js"></script>
+<script>initEditor('hazards', [{key:'name',label:'Name',type:'text'},{key:'damage',label:'Damage',type:'number'},{key:'speed',label:'Speed',type:'number'},{key:'required_item',label:'Required Item',type:'text'},{key:'message',label:'Message',type:'text'},{key:'lethal',label:'Lethal',type:'checkbox'}]);</script>
+{{end}}