26 lines
837 B
Plaintext
26 lines
837 B
Plaintext
<% content_for :secondary do %>
|
|
<ul class="list">
|
|
<li><%= link_to t('admin.new_user_attribute'), new_admin_user_attribute_model_path, :class => 'button positive' %></li>
|
|
</ul>
|
|
<% end -%>
|
|
|
|
<h1><%= t('admin.list_user_attributes') %></h1>
|
|
|
|
<table>
|
|
<tr>
|
|
<th><%= t('admin.attribute') %></th>
|
|
<th><%= t('admin.key') %></th>
|
|
<th><%= t('admin.action') %></th>
|
|
</tr>
|
|
|
|
<% @user_attribute_models.each do |user_attribute_model| %>
|
|
<tr>
|
|
<td><%= user_attribute_model.i18n_variable[I18n.locale] %></td>
|
|
<td><%= user_attribute_model.key %></td>
|
|
<td>
|
|
<%= link_to t(:edit), edit_admin_user_attribute_model_path(user_attribute_model) %> |
|
|
<%= link_to t(:delete), admin_user_attribute_model_path(user_attribute_model), :confirm => t('sure?'), :method => :delete %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table> |