@@ -1,27 +1,29 | |||||
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}) %> | |||
|
4 | ||||
3 | <% labelled_form_for @issue, :url => project_issues_path(@project), |
|
5 | <% labelled_form_for @issue, :url => project_issues_path(@project), | |
4 | :html => {:id => 'issue-form', :multipart => true} do |f| %> |
|
6 | :html => {:id => 'issue-form', :multipart => true} do |f| %> | |
5 | <%= error_messages_for 'issue' %> |
|
7 | <%= error_messages_for 'issue' %> | |
6 | <div class="box tabular"> |
|
8 | <div class="box tabular"> | |
7 | <%= render :partial => 'issues/form', :locals => {:f => f} %> |
|
9 | <%= render :partial => 'issues/form', :locals => {:f => f} %> | |
8 | </div> |
|
10 | </div> | |
9 | <%= submit_tag l(:button_create) %> |
|
11 | <%= submit_tag l(:button_create) %> | |
10 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> |
|
12 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | |
11 | <%= link_to_remote l(:label_preview), |
|
13 | <%= link_to_remote l(:label_preview), | |
12 | { :url => preview_issue_path(:project_id => @project), |
|
14 | { :url => preview_issue_path(:project_id => @project), | |
13 | :method => 'post', |
|
15 | :method => 'post', | |
14 | :update => 'preview', |
|
16 | :update => 'preview', | |
15 | :with => "Form.serialize('issue-form')", |
|
17 | :with => "Form.serialize('issue-form')", | |
16 | :complete => "Element.scrollTo('preview')" |
|
18 | :complete => "Element.scrollTo('preview')" | |
17 | }, :accesskey => accesskey(:preview) %> |
|
19 | }, :accesskey => accesskey(:preview) %> | |
18 |
|
20 | |||
19 | <%= javascript_tag "Form.Element.focus('issue_subject');" %> |
|
21 | <%= javascript_tag "Form.Element.focus('issue_subject');" %> | |
20 | <% end %> |
|
22 | <% end %> | |
21 |
|
23 | |||
22 | <div id="preview" class="wiki"></div> |
|
24 | <div id="preview" class="wiki"></div> | |
23 |
|
25 | |||
24 | <% content_for :header_tags do %> |
|
26 | <% content_for :header_tags do %> | |
25 | <%= stylesheet_link_tag 'scm' %> |
|
27 | <%= stylesheet_link_tag 'scm' %> | |
26 | <%= robot_exclusion_tag %> |
|
28 | <%= robot_exclusion_tag %> | |
27 | <% end %> |
|
29 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now