Small design changes in operator/job_tr

This commit is contained in:
2024-09-16 11:03:07 +02:00
parent 0116e94475
commit 216cad306c

View File

@@ -17,12 +17,16 @@
</td>
<td class="p-2 py-3">
<% if job.pdf.attached? %>
<%= link_to_if job.printing?, icon("document-arrow-down", class: "text-hsrm-gray #{ unless job.printing?; 'text-opacity-25' else; 'hover:text-opacity-75'; end} size-6 inline", title: "Download"), job.pdf, download:true %>
<%#= link_to job.pdf.filename, rails_blob_path(job.pdf, disposition: "attachment") %>
<%= link_to_if job.printing?, truncate(job.pdf.filename.to_s, length: 45), job.pdf, download:true %>
<span class="ml-2 badge">
<%=number_to_human_size job.pdf.blob.byte_size%>
</span>
<% if job.printing? %>
<%= link_to job.pdf, download:true do %>
<span class="badge badge-hover">
<%= icon("document-arrow-down", class: "text-hsrm-gray size-6 inline", title: "Download") %>
<%=number_to_human_size job.pdf.blob.byte_size%>
</span>
<% end %>
<% end %>
<% end %>
</td>
<% Job::AVAILABLE_PAGE_FORMATS.each do |din| %>
@@ -30,7 +34,7 @@
<% if job.printing? %>
<div class="flex flex-col items-center">
<span class="p-1 badge badge-hover">
<%= button_to icon("chevron-up", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
<%= button_to icon("plus", class: "size-5 inline", title: "erhöhen"), increment_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
</span>
<% end %>
<span class="badge">
@@ -38,7 +42,7 @@
</span>
<% if job.printing? %>
<span class="p-1 badge badge-hover">
<%= button_to icon("chevron-down", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
<%= button_to icon("minus", class: "size-5 inline", title: "verringern"), decrement_page_operator_job_path(job, din:), method: :patch, form_class: "inline" %>
</span>
</div>
<% end %>