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

33 lines
917 B
Plaintext
Raw Normal View History

2014-10-02 06:00:35 +00:00
<%= 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>
<%= form_for @ask_admin, url: @url, html: { class: 'form-horizontal' } do |f| %>
<%= render :partial => 'ask_admin_form', locals: {f: f} %>
2014-10-02 06:00:35 +00:00
<% end %>