orbit-basic/app/views/admin/user_attribute_models/index.html.erb

27 lines
886 B
Plaintext
Raw Normal View History

<% content_for :secondary do %>
<ul class="list">
2011-02-01 07:12:23 +00:00
<li><%= link_to t("admin.new_user_#{@attribute}"), eval("new_admin_user_#{@attribute}_model_path"), :class => 'button positive' %></li>
</ul>
<% end -%>
2011-02-01 07:12:23 +00:00
<h1><%= t("admin.list_user_#{@attribute}s") %></h1>
<table>
<tr>
2011-02-01 07:12:23 +00:00
<th><%= t("admin.#{@attribute}") %></th>
<th><%= t('admin.key') %></th>
<th><%= t('admin.action') %></th>
</tr>
2011-02-01 07:12:23 +00:00
<% @user_attribute_models.each do |user_attribute_model| %>
<tr>
2011-02-01 07:12:23 +00:00
<td><%= user_attribute_model.i18n_variable[I18n.locale] %></td>
<td><%= user_attribute_model.key %></td>
<td>
2011-02-01 07:12:23 +00:00
<%= link_to t(:edit), eval("edit_admin_user_#{@attribute}_model_path(user_attribute_model)") %> |
<%= link_to t(:delete), eval("admin_user_#{@attribute}_model_path(user_attribute_model)"), :confirm => t('sure?'), :method => :delete %>
</td>
</tr>
<% end %>
2011-02-01 02:46:26 +00:00
</table>