##// END OF EJS Templates
replace tabs to spaces and fix indents at app/views/issues/new.html.erb...
Toshi MARUYAMA -
r9145:5f37d0d1c806
parent child
Show More
@@ -1,55 +1,55
1 1 <h2><%=l(:label_issue_new)%></h2>
2 2
3 3 <%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
4 4
5 5 <% labelled_form_for @issue, :url => project_issues_path(@project),
6 6 :html => {:id => 'issue-form', :multipart => true} do |f| %>
7 7 <%= error_messages_for 'issue' %>
8 8 <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
9 9 <div class="box tabular">
10 10 <div id="all_attributes">
11 11 <%= render :partial => 'issues/form', :locals => {:f => f} %>
12 12 </div>
13 13
14 14 <% if @copy_from && @copy_from.attachments.any? %>
15 15 <p>
16 16 <label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
17 17 <%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
18 18 </p>
19 19 <% end %>
20 20
21 21 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>
22 22
23 23 <% if @issue.safe_attribute? 'watcher_user_ids' -%>
24 24 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
25 25 <span id="watchers_inputs">
26 26 <%= watchers_checkboxes(@issue, @available_watchers) %>
27 </span>
28 <span class="search_for_watchers">
27 </span>
28 <span class="search_for_watchers">
29 29 <%= link_to_remote l(:label_search_for_watchers),
30 30 :url => {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
31 31 :method => 'get' %>
32 </span>
33 </p>
32 </span>
33 </p>
34 34 <% end %>
35 35 </div>
36 36
37 <%= submit_tag l(:button_create) %>
38 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
39 <%= link_to_remote l(:label_preview),
37 <%= submit_tag l(:button_create) %>
38 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
39 <%= link_to_remote l(:label_preview),
40 40 { :url => preview_new_issue_path(:project_id => @project),
41 41 :method => 'post',
42 42 :update => 'preview',
43 43 :with => "Form.serialize('issue-form')",
44 44 :complete => "Element.scrollTo('preview')"
45 45 }, :accesskey => accesskey(:preview) %>
46 46
47 <%= javascript_tag "Form.Element.focus('issue_subject');" %>
47 <%= javascript_tag "Form.Element.focus('issue_subject');" %>
48 48 <% end %>
49 49
50 50 <div id="preview" class="wiki"></div>
51 51
52 52 <% content_for :header_tags do %>
53 53 <%= stylesheet_link_tag 'scm' %>
54 54 <%= robot_exclusion_tag %>
55 55 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now