feat(frontend): integrate tailwind pipeline and update templates

This commit is contained in:
Alfredo Di Stasio
2026-03-10 12:49:25 +01:00
parent 4d49d30495
commit 3d795991fe
27 changed files with 1211 additions and 435 deletions

View File

@ -1,6 +1,6 @@
{% if saved_searches %}
<div class="table-wrap mt-16">
<table>
<div class="table-wrap mt-4">
<table class="data-table">
<thead>
<tr>
<th>Name</th>
@ -10,20 +10,20 @@
<th>Actions</th>
</tr>
</thead>
<tbody>
<tbody class="divide-y divide-slate-100 bg-white">
{% for saved_search in saved_searches %}
<tr>
<td>{{ saved_search.name }}</td>
<td class="font-medium text-slate-800">{{ saved_search.name }}</td>
<td>{% if saved_search.is_public %}Public{% else %}Private{% endif %}</td>
<td>{{ saved_search.updated_at|date:"Y-m-d H:i" }}</td>
<td>{{ saved_search.last_run_at|date:"Y-m-d H:i"|default:"-" }}</td>
<td>
<div class="row-gap">
<a class="button ghost" href="{% url 'scouting:saved_search_run' saved_search.pk %}">Run</a>
<a class="button ghost" href="{% url 'scouting:saved_search_edit' saved_search.pk %}">Edit</a>
<div class="flex flex-wrap gap-2">
<a class="btn-secondary" href="{% url 'scouting:saved_search_run' saved_search.pk %}">Run</a>
<a class="btn-secondary" href="{% url 'scouting:saved_search_edit' saved_search.pk %}">Edit</a>
<form method="post" action="{% url 'scouting:saved_search_delete' saved_search.pk %}">
{% csrf_token %}
<button class="button ghost" type="submit">Delete</button>
<button class="btn-secondary" type="submit">Delete</button>
</form>
</div>
</td>
@ -33,5 +33,5 @@
</table>
</div>
{% else %}
<p class="mt-16">No saved searches yet.</p>
<div class="empty-state mt-4">No saved searches yet.</div>
{% endif %}