forked from spen/seminar
66 lines
2.2 KiB
Plaintext
66 lines
2.2 KiB
Plaintext
|
|
<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>
|
|
<th class='span2'><%= t('seminar_signup.file_note')%></th>
|
|
<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>
|
|
<td><%= t("seminar.registration_status_#{seminar_signup.status}") if !seminar_signup.status.blank? %>
|
|
</td>
|
|
<td>
|
|
<li><%= seminar_signup_contribute.description.to_s.html_safe %></li>
|
|
</ul>
|
|
</td>
|
|
<td>
|
|
<ul>
|
|
<% seminar_signup.seminar_signup_contributes.collect do |seminar_signup_contribute| %>
|
|
<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>
|
|
<% end %>
|
|
</td>
|
|
</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 %>
|