Some layout improvements
This commit is contained in:
@@ -1,63 +1,63 @@
|
||||
<tr id="<%= dom_id job %>" class="bg-status-<%= job.status %>-light odd:bg-opacity-20 even:bg-opacity-15">
|
||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 text-sm font-medium uppercase tracking-wider bg-opacity-50 text-status-<%= job.status %> bg-status-<%= job.status %>-light rounded-lg">
|
||||
<td class="p-3 text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 text-lg font-bold uppercase tracking-wider bg-opacity-50 text-status-<%= job.status %> bg-status-<%= job.status %>-light rounded-lg shadow">
|
||||
<%= job.id %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-center text-hsrm-gray">
|
||||
<td class="p-3 text-center text-hsrm-gray">
|
||||
<% if job.pdf.attached? %>
|
||||
<%= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100]))) %>
|
||||
<%= image_tag(url_for(job.pdf.blob.preview(resize_to_limit: [100, 100])), class: "shadow") %>
|
||||
<%#= image_tag job.pdf.preview(resize_to_limit: [50, 50]), class: "mx-auto" %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
||||
<td class="p-3 text-hsrm-gray whitespace-nowrap">
|
||||
<%= job.costumer_fullname %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-hsrm-gray whitespace-nowrap">
|
||||
<td class="p-3 text-hsrm-gray whitespace-nowrap">
|
||||
<% if job.pdf.attached? %>
|
||||
<%= job.pdf.filename %>
|
||||
<%= truncate(job.pdf.filename.to_s, length: 45) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg">
|
||||
<td class="p-3 text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg shadow">
|
||||
<%= job.number_of_plans_a0 %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg">
|
||||
<td class="p-3 text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg shadow">
|
||||
<%= job.number_of_plans_a1 %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg">
|
||||
<td class="p-3 text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg shadow">
|
||||
<%= job.number_of_plans_a2 %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg">
|
||||
<td class="p-3 text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg shadow">
|
||||
<%= job.number_of_plans_a3 %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-right text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg">
|
||||
<td class="p-3 text-right text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg shadow">
|
||||
<%= job.costum_qm_plan.round(2) %> m²
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-right text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg">
|
||||
<td class="p-3 text-right text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 bg-gray-300 bg-opacity-50 font-medium rounded-lg shadow">
|
||||
<%= job.cost.round(2) %> €
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 block text-xs font-medium uppercase tracking-wider bg-opacity-50 w-20 text-center text-status-<%= job.status.to_sym %> bg-status-<%= job.status %>-light rounded-lg">
|
||||
<td class="p-3 text-left text-hsrm-gray whitespace-nowrap">
|
||||
<span class="p-1.5 block text-xs font-medium uppercase tracking-wider bg-opacity-50 w-20 text-center text-status-<%= job.status.to_sym %> bg-status-<%= job.status %>-light rounded-lg shadow">
|
||||
<%= job.status %>
|
||||
</span>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-right text-hsrm-gray whitespace-nowrap">
|
||||
<td class="p-3 text-right text-hsrm-gray whitespace-nowrap">
|
||||
<% if job.open? %>
|
||||
<%= button_to icon("x-circle", class: "text-hsrm-red size-8 inline", title: "Abbrechen"), cancel_job_path(job), method: :patch, form: {data: {turbo_confirm: 'Den Plottauftrag wirklich abbrechen?'}}, form_class: "inline" %>
|
||||
<% else %>
|
||||
<%= icon("x-circle", class: "text-hsrm-gray text-opacity-50 size-8 inline", title: "Kann nicht mehr abgebrochen werden") %>
|
||||
<%= icon("x-circle", class: "text-hsrm-gray text-opacity-50 size-8 inline drop-shadow", title: "Kann nicht mehr abgebrochen werden") %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user