Added pdf file upload
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
<tr id="<%= dom_id job %>" class="<%= cycle('bg-gray-50','bg-gray-200') %> ">
|
||||
<td class="p-3 text-sm text-hsrm-gray"> <%= job.id %> </td>
|
||||
<td class="p-3 text-sm text-hsrm-gray"> <%= job.fullname %> </td>
|
||||
<td class="p-3 text-sm text-hsrm-gray"> <%= job.pdf %> </td>
|
||||
<td class="p-3 text-sm text-hsrm-gray">
|
||||
<% if job.pdf.attached? %>
|
||||
<%= job.pdf.filename %><span class="p-1.5 bg-gray-300 font-medium rounded-lg shadow-lg ml-2"><%=number_to_human_size job.pdf.blob.byte_size%></span>
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="p-3 text-sm text-center text-hsrm-gray"><span class="p-1.5 bg-gray-300 font-medium rounded-lg"> <%= job.number_of_plans_a0 %></span> </td>
|
||||
<td class="p-3 text-sm text-center text-hsrm-gray"><span class="p-1.5 bg-gray-300 font-medium rounded-lg"><%= job.number_of_plans_a1 %></span> </td>
|
||||
<td class="p-3 text-sm text-center text-hsrm-gray"><span class="p-1.5 bg-gray-300 font-medium rounded-lg"><%= job.number_of_plans_a2 %> </span></td>
|
||||
|
||||
Reference in New Issue
Block a user