diff options
| author | historia <[not public]> | 2026-06-29 22:31:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-29 22:31:11 -0400 |
| commit | 069d3c1c81d71042706372df153254487a765dfc (patch) | |
| tree | d83a4a3954d2b8304f49d83e365f4c2b075b91eb /internal/admin/templates/objects.html | |
| parent | 6c5271fb085b4571a10f106391974c249cd84317 (diff) | |
| download | thehouseoficarus-069d3c1c81d71042706372df153254487a765dfc.tar.gz | |
feat: wip web admin for mapping and crud
Diffstat (limited to 'internal/admin/templates/objects.html')
| -rw-r--r-- | internal/admin/templates/objects.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/internal/admin/templates/objects.html b/internal/admin/templates/objects.html new file mode 100644 index 0000000..91aca09 --- /dev/null +++ b/internal/admin/templates/objects.html @@ -0,0 +1,29 @@ +{{define "body-objects"}} +<div class="editor-container"> + <div class="editor-list" id="itemList"> + <div class="search-bar"><input placeholder="Search objects..." 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 Object</button> + </div> + <div class="editor-main" id="editorMain"> + <p style="color:#888;text-align:center;margin-top:60px">Select an object to edit</p> + </div> +</div> +<script src="/static/editor.js"></script> +<script> +initEditor('objects', [ + {key:'name',label:'Name',type:'text'}, + {key:'color',label:'Color',type:'color'}, + {key:'aliases',label:'Aliases (comma sep)',type:'text'}, + {key:'hidden',label:'Hidden',type:'checkbox'}, + {key:'inroom_description',label:'In-Room Description',type:'text'}, + {key:'description',label:'Description',type:'textarea'}, + {key:'removal_item',label:'Removal Item ID',type:'text'}, + {key:'steal_table',label:'Steal Table ID',type:'text'}, + {key:'steal_level',label:'Steal Level',type:'number'}, + {key:'steal_xp',label:'Steal XP',type:'number'}, + {key:'steal_speed',label:'Steal Speed',type:'number'}, + {key:'guard_mob',label:'Guard Mob ID',type:'text'} +]); +</script> +{{end}} |
