aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorBruno Perles2016-01-06 14:28:43 +0100
committerBruno Perles2016-01-07 09:28:50 +0100
commit3690e949c87f7a10e77b4e2a49ad05a8e08ff989 (patch)
tree6ccbadd2c96d93ff4d27d71db1baba89c234b6b1 /app
parentb12156dd4c89861151f5fe0b0a54d515baed9542 (diff)
downloadchouette-core-3690e949c87f7a10e77b4e2a49ad05a8e08ff989.tar.bz2
Add tooltip for stop_area type : #41592
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/plugins/tooltip.coffee2
-rw-r--r--app/views/stop_areas/show.html.erb1
2 files changed, 2 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>