1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/views/api/members/export_members.xls.erb

31 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-05-05 03:10:25 +02:00
<table border="1">
<tr>
2016-03-23 18:39:41 +01:00
<th><%=t('export_members.id')%></th>
<th><%=t('export_members.surname')%></th>
<th><%=t('export_members.first_name')%></th>
<th><%=t('export_members.email')%></th>
<th><%=t('export_members.gender')%></th>
<th><%=t('export_members.age')%></th>
<th><%=t('export_members.phone')%></th>
<th><%=t('export_members.group')%></th>
<th><%=t('export_members.subscription')%></th>
<th><%=t('export_members.subscription_end_date')%></th>
<th><%=t('export_members.validated_trainings')%></th>
2015-05-05 03:10:25 +02:00
</tr>
<% @datas.each do |data| %>
<tr>
<td><%= data.id %></td>
<td><%= data.profile.last_name %></td>
<td><%= data.profile.first_name %></td>
<td><%= data.email %></td>
2016-03-23 18:39:41 +01:00
<td><%= data.profile.gender ? t('export_members.man') : t('export_members.woman') %></td>
2015-05-05 03:10:25 +02:00
<td><%= data.profile.age %></td>
<td><%= data.profile.phone %></td>
<td><%= data.group.name %></td>
2016-03-23 18:39:41 +01:00
<td><%= (data.subscription and data.subscription.expired_at > Time.now) ? data.subscription.plan.name : t('export_members.without_subscriptions') %></td>
<td><%= (data.subscription and data.subscription.expired_at > Time.now) ? data.subscription.expired_at : '' %></td>
<td><%= raw data.trainings.map(&:name).join('&#10;') %></td>
2015-05-05 03:10:25 +02:00
</tr>
<% end %>
</table>