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.

18 lines
803 B

  1. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  2. <h1>Upload File</h1>
  3. <p class="color-error">${state.error}</p>
  4. <label>File</label>
  5. <input key="eventName" type="file" placeholder="(None)" on-change("change", "file") value=state.values.file />
  6. <label>Name</label>
  7. <input key="name" autofocus placeholder="(Required)" class="big" on-change("change", "name") value=state.values.name />
  8. <label>Public</label>
  9. <toggle value=state.values.public on="On" off="Off"
  10. onDesc="Other members may see this file on this page."
  11. offDesc="Only you may see this file on this page."
  12. on-change("change", "public") />
  13. <button disabled=state.loading on-click("save")>Save</button>
  14. </modal>