aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/exports
diff options
context:
space:
mode:
authorZakaria BOUZIANE2014-11-24 09:25:59 +0100
committerZakaria BOUZIANE2014-11-24 09:25:59 +0100
commit05e441cf7841a61e40a01a783d1b4f2fb0cd1a68 (patch)
treed0bd95d1278e9fbacb033af218695409fb0bfeb3 /app/views/exports
parent3d61c788b87c8a4017dc86c4f2bc211fc784af14 (diff)
downloadchouette-core-05e441cf7841a61e40a01a783d1b4f2fb0cd1a68.tar.bz2
HUB Export only if less than 50000 VehicleJourneyAtStops and start_date and end_date are provided
Diffstat (limited to 'app/views/exports')
-rw-r--r--app/views/exports/_fields_hub_export.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/exports/_fields_hub_export.erb b/app/views/exports/_fields_hub_export.erb
index fc7cf7112..8f51c104b 100644
--- a/app/views/exports/_fields_hub_export.erb
+++ b/app/views/exports/_fields_hub_export.erb
@@ -1,2 +1,3 @@
+<%= I18n.t("formtastic.titles.export.vjas.size", size: Chouette::VehicleJourneyAtStop.all.count) if Chouette::VehicleJourneyAtStop.all.count > 50000 %>
<%= form.input :start_date, :as => :date_picker, :input_html => { :title => t("formtastic.titles.export.start_date")} %>
<%= form.input :end_date, :as => :date_picker, :input_html => { :title => t("formtastic.titles.export.end_date")} %>