aboutsummaryrefslogtreecommitdiff
path: root/apps/dreki_web/templates/tasks.dtl
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dreki_web/templates/tasks.dtl')
-rw-r--r--apps/dreki_web/templates/tasks.dtl51
1 files changed, 51 insertions, 0 deletions
diff --git a/apps/dreki_web/templates/tasks.dtl b/apps/dreki_web/templates/tasks.dtl
new file mode 100644
index 0000000..406094a
--- /dev/null
+++ b/apps/dreki_web/templates/tasks.dtl
@@ -0,0 +1,51 @@
+{% for source in sources %}
+<turbo-frame id="src-{{ source.path }}" src="{{ source.url }}">
+Loading {{ source.url }}
+</turbo-frame>
+{% endfor %}
+<div class="px-4 sm:px-6 lg:px-8">
+ <div class="sm:flex sm:items-center">
+ <div class="sm:flex-auto">
+ <h1 class="text-xl font-semibold text-gray-900">Tasks</h1>
+ <p class="mt-2 text-sm text-gray-700">
+ A table of placeholder stock market data that does not make any sense.
+ </p>
+ </div>
+ <div class="mt-4 sm:mt-0 sm:ml-16 sm:flex-none">
+ <button type="button" class="inline-flex items-center justify-center rounded-md border border-transparent bg-primary-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 sm:w-auto">New</button>
+ </div>
+ </div>
+ <div class="mt-8 flex flex-col">
+ <div class="-my-2 -mx-4 overflow-x-auto sm:-mx-6 lg:-mx-8">
+ <div class="inline-block min-w-full py-2 align-middle md:px-6 lg:px-8">
+ <div class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg">
+ <table class="min-w-full divide-y divide-gray-300 table-auto">
+ <thead class="bg-gray-50">
+ <tr>
+ <th scope="col" class="whitespace-nowrap py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6">ID</th>
+ <th scope="col" class="whitespace-nowrap px-2 py-3.5 text-left text-sm font-semibold text-gray-900">Description</th>
+ <th scope="col" class="whitespace-nowrap px-2 py-3.5 text-left text-sm font-semibold text-gray-900">Handler</th>
+ <th scope="col" class="relative whitespace-nowrap py-3.5 pl-3 pr-4 sm:pr-6">
+ <span class="sr-only">Edit</span>
+ </th>
+ </tr>
+ </thead>
+ <tbody class="divide-y divide-gray-200 bg-white">
+ {% for t in tasks %}
+ <tr>
+ <td class="whitespace-nowrap py-2 pl-4 pr-3 text-sm text-gray-500 sm:pl-6"><a href="/admin/tasks/{{t.id}}">{{t.id}}</a></td>
+ <td class="whitespace-nowrap px-2 py-2 text-sm font-medium text-gray-900">{{t.description}}</td>
+ <td class="whitespace-nowrap px-2 py-2 text-sm text-gray-900">{{t.handler}}</td>
+ <td class="relative whitespace-nowrap py-2 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
+ <a href="#" class="text-primary-600 hover:text-primary-900">Edit<span class="sr-only">, {{t.id}}</span></a>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+