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.

25 lines
1.5 KiB

  1. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  2. <h1>Add Post</h1>
  3. <p key="error" class="color-error">${state.error}</p>
  4. <label>Timestamp</label>
  5. <input key="time" 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. </select>
  15. <label>Nick</label>
  16. <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 />
  17. <label>Text</label>
  18. <textarea key="text" placeholder="Text" class="tall" on-change("change", "text") value=state.values.text />
  19. <button disabled=state.loading on-click("save")>Add Post</button>
  20. </modal>