seminar/app/views/seminars/registered_participants.htm...

44 lines
1.0 KiB
Plaintext
Raw Normal View History

2021-11-30 01:57:52 +00:00
<%
data = action_data
seminar = data["seminar"]
seminar_template_setting = data["seminar_template_setting"]
display_unit = (!seminar.seminar_signup_field_sets.select{|v| v.field_name=='unit'}[0].disabled rescue false)
%>
<style type="text/css">
#seminar_participants th {
vertical-align: top;
color: #fff;
text-align: left;
background: #f17655;
}
#seminar_participants tr:nth-child(2n) {
background: #f8f9e6;
}
</style>
<h3><%= I18n.t("seminar.participant_list") %></h3>
<table cellspacing="0" class="table" width="100%" id="seminar_participants">
<thead>
<tr>
<th><%= I18n.t("seminar_signup.name") %></th>
<% if display_unit %>
<th><%= I18n.t("seminar_signup.unit") %></th>
<% end %>
</tr>
</thead>
<tbody>
<% if display_unit %>
<% seminar.seminar_signups.each do |ss| %>
<tr>
<td><%= ss.name %></td>
<td><%= ss.unit %></td>
</tr>
<% end %>
<% else %>
<% seminar.seminar_signups.each do |ss| %>
<tr>
<td><%= ss.name %></td>
</tr>
<% end %>
<% end %>
</tbody>
</table>