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.

20 lines
939 B

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