Project

General

Profile

Patch #7304 » date_field_size.patch

Tiffany C, 2011-01-12 07:38

View differences:

app/helpers/custom_fields_helper.rb (revision 2312)
39 39
    field_format = Redmine::CustomFieldFormat.find_by_name(custom_field.field_format)
40 40
    case field_format.edit_as
41 41
    when "date"
42
      text_field_tag(field_name, custom_value.value, :id => field_id, :size => 10) + 
42
      text_field_tag(field_name, custom_value.value, :id => field_id, :size => 12) + 
43 43
      calendar_for(field_id)
44 44
    when "text"
45 45
      text_area_tag(field_name, custom_value.value, :id => field_id, :rows => 3, :style => 'width:90%')
app/views/issues/_attributes.rhtml (revision 2312)
31 31
</div>
32 32

  
33 33
<div class="splitcontentright">
34
<p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
35
<p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
34
<p><%= f.text_field :start_date, :size => 12, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
35
<p><%= f.text_field :due_date, :size => 12, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
36 36
<p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %></p>
37 37
<% if @issue.leaf? && Issue.use_field_for_done_ratio? %>
38 38
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
(2-2/2)