diff options
| author | Michel Etienne | 2014-08-19 14:54:24 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-08-19 14:55:27 +0200 |
| commit | fe6da8dbd4dcffa0152b03dadb6f91af51915358 (patch) | |
| tree | a71281a98c6398ddbb7da8d53f05e61ec0d305a6 | |
| parent | ee6def8ac1675876e2ec570f9b8f5d1813abf93c (diff) | |
| download | chouette-core-fe6da8dbd4dcffa0152b03dadb6f91af51915358.tar.bz2 | |
add link for stoparea creation when editing route, Mantis 26824
| -rw-r--r-- | app/views/routes/_form.html.erb | 6 | ||||
| -rw-r--r-- | config/locales/routes.yml | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/app/views/routes/_form.html.erb b/app/views/routes/_form.html.erb index 508593d07..ff4a4403e 100644 --- a/app/views/routes/_form.html.erb +++ b/app/views/routes/_form.html.erb @@ -13,9 +13,11 @@ <%= form.semantic_fields_for :stop_points, :include_id => false, :label => "TOTO" do |p| %> <%= render "stop_point_fields", :f => p, :test1 => "oiuoiu" %> <% end %> - <div class="links"> + <div class="links"> <%= link_to_add_association t("routes.actions.add_stop_point"), form, :stop_points, :class => 'add_stop_point' %> - </div> + <br/> + <%= link_to t('routes.actions.new_stop_point'), new_referential_stop_area_path(@referential), {:class => "add", :target => "_blank"} %> + </div> </div> <%= form.actions do %> diff --git a/config/locales/routes.yml b/config/locales/routes.yml index 8ec0c876d..623b9d9fc 100644 --- a/config/locales/routes.yml +++ b/config/locales/routes.yml @@ -9,6 +9,8 @@ en: export_kml_all: "Export KML routes" export_hub: "Export HUB route" export_hub_all: "Export HUB routes" + add_stop_point: "Add stop point" + new_stop_point: "Create new stop" new: title: "Add a new route" edit: @@ -72,6 +74,8 @@ fr: export_kml_all: "Export KML des séquences d'arrêts" export_hub: "Export HUB de la séquence d'arrêts" export_hub_all: "Export HUB des séquences d'arrêts" + add_stop_point: "Ajouter un arrêt" + new_stop_point: "Créer un arrêt pour l'ajouter" new: title: "Ajouter une séquence d'arrêts" edit: |
