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.

23 lines
1.0 KiB

  1. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  2. <h1>Add Channel</h1>
  3. <p class="color-error">${state.error}</p>
  4. <label>Name</label>
  5. <input key="name" placeholder="(Required)" class="big" on-change("change", "name") value=state.values.name />
  6. <label>Event Name</label>
  7. <input key="eventName" placeholder="(None)" on-change("change", "eventName") value=state.values.eventName />
  8. <label>Location Name</label>
  9. <input key="locationName" placeholder="(None)" on-change("change", "locationName") value=state.values.locationName />
  10. <label>Logged</label>
  11. <toggle value=state.values.logged on="On" off="Off"
  12. onDesc="Log new posts in this channel."
  13. offDesc="The logbot will not monitor this channel."
  14. on-change("change", "logged") />
  15. <p class="color-danger" if(state.values.logged)>The logbot is not yet available, so this does nothing right now.</p>
  16. <button disabled=state.loading on-click("save")>Save</button>
  17. </modal>