<%- model_class = Videa.new.class -%>
<div class="page-header">
  <h1>Zoznam videí</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Video) %></th> -->
      <th><%= model_class.human_attribute_name(:Popis) %></th>
      <th><%= model_class.human_attribute_name(:Datum_Vlozenia) %></th>
      <th><%= model_class.human_attribute_name(:Nazov_Suboru) %></th>
      <th>Meno klienta</th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @videas.each do |videa| %>
      <tr>
<!--        <td><#%= link_to videa.id, videa_path(videa) %></td> -->
<!--        <td><#%= videa.ID_Video %></td> -->
        <td><%= videa.Popis %></td>
        <td><%= videa.Datum_Vlozenia %></td>
        <td><%= videa.Nazov_Suboru %></td>
        <td><%= videa.klienti.Meno + ' ' + videa.klienti.Priezvisko %></td>
<!--        <td><#%=l videa.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_videa_path(videa), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      videa_path(videa),
                      :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_videa_path,
            :class => 'btn btn-primary' %>
