41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
|
<table class="table main-list">
|
||
|
<thead>
|
||
|
<tr class="sort-header">
|
||
|
<% @table_fields.each do |f| %>
|
||
|
<%= thead(f) %>
|
||
|
<% end %>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% @counselors.each do |counselor| %>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<a href="#"><%= counselor.account %></a>
|
||
|
<div class="quick-edit">
|
||
|
<ul class="nav nav-pills">
|
||
|
<% if can_edit_or_delete?(counselor) %>
|
||
|
<li><a href="<%= edit_admin_member_counselor_path(counselor, :page => params[:page]) %>"><%= t(:edit) %></a></li>
|
||
|
<li><a href="<%= admin_member_counselor_path(counselor, :page => params[:page]) %>" data-method="delete" data-confirm="Are you sure?" class="delete text-error"><%= t(:delete_) %></a></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td>
|
||
|
<%= counselor.name rescue "" %>
|
||
|
<% if (!counselor.enabled) %>
|
||
|
<span class='label'><%= t(:disabled) %></span>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
<td>
|
||
|
<%= counselor.get_user_type %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<%=
|
||
|
content_tag :div, class: "bottomnav clearfix" do
|
||
|
content_tag :div, paginate(@counselors), class: "pagination pagination-centered"
|
||
|
end
|
||
|
%>
|