<%- model_class = SponzorskeDary.new.class -%>
<div class="page-header">
  <h1><%=t '.title', :default => model_class.model_name.human.pluralize %></h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Dar) %></th> -->
      <th><%= model_class.human_attribute_name(:Nazov) %></th>
      <th><%= model_class.human_attribute_name(:Popis) %></th>
      <th><%= model_class.human_attribute_name(:Suma) %></th>
      <th>Stav sponzorských darov:</th>
      <th>Názov podujatia:</th>
      <th>Názov firmy:</th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @sponzorske_daries.each do |sponzorske_dary| %>
      <tr>
<!--        <td><#%= link_to sponzorske_dary.id, sponzorske_dary_path(sponzorske_dary) %></td> -->
<!--        <td><#%= sponzorske_dary.ID_Dar %></td> -->
        <td><%= sponzorske_dary.Nazov %></td>
        <td><%= sponzorske_dary.Popis %></td>
        <td><%= sponzorske_dary.Suma %></td>
        <td><%= sponzorske_dary.c_stav_sponzor_dar.Nazov %></td>
        <td><%= sponzorske_dary.podujatia.Nazov %></td>
        <td><%= sponzorske_dary.firmy.Nazov %></td>
<!--        <td><#%=l sponzorske_dary.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_sponzorske_dary_path(sponzorske_dary), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      sponzorske_dary_path(sponzorske_dary),
                      :method => :delete,
                      :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Ste si istý?')),
                      :class => 'btn btn-mini btn-danger' %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= link_to 'Nový',
            new_sponzorske_dary_path,
            :class => 'btn btn-primary' %>
