2014-05-26 01:45:46 +00:00
|
|
|
<% content_for :side_bar do %>
|
|
|
|
<%= render :partial => 'admin/members/side_bar' %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="list-view">
|
|
|
|
<table id="member-list" class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr class="sort-header">
|
|
|
|
<th class="span3"><a href="#"><%= t('key') %></a></th>
|
|
|
|
<th class="span4"><a href="#"><%= t('title') %></a></th>
|
|
|
|
<th><a href="#"><%= t('type') %></a></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2014-06-03 03:01:03 +00:00
|
|
|
<% @attributes.each do |attribute| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= attribute.key %></td>
|
|
|
|
<td>
|
|
|
|
<%= attribute.title %>
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<%= content_tag(:li, link_to(t(:edit),edit_admin_member_info_path(attribute))) if current_user.is_admin? %>
|
|
|
|
<%= content_tag(:li, link_to(t(:delete_),admin_member_info_path(attribute, :at=>params[:at]), :confirm => t(:sure?), :method => :delete, :class=>"text-error", :remote => true)) if current_user.is_admin? %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td><%= attribute.key %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2014-05-26 01:45:46 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|