comparison 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
comparison
equal deleted inserted replaced
22:40f7cfd4df19 37:94944d00e43c
1 <h2><%= l(:label_spent_time) %></h2> 1 <h2><%= l(:label_spent_time) %></h2>
2 2
3 <% labelled_tabular_form_for :time_entry, @time_entry, :url => {:action => 'edit', :id => @time_entry, :project_id => @time_entry.project} do |f| %> 3 <% labelled_tabular_form_for(:time_entry, @time_entry, :url => {
4 :action => (@time_entry.new_record? ? 'create' : 'update'),
5 :id => @time_entry,
6 :project_id => @time_entry.project
7 },
8 :html => {:method => @time_entry.new_record? ? :post : :put}) do |f| %>
4 <%= error_messages_for 'time_entry' %> 9 <%= error_messages_for 'time_entry' %>
5 <%= back_url_hidden_field_tag %> 10 <%= back_url_hidden_field_tag %>
6 11
7 <div class="box"> 12 <div class="box">
8 <p><%= f.text_field :issue_id, :size => 6 %> <em><%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %></em></p> 13 <p><%= f.text_field :issue_id, :size => 6 %> <em><%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %></em></p>