comparison app/views/issues/.svn/text-base/_form.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 40f7cfd4df19
children cbce1fd3b1b7
comparison
equal deleted inserted replaced
22:40f7cfd4df19 37:94944d00e43c
6 :update => :attributes, 6 :update => :attributes,
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 <% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %> 11 <% if User.current.allowed_to?(:manage_subtasks, @project) %>
12 <p><%= f.text_field :parent_issue_id, :size => 10 %></p> 12 <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p>
13 <div id="parent_issue_candidates" class="autocomplete"></div> 13 <div id="parent_issue_candidates" class="autocomplete"></div>
14 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> 14 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
15 <% end %> 15 <% end %>
16 16
17 <p><%= f.text_area :description, 17 <p><%= f.text_area :description,
24 <div id="attributes" class="attributes"> 24 <div id="attributes" class="attributes">
25 <%= render :partial => 'issues/attributes' %> 25 <%= render :partial => 'issues/attributes' %>
26 </div> 26 </div>
27 27
28 <% if @issue.new_record? %> 28 <% if @issue.new_record? %>
29 <p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> 29 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
30 <% end %> 30 <% end %>
31 31
32 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> 32 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
33 <p><label><%= l(:label_issue_watchers) %></label> 33 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
34 <% @issue.project.users.sort.each do |user| -%> 34 <% @issue.project.users.sort.each do |user| -%>
35 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> 35 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
36 <% end -%> 36 <% end -%>
37 </p> 37 </p>
38 <% end %> 38 <% end %>