@@ -1,23 +1,25 | |||
|
1 | 1 | <h2><%=l(:label_issue_new)%></h2> |
|
2 | 2 | |
|
3 | 3 | <% labelled_tabular_form_for :issue, @issue, |
|
4 | 4 | :html => {:multipart => true, :id => '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 | <%= link_to_remote l(:label_preview), |
|
11 | 11 | { :url => { :controller => 'issues', :action => 'preview', :project_id => @project }, |
|
12 | 12 | :method => 'post', |
|
13 | 13 | :update => 'preview', |
|
14 | 14 | :with => "Form.serialize('issue-form')", |
|
15 | 15 | :complete => "Element.scrollTo('preview')" |
|
16 | 16 | }, :accesskey => accesskey(:preview) %> |
|
17 | ||
|
18 | <%= javascript_tag "Form.Element.focus('issue_subject');" %> | |
|
17 | 19 | <% end %> |
|
18 | 20 | |
|
19 | 21 | <div id="preview" class="wiki"></div> |
|
20 | 22 | |
|
21 | 23 | <% content_for :header_tags do %> |
|
22 | 24 | <%= stylesheet_link_tag 'scm' %> |
|
23 | 25 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now