Mercurial > hg > soundsoftware-site
comparison app/views/issues/_form.rhtml @ 74:11328a082ef3 luisf
Feature #47: added a description.
Feature #49: Turned autocomplete on in the Parent Task field. This should be thorouglly tested.
author | luisf |
---|---|
date | Wed, 08 Dec 2010 18:37:21 +0000 |
parents | 94944d00e43c |
children | ab75f33dcc6f |
comparison
equal
deleted
inserted
replaced
73:a7fa8dd0446f | 74:11328a082ef3 |
---|---|
7 :with => "Form.serialize('issue-form')" %> | 7 :with => "Form.serialize('issue-form')" %> |
8 | 8 |
9 <p><%= f.text_field :subject, :size => 80, :required => true %></p> | 9 <p><%= f.text_field :subject, :size => 80, :required => true %></p> |
10 | 10 |
11 <% if User.current.allowed_to?(:manage_subtasks, @project) %> | 11 <% if User.current.allowed_to?(:manage_subtasks, @project) %> |
12 <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p> | 12 <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10, :autocomplete => :on %> |
13 <div id="parent_issue_candidates" class="autocomplete"></div> | 13 <br /> |
14 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> | 14 <em> <%=l(:text_issue_parent_issue_info)%></em> |
15 </p> | |
16 <div id="parent_issue_candidates" class="autocomplete"></div> | |
17 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> | |
15 <% end %> | 18 <% end %> |
16 | 19 |
17 <p><%= f.text_area :description, | 20 <p><%= f.text_area :description, |
18 :cols => 60, | 21 :cols => 60, |
19 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), | 22 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), |