Mercurial > hg > soundsoftware-site
diff app/views/timelog/.svn/text-base/edit.rhtml.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line diff
--- a/app/views/timelog/.svn/text-base/edit.rhtml.svn-base Fri Sep 24 14:06:04 2010 +0100 +++ b/app/views/timelog/.svn/text-base/edit.rhtml.svn-base Fri Nov 19 13:24:41 2010 +0000 @@ -1,6 +1,11 @@ <h2><%= l(:label_spent_time) %></h2> -<% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :id => @time_entry, :project_id => @time_entry.project} do |f| %> +<% labelled_tabular_form_for(:time_entry, @time_entry, :url => { + :action => (@time_entry.new_record? ? 'create' : 'update'), + :id => @time_entry, + :project_id => @time_entry.project + }, + :html => {:method => @time_entry.new_record? ? :post : :put}) do |f| %> <%= error_messages_for 'time_entry' %> <%= back_url_hidden_field_tag %>