index.html.erb
1005 Bytes
<div class="container">
<h1><%= t('admin.page_langs.page_title') %></h1>
<div class="pull-right">
<%= link_to t('admin.page_langs.add_new'), new_admin_page_lang_url %>
</div>
<% if @collection.count == 0 %>
<p class="text-center"><%= t('admin.page_langs.empty_text') %></p>
<% else %>
<table class="table">
<thead>
<tr>
<th><%= t('activerecord.attributes.page_lang.code') %></th>
<th><%= t('activerecord.attributes.page_lang.title') %></th>
<th></th>
</tr>
</thead>
<tbody>
<% @collection.each do |item| %>
<tr>
<td><%= item.code %></td>
<td><%= item.title %></td>
<td>
<%= link_to 'Edit', edit_admin_page_lang_url(item) %>
<%= link_to 'Delete', admin_page_lang_url(item), :class => 'delete-row-item' %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% end %>
</div>