38 lines
1.9 KiB
HTML
38 lines
1.9 KiB
HTML
{% extends 'remotectl/base.html' %}
|
|
{% block title %}Batches | Remote Admin{% endblock %}
|
|
{% block content %}
|
|
<div class="flex items-center justify-between mb-6">
|
|
<h1 class="text-2xl font-semibold">Batch Scripts</h1>
|
|
<a href="/batches/new/" class="bg-blue-600 hover:bg-blue-700 text-white text-sm px-4 py-2 rounded shadow">+ New</a>
|
|
</div>
|
|
<div class="overflow-hidden rounded-lg shadow border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800">
|
|
<table class="w-full text-sm">
|
|
<thead class="bg-gray-50 dark:bg-gray-700/60 text-gray-600 dark:text-gray-300 uppercase text-xs tracking-wide">
|
|
<tr>
|
|
<th class="px-3 py-2 text-left">Name</th>
|
|
<th class="px-3 py-2 text-left">Description</th>
|
|
<th class="px-3 py-2 text-left">Updated</th>
|
|
<th class="px-3 py-2"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-gray-100 dark:divide-gray-700">
|
|
{% for s in scripts %}
|
|
<tr class="hover:bg-blue-50 dark:hover:bg-gray-700/60">
|
|
<td class="px-3 py-2 font-medium">{{ s.name }}</td>
|
|
<td class="px-3 py-2 truncate max-w-md">{{ s.description }}</td>
|
|
<td class="px-3 py-2 text-xs">{{ s.updated_at|date:'Y-m-d H:i' }}</td>
|
|
<td class="px-3 py-2 text-right space-x-2">
|
|
<a href="/batches/{{ s.id }}/edit/" class="text-blue-600 hover:underline">Edit</a>
|
|
<a href="/batches/{{ s.id }}/delete/" hx-confirm="Delete batch '{{ s.name }}'?"
|
|
class="text-red-600 hover:underline">Del</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="4" class="px-3 py-6 text-center text-gray-500">No batch scripts.</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %} |