diff options
| author | Luc Donnet | 2014-09-30 16:27:53 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2014-09-30 16:27:53 +0200 | 
| commit | fe37e9c012a519eb3e774144ad767b3332b26208 (patch) | |
| tree | 78a3008cde2b8acb05ceb737cc8715632123d7c8 /app/views | |
| parent | eee45754bbe918c65a81a999637bee01ca2d082c (diff) | |
| download | chouette-core-fe37e9c012a519eb3e774144ad767b3332b26208.tar.bz2 | |
Add possibility to hide delete for index item Refs #0029064
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/group_of_lines/_group_of_line.erb | 4 | ||||
| -rw-r--r-- | app/views/lines/show.html.erb | 2 | ||||
| -rw-r--r-- | app/views/time_tables/_time_table.html.erb | 4 | ||||
| -rw-r--r-- | app/views/vehicle_journeys/show.html.erb | 2 | 
4 files changed, 4 insertions, 8 deletions
diff --git a/app/views/group_of_lines/_group_of_line.erb b/app/views/group_of_lines/_group_of_line.erb index dfbebdec6..d3a254ba9 100644 --- a/app/views/group_of_lines/_group_of_line.erb +++ b/app/views/group_of_lines/_group_of_line.erb @@ -5,9 +5,7 @@          <%= link_to edit_referential_group_of_line_path(@referential, group_of_line), :class => "btn btn-default btn-sm" do %>            <span class="fa fa-pencil"></span>          <% end %> -        <%= link_to referential_group_of_line_path(@referential, group_of_line), :method => :delete, :data => {:confirm =>  t('group_of_lines.actions.destroy_confirm')}, :class => "btn btn-danger btn-sm" do %> -          <span class="fa fa-trash-o"></span> -        <% end %> +        <%= link_to('<span class="fa fa-trash-o"></span>'.html_safe, referential_group_of_line_path(@referential, group_of_line), :method => :delete, :data => {:confirm =>  t('group_of_lines.actions.destroy_confirm')}, :class => "btn btn-danger btn-sm") if delete %>                 </span>        <h5>          <%= link_to([@referential, group_of_line], :class => "preview", :title => "#{Chouette::GroupOfLine.model_name.human.capitalize} #{group_of_line.name}") do %>         diff --git a/app/views/lines/show.html.erb b/app/views/lines/show.html.erb index cec5dc2f0..24eebd794 100644 --- a/app/views/lines/show.html.erb +++ b/app/views/lines/show.html.erb @@ -88,7 +88,7 @@  <% if @line.group_of_lines.any? %>    <h3 class="line_group_of_lines"><%= t('.group_of_lines') %></h3>    <div class="group_of_lines paginated_content"> -     <%= paginated_content @group_of_lines, "group_of_lines/group_of_line" %> +     <%= paginated_content @group_of_lines, "group_of_lines/group_of_line", :delete => false %>    </div>  <% end %> diff --git a/app/views/time_tables/_time_table.html.erb b/app/views/time_tables/_time_table.html.erb index 1eeb42541..0642f5a6c 100644 --- a/app/views/time_tables/_time_table.html.erb +++ b/app/views/time_tables/_time_table.html.erb @@ -5,9 +5,7 @@          <%= link_to edit_referential_time_table_path(@referential, time_table), :class => "btn btn-default btn-sm" do %>            <span class="fa fa-pencil"></span>          <% end %> -        <%= link_to referential_time_table_path(@referential, time_table), :method => :delete, :data => {:confirm =>  t('time_tables.actions.destroy_confirm')}, :class => "btn btn-danger btn-sm" do %> -          <span class="fa fa-trash-o"></span> -        <% end %> +        <%= link_to('<span class="fa fa-trash-o"></span>'.html_safe, referential_time_table_path(@referential, time_table), :method => :delete, :data => {:confirm =>  t('time_tables.actions.destroy_confirm')}, :class => "btn btn-danger btn-sm") if delete %>              </span>        <h5>          <%= link_to([@referential, time_table], :class => "preview", :title => "#{Chouette::TimeTable.model_name.human.capitalize} #{time_table.comment}") do %> diff --git a/app/views/vehicle_journeys/show.html.erb b/app/views/vehicle_journeys/show.html.erb index e90a74aa8..667ca570c 100644 --- a/app/views/vehicle_journeys/show.html.erb +++ b/app/views/vehicle_journeys/show.html.erb @@ -94,7 +94,7 @@  <h3><%= t('.time_tables') %></h3>  <div class="time_tables paginated_content"> -  <%= paginated_content @vehicle_journey.time_tables, "time_tables/time_table" %> +  <%= paginated_content @vehicle_journey.time_tables, "time_tables/time_table", :delete => false %>  </div>  | 
