Mercurial > hg > soundsoftware-site
comparison app/views/issues/_form.rhtml @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children | 1d32c0a0efbf |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>> | |
2 <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p> | |
3 <%= observe_field :issue_tracker_id, :url => { :action => :update_form, :project_id => @project, :id => @issue }, | |
4 :update => :attributes, | |
5 :with => "Form.serialize('issue-form')" %> | |
6 | |
7 <p><%= f.text_field :subject, :size => 80, :required => true %></p> | |
8 | |
9 <% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %> | |
10 <p><%= f.text_field :parent_issue_id, :size => 10 %></p> | |
11 <div id="parent_issue_candidates" class="autocomplete"></div> | |
12 <%= javascript_tag "observeParentIssueField('#{url_for(:controller => :issues, | |
13 :action => :auto_complete, | |
14 :id => @issue, | |
15 :project_id => @project) }')" %> | |
16 <% end %> | |
17 | |
18 <p><%= f.text_area :description, | |
19 :cols => 60, | |
20 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), | |
21 :accesskey => accesskey(:edit), | |
22 :class => 'wiki-edit' %></p> | |
23 </div> | |
24 | |
25 <div id="attributes" class="attributes"> | |
26 <%= render :partial => 'attributes' %> | |
27 </div> | |
28 | |
29 <% if @issue.new_record? %> | |
30 <p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> | |
31 <% end %> | |
32 | |
33 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> | |
34 <p><label><%= l(:label_issue_watchers) %></label> | |
35 <% @issue.project.users.sort.each do |user| -%> | |
36 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> | |
37 <% end -%> | |
38 </p> | |
39 <% end %> | |
40 | |
41 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> | |
42 | |
43 <%= wikitoolbar_for 'issue_description' %> |