@@ -1,42 +1,42 | |||
|
1 | 1 | <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> |
|
2 | 2 | |
|
3 | 3 | <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>> |
|
4 | 4 | <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p> |
|
5 | 5 | <%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, |
|
6 | 6 | :update => :attributes, |
|
7 | 7 | :with => "Form.serialize('issue-form')" %> |
|
8 | 8 | |
|
9 | 9 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> |
|
10 | 10 | |
|
11 |
<% |
|
|
12 | <p><%= f.text_field :parent_issue_id, :size => 10 %></p> | |
|
11 | <% if User.current.allowed_to?(:manage_subtasks, @project) %> | |
|
12 | <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p> | |
|
13 | 13 | <div id="parent_issue_candidates" class="autocomplete"></div> |
|
14 | 14 | <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> |
|
15 | 15 | <% end %> |
|
16 | 16 | |
|
17 | 17 | <p><%= f.text_area :description, |
|
18 | 18 | :cols => 60, |
|
19 | 19 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), |
|
20 | 20 | :accesskey => accesskey(:edit), |
|
21 | 21 | :class => 'wiki-edit' %></p> |
|
22 | 22 | </div> |
|
23 | 23 | |
|
24 | 24 | <div id="attributes" class="attributes"> |
|
25 | 25 | <%= render :partial => 'issues/attributes' %> |
|
26 | 26 | </div> |
|
27 | 27 | |
|
28 | 28 | <% if @issue.new_record? %> |
|
29 | 29 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> |
|
30 | 30 | <% end %> |
|
31 | 31 | |
|
32 | 32 | <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%> |
|
33 | 33 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
|
34 | 34 | <% @issue.project.users.sort.each do |user| -%> |
|
35 | 35 | <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label> |
|
36 | 36 | <% end -%> |
|
37 | 37 | </p> |
|
38 | 38 | <% end %> |
|
39 | 39 | |
|
40 | 40 | <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> |
|
41 | 41 | |
|
42 | 42 | <%= wikitoolbar_for 'issue_description' %> |
@@ -1,26 +1,26 | |||
|
1 | 1 | <h2><%=l(:label_issue_new)%></h2> |
|
2 | 2 | |
|
3 | 3 | <% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project}, |
|
4 | :html => {:multipart => true, :id => 'issue-form'} do |f| %> | |
|
4 | :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %> | |
|
5 | 5 | <%= error_messages_for 'issue' %> |
|
6 | 6 | <div class="box"> |
|
7 | 7 | <%= render :partial => 'issues/form', :locals => {:f => f} %> |
|
8 | 8 | </div> |
|
9 | 9 | <%= submit_tag l(:button_create) %> |
|
10 | 10 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
11 | 11 | <%= link_to_remote l(:label_preview), |
|
12 | 12 | { :url => preview_issue_path(:project_id => @project), |
|
13 | 13 | :method => 'post', |
|
14 | 14 | :update => 'preview', |
|
15 | 15 | :with => "Form.serialize('issue-form')", |
|
16 | 16 | :complete => "Element.scrollTo('preview')" |
|
17 | 17 | }, :accesskey => accesskey(:preview) %> |
|
18 | 18 | |
|
19 | 19 | <%= javascript_tag "Form.Element.focus('issue_subject');" %> |
|
20 | 20 | <% end %> |
|
21 | 21 | |
|
22 | 22 | <div id="preview" class="wiki"></div> |
|
23 | 23 | |
|
24 | 24 | <% content_for :header_tags do %> |
|
25 | 25 | <%= stylesheet_link_tag 'scm' %> |
|
26 | 26 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now