38 lines
2.2 KiB
Plaintext
38 lines
2.2 KiB
Plaintext
<%= turbo_frame_tag "admin_jobs" do %>
|
|
<div>
|
|
<h1 class="font-bold text-4xl py-4 text-hsrm-gray">Alle Druckaufträge</h1>
|
|
<div class="flex justify-between items-center">
|
|
<%== pagy_nav(@pagy) %>
|
|
<%== pagy_info(@pagy, item_name: "Users") %>
|
|
</div>
|
|
<div class="min-w-full overflow-auto shadow-lg pt-2">
|
|
<table class="w-full py-8 table-auto">
|
|
<thead class="font-semibold tracking-wide bg-gray-200 border-b-2 border-gray-300 text text-hsrm-gray">
|
|
<tr>
|
|
<th class="w-1 p-2 py-3 text-center text-nowrap"><%= sort_link(@q, :id, "ID", ) %></th>
|
|
<th class="min-w-24 p-2 py-3 text-left"><%= sort_link(@q, :costumer_firstname, "Vorname") %></th>
|
|
<th class="min-w-24 p-2 py-3 text-left"><%= sort_link(@q, :costumer_lastname, "Nachname") %></th>
|
|
<th class="p-2 py-3 text-left"><%= sort_link(@q, :pdf_blob_filename, "PDF") %></th>
|
|
<th class="w-1 p-1 py-3 text-left text-nowrap"><%= sort_link(@q, :number_of_plans_a0, "A0") %></th>
|
|
<th class="w-1 p-1 py-3 text-left text-nowrap"><%= sort_link(@q, :number_of_plans_a1, "A1") %></th>
|
|
<th class="w-1 p-1 py-3 text-left text-nowrap"><%= sort_link(@q, :number_of_plans_a2, "A2") %></th>
|
|
<th class="w-1 p-1 py-3 text-left text-nowrap"><%= sort_link(@q, :number_of_plans_a3, "A3") %></th>
|
|
<th class="w-1 p-2 py-3 text-center text-nowrap"><%= sort_link(@q, :costum_qm_plan, "no DIN") %></th>
|
|
<th class="w-1 p-2 py-3 text-center"><%= sort_link(@q, :cost, "Kosten") %></th>
|
|
<th class="w-1 p-2 py-3 text-center text-nowrap"><%= sort_link(@q, :created_at, "Erstellt am") %></th>
|
|
<th class="w-1 p-2 py-3 text-center text-nowrap"><%= sort_link(@q, :created_at, "Bezahlt am") %></th>
|
|
<th class="w-1 p-2 py-3 text-center"><%= sort_link(@q, :status, "Status") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id='jobs' class="divide-y divivde-gray-300">
|
|
<%= render partial: "job_tr", collection: @records, as: :job, locals: { no_actions: true } %>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="flex justify-between items-center">
|
|
<%== pagy_nav(@pagy) %>
|
|
<%== pagy_info(@pagy, item_name: "Users") %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|