Sha256: 2c1bc97f1f5e6c1965a710b446734fffa79be273cc9e7a14e105aeff6bbf1cea

Contents?: true

Size: 1.5 KB

Versions: 6

Compression:

Stored size: 1.5 KB

Contents

<h1><%= t '.title', q: @q %></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></th>
    </tr>
  </thead>
  <tbody>
    <% @results.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>
          <%= 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-arrow-left"></i> ' + t('bookkeeper.actions.back')).html_safe, purchases_path, class: 'btn' %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bookkeeper-0.0.7 app/views/bookkeeper/search/create.html.erb
bookkeeper-0.0.6 app/views/bookkeeper/search/create.html.erb
bookkeeper-0.0.5 app/views/bookkeeper/search/create.html.erb
bookkeeper-0.0.4 app/views/bookkeeper/search/create.html.erb
bookkeeper-0.0.3 app/views/bookkeeper/search/create.html.erb
bookkeeper-0.0.2 app/views/bookkeeper/search/create.html.erb