@@ -1,50 +1,50 | |||||
1 | <h2><%=l(:label_issue_new)%></h2> |
|
1 | <h2><%=l(:label_issue_new)%></h2> | |
2 |
|
2 | |||
3 | <%= call_hook(:view_issues_new_top, {:issue => @issue}) %> |
|
3 | <%= call_hook(:view_issues_new_top, {:issue => @issue}) %> | |
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 |
|
|
8 | <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %> | |
9 | <div class="box tabular"> |
|
9 | <div class="box tabular"> | |
10 |
|
|
10 | <div id="all_attributes"> | |
11 | <%= render :partial => 'issues/form', :locals => {:f => f} %> |
|
11 | <%= render :partial => 'issues/form', :locals => {:f => f} %> | |
12 | </div> |
|
12 | </div> | |
13 |
|
13 | |||
14 | <% if @copy_from && @copy_from.attachments.any? %> |
|
14 | <% if @copy_from && @copy_from.attachments.any? %> | |
15 | <p> |
|
15 | <p> | |
16 |
|
|
16 | <label for="copy_attachments"><%= l(:label_copy_attachments) %></label> | |
17 |
|
|
17 | <%= check_box_tag 'copy_attachments', '1', @copy_attachments %> | |
18 | </p> |
|
18 | </p> | |
19 |
|
|
19 | <% end %> | |
20 |
|
20 | |||
21 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> |
|
21 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> | |
22 |
|
22 | |||
23 | <% if @issue.safe_attribute? 'watcher_user_ids' -%> |
|
23 | <% if @issue.safe_attribute? 'watcher_user_ids' -%> | |
24 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
|
24 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> | |
25 | <% @issue.project.users.sort.each do |user| -%> |
|
25 | <% @issue.project.users.sort.each do |user| -%> | |
26 | <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user), :id => nil %> <%=h user %></label> |
|
26 | <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user), :id => nil %> <%=h user %></label> | |
27 | <% end -%> |
|
27 | <% end -%> | |
28 | </p> |
|
28 | </p> | |
29 | <% end %> |
|
29 | <% end %> | |
30 | </div> |
|
30 | </div> | |
31 |
|
31 | |||
32 | <%= submit_tag l(:button_create) %> |
|
32 | <%= submit_tag l(:button_create) %> | |
33 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
33 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | |
34 | <%= link_to_remote l(:label_preview), |
|
34 | <%= link_to_remote l(:label_preview), | |
35 | { :url => preview_new_issue_path(:project_id => @project), |
|
35 | { :url => preview_new_issue_path(:project_id => @project), | |
36 | :method => 'post', |
|
36 | :method => 'post', | |
37 | :update => 'preview', |
|
37 | :update => 'preview', | |
38 | :with => "Form.serialize('issue-form')", |
|
38 | :with => "Form.serialize('issue-form')", | |
39 | :complete => "Element.scrollTo('preview')" |
|
39 | :complete => "Element.scrollTo('preview')" | |
40 | }, :accesskey => accesskey(:preview) %> |
|
40 | }, :accesskey => accesskey(:preview) %> | |
41 |
|
41 | |||
42 | <%= javascript_tag "Form.Element.focus('issue_subject');" %> |
|
42 | <%= javascript_tag "Form.Element.focus('issue_subject');" %> | |
43 | <% end %> |
|
43 | <% end %> | |
44 |
|
44 | |||
45 | <div id="preview" class="wiki"></div> |
|
45 | <div id="preview" class="wiki"></div> | |
46 |
|
46 | |||
47 | <% content_for :header_tags do %> |
|
47 | <% content_for :header_tags do %> | |
48 | <%= stylesheet_link_tag 'scm' %> |
|
48 | <%= stylesheet_link_tag 'scm' %> | |
49 | <%= robot_exclusion_tag %> |
|
49 | <%= robot_exclusion_tag %> | |
50 | <% end %> |
|
50 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now