From 1c3722b5cbaa4a8d796f41adb602534b3f5ad05c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 9 Dec 2009 11:03:55 +0000 Subject: [PATCH] Moves submit button to tracker form. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3146 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/trackers/_form.rhtml | 1 + app/views/trackers/edit.rhtml | 1 - app/views/trackers/new.rhtml | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/trackers/_form.rhtml b/app/views/trackers/_form.rhtml index a14122c6..870c53f5 100644 --- a/app/views/trackers/_form.rhtml +++ b/app/views/trackers/_form.rhtml @@ -26,6 +26,7 @@ <% end %> +<%= submit_tag l(@tracker.new_record? ? :button_create : :button_save) %>
diff --git a/app/views/trackers/edit.rhtml b/app/views/trackers/edit.rhtml index b5d6f9dc..135bafd5 100644 --- a/app/views/trackers/edit.rhtml +++ b/app/views/trackers/edit.rhtml @@ -2,5 +2,4 @@ <% form_for :tracker, @tracker, :url => { :action => 'edit' }, :builder => TabularFormBuilder do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/trackers/new.rhtml b/app/views/trackers/new.rhtml index 6dccf0d7..db32471d 100644 --- a/app/views/trackers/new.rhtml +++ b/app/views/trackers/new.rhtml @@ -2,5 +2,4 @@ <% form_for :tracker, @tracker, :url => { :action => 'new' }, :builder => TabularFormBuilder do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> -<%= submit_tag l(:button_create) %> <% end %>