|
<%= job.id %>
|
<% if job.pdf.attached? && job.pdf.previewable? %>
<%= 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 %>
|
<%= job.costumer_fullname %>
|
<% if job.pdf.attached? %>
<%= truncate(job.pdf.filename.to_s, length: 45) %>
<% end %>
|
<%= job.number_of_plans_a0 %>
|
<%= job.number_of_plans_a1 %>
|
<%= job.number_of_plans_a2 %>
|
<%= job.number_of_plans_a3 %>
|
<%= job.costum_qm_plan.round(2) %> m²
|
<%= job.cost.round(2) %> €
|
<%= job.status %>
|
<% # TODO: Refactor to helper function %>
<% if defined?(no_turbo_stream) && no_turbo_stream %>
<%= turbo_frame_tag dom_id(job, :cancel_button) do %>
<%= render partial: "jobs/cancel_button", locals: { job: job } %>
<% end %>
<% else %>
<%= turbo_frame_tag dom_id(job, :cancel_button), src: cancel_button_job_path(job), loading: 'lazy' do %>
<%= icon("ellipsis-horizontal-circle", class: "icon icon-disabled size-10", title: "Loading...") %>
<% end %>
<% end %>
|