##// END OF EJS Templates
Moved fields specific to new issues to the new issue form....
Jean-Philippe Lang -
r8079:59c1141e0863
parent child
Show More
@@ -29,18 +29,6
29 <%= render :partial => 'issues/attributes' %>
29 <%= render :partial => 'issues/attributes' %>
30 </div>
30 </div>
31
31
32 <% if @issue.new_record? %>
33 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
34 <% end %>
35
36 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
37 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
38 <% @issue.project.users.sort.each do |user| -%>
39 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
40 <% end -%>
41 </p>
42 <% end %>
43
44 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
32 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
45
33
46 <%= wikitoolbar_for 'issue_description' %>
34 <%= wikitoolbar_for 'issue_description' %>
@@ -4,10 +4,21
4
4
5 <% labelled_form_for @issue, :url => project_issues_path(@project),
5 <% labelled_form_for @issue, :url => project_issues_path(@project),
6 :html => {:id => 'issue-form', :multipart => true} do |f| %>
6 :html => {:id => 'issue-form', :multipart => true} do |f| %>
7 <%= error_messages_for 'issue' %>
7 <%= error_messages_for 'issue' %>
8 <div class="box tabular">
8 <div class="box tabular">
9 <%= render :partial => 'issues/form', :locals => {:f => f} %>
9 <%= render :partial => 'issues/form', :locals => {:f => f} %>
10 </div>
10
11 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
12
13 <% if User.current.allowed_to?(:add_issue_watchers, @project) -%>
14 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
15 <% @issue.project.users.sort.each do |user| -%>
16 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
17 <% end -%>
18 </p>
19 <% end %>
20 </div>
21
11 <%= submit_tag l(:button_create) %>
22 <%= submit_tag l(:button_create) %>
12 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
23 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
13 <%= link_to_remote l(:label_preview),
24 <%= link_to_remote l(:label_preview),
General Comments 0
You need to be logged in to leave comments. Login now