The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.6 KiB

  1. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  2. <h1>Edit Post ${input.post.position}</h1>
  3. <p key="error" class="color-error">${state.error}</p>
  4. <label>Timestamp</label>
  5. <input key="time" autofocus placeholder="Title" class="big" on-change("change", "time") value=state.values.time />
  6. <label>Kind</label>
  7. <select key="kind" class="big" placeholder="Kind" on-change("change", "kind") value=state.values.kind>
  8. <option value="text" selected=(state.values.kind === "text")>Text (text, /npc)</option>
  9. <option value="action" selected=(state.values.kind === "action")>Action (/me, /npca)</option>
  10. <option value="scene" selected=(state.values.kind === "scene")>Scene (/scene)</option>
  11. <option value="annotation.info" selected=(state.values.kind === "annotation.info")>Annotation - Info</option>
  12. <option value="annotation.warning" selected=(state.values.kind === "annotation.warning")>Annotation - Warning</option>
  13. <option value="annotation.error" selected=(state.values.kind === "annotation.error")>Annotation - Error</option>
  14. <option value="chars" selected=(state.values.kind === "chars")>Character Hints</option>
  15. </select>
  16. <label>Nick</label>
  17. <input key="nick" placeholder="IRC_Nick (You can use non-IRC letters here, like ', but I recommend you don't so the character is found)" class="big" on-change("change", "nick") value=state.values.nick />
  18. <label>Text</label>
  19. <textarea key="text" placeholder="Text" class="tall" on-change("change", "text") value=state.values.text />
  20. <button disabled=state.loading on-click("save")>Alter history</button>
  21. </modal>