2016-06-29 06:57:45 +00:00
|
|
|
|
|
|
|
<span id="index_table">
|
|
|
|
<script>
|
|
|
|
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<form id="module-search-form">
|
|
|
|
<div class="sc-field">
|
|
|
|
<input id="filter-input" class="search-query input-medium" type="text" name="search" value="<%= params[:search] %>" placeholder="搜尋">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<h4><%= @seminar.title %></h4>
|
|
|
|
|
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr class="sort-header">
|
|
|
|
<th class='span2'><%= t('seminar_signup.name')%></th>
|
|
|
|
<th class='span2'><%= t('seminar.registration_status')%></th>
|
2019-11-13 03:36:06 +00:00
|
|
|
<th class='span2'><%= t('seminar_signup.file_note')%></th>
|
2016-06-29 06:57:45 +00:00
|
|
|
<th class='span2'><%= t('seminar_signup.uploads')%></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @seminar_signups.each do |seminar_signup| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<%= seminar_signup.name %>
|
|
|
|
<div class="quick-edit">
|
|
|
|
<ul class="nav nav-pills">
|
|
|
|
<% if can_edit_or_delete?(seminar_signup) %>
|
|
|
|
<li><a href="/admin/seminar_signups/<%=seminar_signup.id.to_s%>/edit"><%= t(:edit) %></a></li>
|
|
|
|
<li><a href="#" class="delete text-error" rel="/admin/seminar_signups/<%=seminar_signup.id.to_s%>"><%= t(:delete_) %></a></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
2019-11-13 03:36:06 +00:00
|
|
|
<td><%= t("seminar.registration_status_#{seminar_signup.status}") if !seminar_signup.status.blank? %>
|
|
|
|
</td>
|
2019-11-13 03:40:24 +00:00
|
|
|
<ul>
|
|
|
|
<% seminar_signup.seminar_signup_contributes.collect do |seminar_signup_contribute| %>
|
|
|
|
<td>
|
|
|
|
<li><%= link_to (seminar_signup_contribute.title.blank? ? File.basename(seminar_signup_contribute.file.path) : seminar_signup_contribute.title) , seminar_signup_contribute.file.url, {:target => '_blank'} if seminar_signup_contribute.file.file %>
|
|
|
|
</li>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<li><%= seminar_signup_contribute.description.to_s.html_safe %></li>
|
|
|
|
</td>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2016-06-29 06:57:45 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<%=
|
|
|
|
content_tag :div, class: "bottomnav clearfix" do
|
|
|
|
content_tag :div, paginate(@seminar_signups), class: "pagination pagination-centered"
|
|
|
|
end
|
|
|
|
%>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<%= render 'layouts/delete_modal', delete_options: @delete_options %>
|