##// END OF EJS Templates
Adds a hook before the new issue form....
Jean-Philippe Lang -
r8073:804108a87f17
parent child
Show More
@@ -1,27 +1,29
1 1 <h2><%=l(:label_issue_new)%></h2>
2 2
3 <%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
4
3 5 <% labelled_form_for @issue, :url => project_issues_path(@project),
4 6 :html => {:id => 'issue-form', :multipart => true} do |f| %>
5 7 <%= error_messages_for 'issue' %>
6 8 <div class="box tabular">
7 9 <%= render :partial => 'issues/form', :locals => {:f => f} %>
8 10 </div>
9 11 <%= submit_tag l(:button_create) %>
10 12 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
11 13 <%= link_to_remote l(:label_preview),
12 14 { :url => preview_issue_path(:project_id => @project),
13 15 :method => 'post',
14 16 :update => 'preview',
15 17 :with => "Form.serialize('issue-form')",
16 18 :complete => "Element.scrollTo('preview')"
17 19 }, :accesskey => accesskey(:preview) %>
18 20
19 21 <%= javascript_tag "Form.Element.focus('issue_subject');" %>
20 22 <% end %>
21 23
22 24 <div id="preview" class="wiki"></div>
23 25
24 26 <% content_for :header_tags do %>
25 27 <%= stylesheet_link_tag 'scm' %>
26 28 <%= robot_exclusion_tag %>
27 29 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now