Files
bookhoard/templates/restore_system_collection_modal.templ
T
john-okeefe a075a5061f feat(ui): refresh auth, entry, admin, and secondary pages
Apply the new design-system primitives across the remaining pages so the
whole app shares one visual language:

- Auth/entry: redesigned index, login, register (centered card layout,
  SVG icons, semantic tokens)
- Admin: sidebar nav with icons, cohesive admin dashboard/users/library/
  processing-issues/settings (tables use border-line + hover states;
  scan/websocket attributes preserved)
- Secondary: analytics (stat cards), devices, progress, conflicts, queue,
  profile + form/modal all migrated to .card/.btn/.input primitives and
  SVG action icons
- Docs + API explorer + setup wizard + collection/rules/modals +
  unlinked books + book-detail modals: consistent chrome, modal scrims
  use --surface-overlay, close buttons use icon-btn
- reader.templ and error.templ intentionally left unchanged
2026-08-05 16:01:22 -04:00

35 lines
1.4 KiB
Templ

package templates
templ RestoreSystemCollectionModal() {
<div x-data="collections" class="fixed inset-0 z-50 flex items-center justify-center" style="background-color: var(--surface-overlay);">
<div class="card p-6 w-full max-w-md mx-4">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold text-content">Restore System Collection</h2>
<button type="button" @click="closeCollectionModal()" class="icon-btn">
@Icon("close", "h-5 w-5")
</button>
</div>
<div class="mb-4">
<p class="mb-4 text-content-muted">Select a system collection to restore:</p>
<form
hx-post="/api/dashboard/restore-system-collection"
hx-redirect="/collections"
>
<select name="collection_name" class="input">
<option value="">Select collection...</option>
<option value="Continue Reading">Continue Reading</option>
<option value="Recently Added">Recently Added</option>
<option value="Recently Read">Recently Read</option>
<option value="Not Started">Not Started</option>
<option value="Continue Series">Continue Series</option>
</select>
<div class="flex justify-end space-x-3 mt-6">
<button type="button" @click="closeCollectionModal()" class="btn btn-secondary">Cancel</button>
<button type="submit" class="btn btn-primary">Restore</button>
</div>
</form>
</div>
</div>
</div>
}