diff options
| -rw-r--r-- | app/views/stop_areas/show.html.erb | 21 | ||||
| -rw-r--r-- | config/locales/stop_areas.yml | 4 |
2 files changed, 17 insertions, 8 deletions
diff --git a/app/views/stop_areas/show.html.erb b/app/views/stop_areas/show.html.erb index 72c0ae168..fdd9f120c 100644 --- a/app/views/stop_areas/show.html.erb +++ b/app/views/stop_areas/show.html.erb @@ -164,16 +164,21 @@ <ul class="actions"> <li><%= link_to t('stop_areas.actions.edit'), edit_referential_stop_area_path(@referential, @stop_area), :class => "edit" %></li> <li><%= link_to t('stop_areas.actions.destroy'), referential_stop_area_path(@referential, @stop_area), :method => :delete, :confirm => t('stop_areas.actions.destroy_confirm'), :class => "remove" %></li> +</ul> <% if @stop_area.stop_area_type == 'itl' %> - <li><%= link_to t('stop_areas.actions.add_routing_lines'), add_routing_lines_referential_stop_area_path(@referential, @stop_area), :class => "add_routing_lines" %></li> + <h3><%= t(".itl_managment") %></h3> + <ul class="actions"> + <li><%= link_to t('stop_areas.actions.add_routing_lines'), add_routing_lines_referential_stop_area_path(@referential, @stop_area), :class => "add_routing_lines" %></li> + <li><%= link_to t('stop_areas.actions.add_routing_stops'), add_routing_stops_referential_stop_area_path(@referential, @stop_area), :class => "add_routing_stops" %></li> + </ul> <% else %> - <li><%= link_to t('stop_areas.actions.select_parent'), select_parent_referential_stop_area_path(@referential, @stop_area), :class => "select_parent" %></li> - <% end %> - <% if @stop_area.stop_area_type == 'itl' %> - <li><%= link_to t('stop_areas.actions.add_routing_stops'), add_routing_stops_referential_stop_area_path(@referential, @stop_area), :class => "add_routing_stops" %></li> - <% elsif @stop_area.stop_area_type != 'boarding_position' && @stop_area.stop_area_type != 'quay' %> - <li><%= link_to t('stop_areas.actions.add_children'), add_children_referential_stop_area_path(@referential, @stop_area), :class => "add_children" %></li> + <h3><%= t(".stop_managment") %></h3> + <ul class="actions"> + <li><%= link_to t('stop_areas.actions.select_parent'), select_parent_referential_stop_area_path(@referential, @stop_area), :class => "select_parent" %></li> + <% if @stop_area.stop_area_type != 'boarding_position' && @stop_area.stop_area_type != 'quay' %> + <li><%= link_to t('stop_areas.actions.add_children'), add_children_referential_stop_area_path(@referential, @stop_area), :class => "add_children" %></li> + <% end %> + </ul> <% end %> <br> -</ul> <% end %> diff --git a/config/locales/stop_areas.yml b/config/locales/stop_areas.yml index 124ab05c6..7c956413b 100644 --- a/config/locales/stop_areas.yml +++ b/config/locales/stop_areas.yml @@ -24,6 +24,8 @@ en: no_geographic_data: None genealogical: Links between stop area genealogical_routing: "Routing constraint's links" + itl_managment: "Routing constraint's links managment" + stop_managment: "Parent-Child links managment" index: title: Stop areas name_or_country_code: Name or Country code @@ -100,6 +102,8 @@ fr: no_geographic_data: Aucune genealogical: Lien entre arrêts genealogical_routing: "Liens de l'ITL" + itl_managment: "Gestion des liens de l'ITL" + stop_managment: "Gestion des relations père-fils" index: name_or_country_code: Nom ou Code INSEE title: Arrêts |
