aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/breadcrumbs.rb10
-rw-r--r--config/locales/calendars.en.yml2
-rw-r--r--config/locales/calendars.fr.yml2
-rw-r--r--config/locales/dashboard.en.yml16
-rw-r--r--config/locales/dashboard.fr.yml12
-rw-r--r--config/locales/purchase_windows.en.yml78
-rw-r--r--config/locales/purchase_windows.fr.yml79
-rw-r--r--config/routes.rb2
8 files changed, 201 insertions, 0 deletions
diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb
index 9a748cb21..2cafc4419 100644
--- a/config/breadcrumbs.rb
+++ b/config/breadcrumbs.rb
@@ -167,6 +167,16 @@ crumb :line do |line|
parent :lines, line.line_referential
end
+crumb :purchase_windows do |referential|
+ link I18n.t('purchase_windows.index.title'), referential_purchase_windows_path(referential)
+ parent :referential, referential
+end
+
+crumb :purchase_window do |referential, purchase_window|
+ link breadcrumb_name(purchase_window), referential_purchase_window_path(referential, purchase_window)
+ parent :purchase_windows, referential
+end
+
crumb :calendars do
link I18n.t('calendars.index.title'), calendars_path
end
diff --git a/config/locales/calendars.en.yml b/config/locales/calendars.en.yml
index d3cc57677..a2110d053 100644
--- a/config/locales/calendars.en.yml
+++ b/config/locales/calendars.en.yml
@@ -41,6 +41,8 @@ en:
date: Date
new:
title: Add a new calendar
+ create:
+ title: Add a new calendar
edit:
title: Update calendar %{name}
show:
diff --git a/config/locales/calendars.fr.yml b/config/locales/calendars.fr.yml
index fc895bf89..bd3051730 100644
--- a/config/locales/calendars.fr.yml
+++ b/config/locales/calendars.fr.yml
@@ -41,6 +41,8 @@ fr:
date: Date
new:
title: Ajouter un calendrier
+ create:
+ title: Ajouter un calendrier
edit:
title: Editer le calendrier %{name}
show:
diff --git a/config/locales/dashboard.en.yml b/config/locales/dashboard.en.yml
new file mode 100644
index 000000000..8d46ff7aa
--- /dev/null
+++ b/config/locales/dashboard.en.yml
@@ -0,0 +1,16 @@
+en:
+ dashboards:
+ show:
+ title: "Dashboard %{organisation}"
+ calendars:
+ title: Calendars
+ none: No calendar created
+ purchase_windows:
+ title: Purchase windows
+ none: No purchase window created
+ line_referentials:
+ title: Line referential
+ none: No line referential created
+ stop_area_referentials:
+ title: Stop area referential
+ none: No stop area referential created
diff --git a/config/locales/dashboard.fr.yml b/config/locales/dashboard.fr.yml
index fffb36cd1..d0aa36d61 100644
--- a/config/locales/dashboard.fr.yml
+++ b/config/locales/dashboard.fr.yml
@@ -2,3 +2,15 @@ fr:
dashboards:
show:
title: "Tableau de bord %{organisation}"
+ calendars:
+ title: Modèles de calendrier
+ none: Aucun calendrier défini
+ purchase_windows:
+ title: Calendriers commerciaux
+ none: Aucun calendrier commercial défini
+ line_referentials:
+ title: Référentiels de lignes
+ none: Aucun référentiels de lignes défini
+ stop_area_referentials:
+ title: Référentiels d'arrêts
+ none: Aucun référentiels d'arrêts défini
diff --git a/config/locales/purchase_windows.en.yml b/config/locales/purchase_windows.en.yml
new file mode 100644
index 000000000..5ffed305a
--- /dev/null
+++ b/config/locales/purchase_windows.en.yml
@@ -0,0 +1,78 @@
+en:
+ purchase_windows:
+ search_no_results: 'No purchase window matching your query'
+ days:
+ monday: M
+ tuesday: Tu
+ wednesday: W
+ thursday: Th
+ friday: F
+ saturday: Sa
+ sunday: Su
+ months:
+ 1: January
+ 2: February
+ 3: March
+ 4: April
+ 5: May
+ 6: June
+ 7: July
+ 8: August
+ 9: September
+ 10: October
+ 11: November
+ 12: December
+ actions:
+ new: Add a new purchase window
+ edit: Edit this purchase window
+ destroy: Remove this purchase window
+ destroy_confirm: Are you sure you want destroy this purchase window?
+ errors:
+ overlapped_periods: Another period is overlapped with this period
+ short_period: A period needs to last at least two days
+ index:
+ title: purchase windows
+ all: All
+ shared: Shared
+ not_shared: Not shared
+ search_no_results: No purchase window matching your query
+ date: Date
+ filter_placeholder: Put the name of a purchase window...
+ create:
+ title: Add a new purchase window
+ new:
+ title: Add a new purchase window
+ edit:
+ title: Update purchase window %{name}
+ show:
+ title: purchase window %{name}
+ simple_form:
+ labels:
+ purchase_windows:
+ date_value: Date
+ add_a_date: Add a date
+ add_a_date_range: Add a date range
+ ranges:
+ begin: Beginning
+ end: End
+ activerecord:
+ models:
+ purchase_window:
+ zero: purchase window
+ one: purchase window
+ other: purchase windows
+ attributes:
+ purchase_windows:
+ name: Name
+ date_ranges: Date ranges
+ referential: Referential
+ color: Color
+ bounding_dates: Bounding Dates
+ errors:
+ models:
+ purchase_windows:
+ attributes:
+ dates:
+ date_in_date_ranges: A date can not be in Dates and in Date ranges.
+ date_in_dates: A date can appear only once in the list of dates.
+ illegal_date: The date %{date} does not exist.
diff --git a/config/locales/purchase_windows.fr.yml b/config/locales/purchase_windows.fr.yml
new file mode 100644
index 000000000..df5d45d82
--- /dev/null
+++ b/config/locales/purchase_windows.fr.yml
@@ -0,0 +1,79 @@
+fr:
+ purchase_windows:
+ search_no_results: 'Aucun calendrier commercial ne correspond à votre recherche'
+ days:
+ monday: L
+ tuesday: Ma
+ wednesday: Me
+ thursday: J
+ friday: V
+ saturday: S
+ sunday: D
+ months:
+ 1: Janvier
+ 2: Février
+ 3: Mars
+ 4: Avril
+ 5: Mai
+ 6: Juin
+ 7: Juillet
+ 8: Août
+ 9: Septembre
+ 10: Octobre
+ 11: Novembre
+ 12: Décembre
+ actions:
+ new: Créer
+ edit: Editer
+ destroy: Supprimer
+ destroy_confirm: Etes vous sûr de supprimer cet calendrier commercial ?
+ errors:
+ overlapped_periods: Une autre période chevauche cette période
+ short_period: Une période doit être d'un duréé de deux jours minimum
+ index:
+ title: Calendriers commerciaux
+ all: Tous
+ shared: Partagées
+ not_shared: Non partagées
+ search_no_results: Aucun calendrier commercial ne correspond à votre recherche
+ date: Date
+ filter_placeholder: Indiquez un nom de calendrier commercial...
+ new:
+ title: Ajouter un calendrier commercial
+ create:
+ title: Ajouter un calendrier commercial
+ edit:
+ title: Editer le calendrier commercial %{name}
+ show:
+ title: Calendrier commercial %{name}
+ simple_form:
+ labels:
+ calendar:
+ date_value: Date
+ add_a_date: Ajouter une date
+ add_a_date_range: Ajouter un intervalle de dates
+ ranges:
+ begin: Début
+ end: Fin
+ activerecord:
+ models:
+ purchase_window:
+ zero: "calendrier commercial"
+ one: "calendrier commercial"
+ other: "calendriers commerciaux"
+ attributes:
+ purchase_window:
+ name: Nom
+ short_name: Nom court
+ date_ranges: Intervalles de dates
+ referential: Jeu de données
+ color: Couleur
+ bounding_dates: Période englobante
+ errors:
+ models:
+ purchase_window:
+ attributes:
+ dates:
+ date_in_date_ranges: Une même date ne peut pas être incluse à la fois dans la liste et dans les intervalles de dates.
+ date_in_dates: Une même date ne peut pas être incluse plusieurs fois dans la liste.
+ illegal_date: La date %{date} n'existe pas.
diff --git a/config/routes.rb b/config/routes.rb
index 6668aa402..d097d2d71 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -173,6 +173,8 @@ ChouetteIhm::Application.routes.draw do
resources :companies, controller: "referential_companies"
+ resources :purchase_windows
+
resources :time_tables do
collection do
get :tags