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