aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/templates/objects.html
blob: 91aca09968b29dd9bb9446b99166ce1c396544d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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}}