2021-04-24 10:41:50 +00:00
|
|
|
<% 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>
|
2021-03-17 07:33:31 +00:00
|
|
|
|
2021-04-24 10:41:50 +00:00
|
|
|
<%= render :partial => "sessions_filter", :locals =>{:fields => @filter_fields.to_h, :search_dom_id=>"index_table", :quick_new=>false} %>
|
2021-03-17 07:33:31 +00:00
|
|
|
|
2021-04-24 10:41:50 +00:00
|
|
|
<h4><%= @seminar.title %></h4>
|
|
|
|
<div id="index_table">
|
|
|
|
<%= render :partial => "seminar_signup_render_table" %>
|
|
|
|
</div>
|
2021-03-17 07:33:31 +00:00
|
|
|
|
2021-04-24 10:41:50 +00:00
|
|
|
<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>
|
2021-03-17 07:33:31 +00:00
|
|
|
|
2021-04-24 10:41:50 +00:00
|
|
|
<%= render 'layouts/delete_modal', delete_options: @delete_options %>
|
|
|
|
<% end %>
|