Files
2026-04-27 16:35:07 -06:00

35 lines
1.2 KiB
HTML
Raw Permalink 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>Add Story</h2>
<button
class="modal-close"
onclick="this.closest('.modal-overlay').remove()"
>
×
</button>
</div>
<form
method="POST"
action="/rooms/{{.ID}}/stories"
hx-post="/rooms/{{.ID}}/stories"
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"
placeholder="e.g. As a user..."
required
/>
</div>
<button class="btn-primary" type="submit">Add Story</button>
</form>
</div>
</div>