aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/templates/hazards.html
blob: 0d60df6107dc508c2951e1ffc76f05df4a78cccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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}}