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

66 lines
2.2 KiB
Plaintext
Raw Normal View History

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>
<td>
<li><%= seminar_signup_contribute.description.to_s.html_safe %></li>
</ul>
</td>
2016-06-29 06:57:45 +00:00
<td>
<ul>
<% seminar_signup.seminar_signup_contributes.collect do |seminar_signup_contribute| %>
2019-11-13 03:36:06 +00:00
<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>
2016-06-29 06:57:45 +00:00
<% 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 %>