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.

17 lines
717 B

  1. $ const selected = (state.selected||{id:null});
  2. <modal class="modal color-text nolabel" key="modal" enabled=(input.enabled) closable on-close("close") on-open("open") >
  3. <h1>Move Chapter</h1>
  4. <p key="error" class="color-error">${state.error}</p>
  5. <label>Target story</label>
  6. <select key="story" on-change("change", "selected") autofocus value=selected.id>
  7. <option for(story in state.stories) value=story.id selected=(selected.id === story.id)>${story.name}</option>
  8. </select>
  9. <if-permitted not permission="story.move">
  10. <p>Only stories you are allowed to move the chapter to appear in the above list.</p>
  11. </if-permitted>
  12. <button disabled=state.loading on-click("save")>Move</button>
  13. </modal>