Project

General

Profile

Patch #701 ยป time_issue_update.diff

David Petersen, 2008-02-20 18:56

View differences:

app/views/issues/_edit.rhtml (working copy)
14 14
        <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
15 15
        </fieldset>
16 16
    <% end %>
17
    <% if authorize_for('timelog', 'edit') %>
18
    <fieldset><legend><%= l(:button_log_time) %></legend>
19
        <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
20
        <div class="splitcontentleft">
21
        <p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
22
        </div>
23
        <div class="splitcontentright">
24
        <p><%= time_entry.text_field :comments, :size => 40 %></p>
25
        <p><%= time_entry.select :activity_id, (@activities.collect {|p| [p.name, p.id]}) %></p>
26
        </div>
27
        <% end %>
28
    </fieldset>
29
    <% end %>
17 30
    
18 31
    <fieldset><legend><%= l(:field_notes) %></legend>
19 32
    <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
    (1-1/1)