aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/group_of_lines
diff options
context:
space:
mode:
authorLuc Donnet2015-03-03 11:04:39 +0100
committerLuc Donnet2015-03-03 11:04:39 +0100
commitbb4d5f8f008bc6c88e01437a7dea0546542c525f (patch)
treea2789abbea3613a0a8b4e1c648092effca57bf00 /app/views/group_of_lines
parent6ffc65ad9450e9dd8a40879f9c65cdf4fe43b96b (diff)
downloadchouette-core-bb4d5f8f008bc6c88e01437a7dea0546542c525f.tar.bz2
Fix line delete in group of line show Refs #0033330
Diffstat (limited to 'app/views/group_of_lines')
-rw-r--r--app/views/group_of_lines/_group_of_line.erb2
-rw-r--r--app/views/group_of_lines/_lines_detail.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/group_of_lines/_group_of_line.erb b/app/views/group_of_lines/_group_of_line.erb
index d3a254ba9..98a1e03d2 100644
--- a/app/views/group_of_lines/_group_of_line.erb
+++ b/app/views/group_of_lines/_group_of_line.erb
@@ -4,7 +4,7 @@
<span class="pull-right">
<%= 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 %>
+ <% end if edit %>
<%= 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>
diff --git a/app/views/group_of_lines/_lines_detail.html.erb b/app/views/group_of_lines/_lines_detail.html.erb
index 210ecd4b5..a6d8c6a01 100644
--- a/app/views/group_of_lines/_lines_detail.html.erb
+++ b/app/views/group_of_lines/_lines_detail.html.erb
@@ -1,3 +1,3 @@
<div class="lines paginated_content">
- <%= paginated_content @lines, "lines/line" %>
+ <%= paginated_content @lines, "lines/line", :delete => false %>
</div>