<%= purchase.title %> |
<%= purchase.description %> |
<%=l purchase.purchase_date rescue '' %> |
<%= purchase.warranty_duration %> <%=t '.months' %> |
<%= link_to " #{purchase.receipt.file.filename}".html_safe, purchase.receipt.url, class: 'btn btn-mini' if purchase.receipt.file %> |
<%= link_to (' ' + t('bookkeeper.actions.edit')).html_safe, edit_purchase_path(purchase), class: 'btn btn-mini' %>
<%= link_to (' ' + t('bookkeeper.actions.destroy')).html_safe, purchase, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-mini btn-danger' %>
|
<% end %>