seminar/app/views/admin/seminars/_seminar_signup_table.html.erb

30 lines
1.2 KiB
Plaintext
Raw Normal View History

<% if request.xhr? %>
<div id="index_table">
<%= render :partial => "seminar_signup_render_table" %>
</div>
<% else %>
<form id="module-search-form">
<div class="sc-field">
<input name="type" value="<%=params[:type]%>" type="hidden">
<input id="filter-input" class="search-query input-medium" type="text" name="search" value="<%= params[:search] %>" placeholder="搜尋">
</div>
</form>
<%= render :partial => "sessions_filter", :locals =>{:fields => @filter_fields.to_h, :search_dom_id=>"index_table", :quick_new=>false} %>
<h4><%= @seminar.title %></h4>
<div id="index_table">
<%= render :partial => "seminar_signup_render_table" %>
</div>
<div class="bottomnav clearfix">
<div class="pagination pagination-centered"><%= (paginate(@seminar_signups) rescue nil) %></div>
<% if @can_edit %>
<div class="action pull-right">
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t("seminar.field_display_setting"), seminar_signup_admin_setting_admin_seminar_path(params[:id]) + "?page=table", :class => 'btn btn-primary' %>
</div>
<% end %>
</div>
<%= render 'layouts/delete_modal', delete_options: @delete_options %>
<% end %>