diff options
| author | Bruno Perles | 2016-01-06 14:28:43 +0100 | 
|---|---|---|
| committer | Bruno Perles | 2016-01-07 09:28:50 +0100 | 
| commit | 3690e949c87f7a10e77b4e2a49ad05a8e08ff989 (patch) | |
| tree | 6ccbadd2c96d93ff4d27d71db1baba89c234b6b1 | |
| parent | b12156dd4c89861151f5fe0b0a54d515baed9542 (diff) | |
| download | chouette-core-3690e949c87f7a10e77b4e2a49ad05a8e08ff989.tar.bz2 | |
Add tooltip for stop_area type : #41592
| -rw-r--r-- | app/assets/javascripts/plugins/tooltip.coffee | 2 | ||||
| -rw-r--r-- | app/views/stop_areas/show.html.erb | 1 | ||||
| -rw-r--r-- | config/locales/stop_areas.en.yml | 1 | ||||
| -rw-r--r-- | config/locales/stop_areas.fr.yml | 1 | 
4 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/plugins/tooltip.coffee b/app/assets/javascripts/plugins/tooltip.coffee index 91b8b5cc6..cd92daf78 100644 --- a/app/assets/javascripts/plugins/tooltip.coffee +++ b/app/assets/javascripts/plugins/tooltip.coffee @@ -1,3 +1,3 @@  jQuery -> -  $('input').tooltip() +  $('[data-toggle="tooltip"]').tooltip()    $('.progress').tooltip() diff --git a/app/views/stop_areas/show.html.erb b/app/views/stop_areas/show.html.erb index 74aa9d908..6a34f808c 100644 --- a/app/views/stop_areas/show.html.erb +++ b/app/views/stop_areas/show.html.erb @@ -48,6 +48,7 @@      <p>        <label><%= @stop_area.human_attribute_name("stop_area_type") %>: </label>        <%= t("area_types.label.#{@stop_area.stop_area_type}") %> +      <i class="fa fa-info-circle" data-toggle="tooltip" data-placement="right" title="<%= t('.not_editable') %>"></i>      </p>      <% if !manage_itl %>  	    <p> diff --git a/config/locales/stop_areas.en.yml b/config/locales/stop_areas.en.yml index 8bc51bf65..2f755ba2f 100644 --- a/config/locales/stop_areas.en.yml +++ b/config/locales/stop_areas.en.yml @@ -44,6 +44,7 @@ en:        stop_managment: "Parent-Child links managment"        access_managment: "Access Points and Links managment"        access_points: "Access Points" +      not_editable: "Le type d'arrêt est non modifiable"      genealogical:        genealogical: "Links between stop area"        genealogical_routing: "Routing constraint's links" diff --git a/config/locales/stop_areas.fr.yml b/config/locales/stop_areas.fr.yml index e2ad6fa97..30b63288f 100644 --- a/config/locales/stop_areas.fr.yml +++ b/config/locales/stop_areas.fr.yml @@ -45,6 +45,7 @@ fr:        stop_managment: "Gestion des relations père-fils"        access_managment: "Gestion des accès et liens associés"        access_points: "Points d'accès" +      not_editable: "Le type d'arrêt est non modifiable"      genealogical:        genealogical: "Lien entre arrêts"        genealogical_routing: "Liens de l'ITL"  | 
