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.

15 lines
701 B

  1. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  2. <h1>Edit Chapter</h1>
  3. <p key="error" class="color-error">${state.error}</p>
  4. <label>Title</label>
  5. <input key="title" placeholder="Title" class="big" on-change("change", "title") value=state.values.title />
  6. <label>IC Date</label>
  7. <input key="icdate" placeholder="IC Date" on-change("change", "fictionalDate") value=state.values.fictionalDate />
  8. <label>Content</label>
  9. <textarea key="source" placeholder="Content" class="tall" on-change("change", "source") value=state.values.source />
  10. <button disabled=state.loading on-click("save")>Save</button>
  11. </modal>