orbit4-5/app/views/admin/member_infos/index.html.erb

34 lines
1.1 KiB
Plaintext
Raw Normal View History

<% 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>
<% @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 %>
</tbody>
</table>
</div>