active/app/views/admin/actives/act_signup.html.erb

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-11-10 02:24:07 +00:00
<span id="index_table">
<script>
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
</script>
<h4><%= @act.title %></h4>
<table class="table main-list">
<thead>
<tr class="sort-header">
<th class='span2'><%= t('act_signup.name')%></th>
<th class='span2'><%= t('act_signup.tel')%></th>
<th class='span2'><%= t(:email)%></th>
</tr>
</thead>
<tbody>
<% @act_signups.each do |act_signup| %>
<tr>
<td>
<%= act_signup.name %>
<div class="quick-edit">
<ul class="nav nav-pills">
<% if can_edit_or_delete?(act_signup) %>
<li><a href="/admin/active_signups/<%=act_signup.id.to_s%>/edit"><%= t(:edit) %></a></li>
<li><a href="#" class="delete text-error" rel="/admin/active_signups/<%=act_signup.id.to_s%>"><%= t(:delete_) %></a></li>
<% end %>
</ul>
</div>
</td>
<td><%= act_signup.tel %></td>
<td><%= act_signup.email %></td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@act_signups), class: "pagination pagination-centered"
end
%>
</span>
<%= render 'layouts/delete_modal', delete_options: @delete_options %>