<%- model_class = CTypCinnosti.new.class -%>
<div class="page-header">
  <h1>Zoznam typov činností</h1>
</div>
<table class="table table-striped">
  <thead>
    <tr>
<!--      <th><#%= model_class.human_attribute_name(:id) %></th> -->
<!--      <th><#%= model_class.human_attribute_name(:ID_Typ_Cinnosti) %></th> -->
      <th><%= model_class.human_attribute_name(:Nazov) %></th>
      <th><%= model_class.human_attribute_name(:Popis) %></th>
<!--      <th><#%= model_class.human_attribute_name(:created_at) %></th> -->
<!--      <th><#%=t '.actions', :default => t("helpers.actions") %></th> -->
    </tr>
  </thead>
  <tbody>
    <% @c_typ_cinnostis.each do |c_typ_cinnosti| %>
      <tr>
<!--        <td><#%= link_to c_typ_cinnosti.id, c_typ_cinnosti_path(c_typ_cinnosti) %></td> -->
<!--        <td><#%= c_typ_cinnosti.ID_Typ_Cinnosti %></td> -->
        <td><%= c_typ_cinnosti.Nazov %></td>
        <td><%= c_typ_cinnosti.Popis %></td>
<!--        <td><#%=l c_typ_cinnosti.created_at %></td> -->
        <td>
          <%= link_to 'Upraviť',
                      edit_c_typ_cinnosti_path(c_typ_cinnosti), :class => 'btn btn-mini' %>
          <%= link_to 'Vymazať',
                      c_typ_cinnosti_path(c_typ_cinnosti),
                      :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_c_typ_cinnosti_path,
            :class => 'btn btn-primary' %>
