ask/app/views/admin/ask_admins/index.html.erb

33 lines
995 B
Plaintext

<%= render 'layouts/delete_modal', delete_options: @delete_options %>
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @ask_admins.each do |a| %>
<tr>
<td>
<%= a.email %>
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(a) %>
<li><a href="/admin/ask_admins/<%=a.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="#" class="delete text-error" rel="/admin/ask_admins/<%=a.id.to_s%>"><%= t(:delete_) %></a></li>
<% end %>
</ul>
</div>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= javascript_include_tag 'validator' %>
<%= form_for @ask_admin, url: admin_ask_admins_path, html: {class: "form-horizontal main-forms previewable"} do |f| %>
<%= render :partial => 'ask_admin_form', locals: {f: f} %>
<% end %>