aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/vehicle_journeys
diff options
context:
space:
mode:
authorBruno Perles2015-12-02 11:41:06 +0100
committerBruno Perles2015-12-02 11:41:06 +0100
commit5a11c609b8beea51fd5d6da114e00ab344c4d550 (patch)
tree2dced01e951385721af4be1e265ce911befa8523 /app/views/vehicle_journeys
parent6f51f9dc8d4188bfa9c079be33b619bc01a4d5f0 (diff)
downloadchouette-core-5a11c609b8beea51fd5d6da114e00ab344c4d550.tar.bz2
#0040944 - Update label on submit button
Diffstat (limited to 'app/views/vehicle_journeys')
-rw-r--r--app/views/vehicle_journeys/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/vehicle_journeys/_form.html.erb b/app/views/vehicle_journeys/_form.html.erb
index 10d9bfeee..b7781d019 100644
--- a/app/views/vehicle_journeys/_form.html.erb
+++ b/app/views/vehicle_journeys/_form.html.erb
@@ -20,7 +20,7 @@
<% end %>
<%= form.actions do %>
- <%= form.action :submit, as: :button, label: t(".submit_#{vehicle_journey.journey_category}") %>
+ <%= form.action :submit, as: :button, label: t(".submit_#{vehicle_journey.journey_category}#{'_edit' unless form.object.new_record?}") %>
<%= form.action :cancel, as: :link %>
<% end %>
<% end %>