app/views/admin/levels/index.html.haml
- model_class = Level
.page-header
%h1=t '.title', :default => model_class.model_name.human.pluralize.titleize
%table.table.table-striped
%thead
%tr
%th= model_class.human_attribute_name(:seq_number)
%th= model_class.human_attribute_name(:name)
%th=t '.actions', :default => t("helpers.actions")
%tbody
- @levels.each do |level|
%tr
%td= level.seq_number
%td= link_to level.name, admin_level_path(level)
%td
= link_to t('.edit', :default => t("helpers.links.edit")), edit_admin_level_path(level), :class => 'btn btn-mini'
= link_to t('.destroy', :default => t("helpers.links.destroy")), admin_level_path(level), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger'
= link_to t('.new', :default => t("helpers.links.new")), new_admin_level_path, :class => 'btn btn-primary'