<h1>Listing user attributes</h1>

<table>
  <tr>
      <th>名稱</th>
      <th>Key</th>
      <th></th>
      <th></th>
  </tr>

<% @user_attributes.each do |user_attribute| %>
  <tr>
    <td><%= user_attribute.name %></td>
    <td><%= user_attribute.key %></td>
    <td><%= link_to t(:edit), edit_admin_user_attribute_path(user_attribute) %></td>
    <td><%= link_to t(:delete), admin_user_attribute_path(user_attribute), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to t(:new_user_attribute, :scope => :admin), new_admin_user_attribute_path, :class => 'button positive' %>