1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

[#16] add email field to reservations export

This commit is contained in:
Sylvain 2016-03-31 11:52:49 +02:00
parent bd4ce58c64
commit d97c336512
4 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class API::MembersController < API::ApiController
head :no_content
end
# export abonnements
# export subscriptions
def export_subscriptions
authorize :export
@datas = Subscription.includes(:plan, :user).all

View File

@ -2,6 +2,7 @@
<tr>
<th><%=t('export_reservations.customer_id')%></th>
<th><%=t('export_reservations.customer')%></th>
<th><%=t('export_reservations.email')%></th>
<th><%=t('export_reservations.reservation_date')%></th>
<th><%=t('export_reservations.reservation_type')%></th>
<th><%=t('export_reservations.reservation_object')%></th>
@ -12,6 +13,7 @@
<tr>
<td><%= d.user.id %></td>
<td><%= d.user.profile.full_name %></td>
<td><%= d.user.email %></td>
<td><%= d.created_at %></td>
<td><%= d.reservable_type %></td>
<td><%= d.reservable.name if !d.reservable.nil? %></td>

View File

@ -129,6 +129,7 @@ en:
# machines/trainings/events reservations list to EXCEL format
customer_id: "Customer ID"
customer: "Customer"
email: "E-mail"
reservation_date: "Reservation date"
reservation_type: "Reservation type"
reservation_object: "Reservation object"

View File

@ -129,6 +129,7 @@ fr:
# export de la liste des réservations machines/formations/évènements au format EXCEL
customer_id: "ID client"
customer: "Client"
email: "Courriel"
reservation_date: "Date de réservation"
reservation_type: "Type de réservation"
reservation_object: "Objet de la réservation"