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.

24 lines
1.1 KiB

  1. import moment from "moment"
  2. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  3. <h1>Edit Log</h1>
  4. <p key="error" class="color-error">${state.error}</p>
  5. <label>Title</label>
  6. <input key="title" placeholder=(input.log.channel.name + " – " + moment(input.log.date).format("MMMM D, YYYY")) class="big" on-change("change", "title") value=state.values.title />
  7. <label>Event Name</label>
  8. <input key="event" placeholder="(Optional)" class="big" on-change("change", "event") value=state.values.event />
  9. <label>Description</label>
  10. <textarea key="description" placeholder="(Optional)" on-change("change", "description") value=state.values.description />
  11. <toggle value=state.values.open on="Open" off="Closed"
  12. onDesc=("New posts in "+input.log.channel.name+" will end up here.")
  13. offDesc="The logbot will not append to this log."
  14. on-change("change", "open") />
  15. <p if(state.values.open) key="warning" class="color-danger">Opening a log will close all others for the same channels.</p>
  16. <button disabled=state.loading on-click("save")>Save</button>
  17. </modal>