feat(frontend): integrate tailwind pipeline and update templates
This commit is contained in:
@ -1,18 +1,23 @@
|
||||
<div class="panel mt-16">
|
||||
<div class="mt-4 rounded-lg border border-slate-200 bg-slate-50 p-4">
|
||||
<h3>Save Current Search</h3>
|
||||
<p class="muted-text">Store current filters and replay them later.</p>
|
||||
<p class="mt-1 text-sm text-slate-600">Store current filters and replay them later.</p>
|
||||
|
||||
<form
|
||||
method="post"
|
||||
action="{% url 'scouting:saved_search_create' %}"
|
||||
class="row-gap"
|
||||
class="mt-3 flex flex-wrap items-end gap-3"
|
||||
hx-post="{% url 'scouting:saved_search_create' %}"
|
||||
hx-target="#saved-search-feedback"
|
||||
hx-swap="innerHTML"
|
||||
hx-indicator="#htmx-loading"
|
||||
>
|
||||
{% csrf_token %}
|
||||
<input type="text" name="name" placeholder="Search name" required>
|
||||
<label class="inline-label">
|
||||
<div class="min-w-56 flex-1">
|
||||
<label for="saved-search-name">Search name</label>
|
||||
<input id="saved-search-name" type="text" name="name" placeholder="Search name" required>
|
||||
</div>
|
||||
|
||||
<label class="inline-flex items-center gap-2 pb-2 text-sm text-slate-700">
|
||||
<input type="checkbox" name="is_public">
|
||||
Public
|
||||
</label>
|
||||
@ -21,7 +26,7 @@
|
||||
<input type="hidden" name="{{ key }}" value="{{ value }}">
|
||||
{% endfor %}
|
||||
|
||||
<button class="button" type="submit">Save search</button>
|
||||
<button class="btn" type="submit">Save search</button>
|
||||
</form>
|
||||
<div id="saved-search-feedback" class="mt-16"></div>
|
||||
<div id="saved-search-feedback" class="mt-3" aria-live="polite"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user