Files
sprintpadawan/templates/story_edit.html
T
atridad 16bed1b8c0 First pass at basic functionality.
This PR introduces the beginnings of Sprint Padawan.

Reviewed-on: #1
2026-05-02 02:01:53 -06:00

35 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div class="modal-overlay" onclick="this.remove()">
<div class="modal" onclick="event.stopPropagation()">
<div class="modal-header">
<h2>Rename Story</h2>
<button
class="modal-close"
onclick="this.closest('.modal-overlay').remove()"
>
×
</button>
</div>
<form
method="POST"
action="/rooms/{{.RoomID}}/stories/{{.Story.ID}}/rename"
hx-post="/rooms/{{.RoomID}}/stories/{{.Story.ID}}/rename"
hx-target="#stories-panel"
hx-swap="outerHTML"
hx-on::after-request="if (event.detail.successful) document.getElementById('modal-container').innerHTML = ''"
class="auth-form"
>
<div class="form-group">
<label class="form-label">Story Title</label>
<input
class="form-input"
type="text"
name="title"
value="{{.Story.Title}}"
required
/>
</div>
<button class="btn-primary" type="submit">Save Changes</button>
</form>
</div>
</div>