Sha256: 086ab672698f1697b91520f78c0f70abadd6905a899cf148c4b0f12708549974
Contents?: true
Size: 1.67 KB
Versions: 7
Compression:
Stored size: 1.67 KB
Contents
<%= render partial: 'search' %> <h1><%= t '.title' %></h1> <table class='table table-striped table-condensed table-bordered'> <thead> <tr> <th><%=t 'bookkeeper.models.purchase.attributes.title' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.description' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.purchase_date' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.warranty_duration' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.receipt' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.updated_at' %></th> <th></th> </tr> </thead> <tbody> <% @purchases.each do |purchase| %> <tr> <td><%= purchase.title %></td> <td><%= purchase.description %></td> <td><%=l purchase.purchase_date rescue '' %></td> <td><%= purchase.warranty_duration %> <%=t '.months' %></td> <td><%= link_to "<i class='icon-download-alt'></i> #{purchase.receipt.file.filename}".html_safe, purchase.receipt.url, class: 'btn btn-mini' if purchase.receipt.file %></td> <td><%=l purchase.updated_at, format: :short rescue '' %></td> <td> <%= link_to ('<i class="icon-pencil"></i> ' + t('bookkeeper.actions.edit')).html_safe, edit_purchase_path(purchase), class: 'btn btn-mini' %> <%= link_to ('<i class="icon-remove"></i> ' + t('bookkeeper.actions.destroy')).html_safe, purchase, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-mini btn-danger' %> </td> </tr> <% end %> </tbody> </table> <br /> <%= link_to ('<i class="icon-plus"></i> ' + t('bookkeeper.actions.new')).html_safe, new_purchase_path, class: 'btn' %>
Version data entries
7 entries across 6 versions & 1 rubygems