##// END OF EJS Templates
replace tabs to spaces app/views/issues/new.html.erb...
Toshi MARUYAMA -
r8767:8c6a68ba4c55
parent child
Show More
@@ -1,50 +1,50
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 <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
8 <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
9 9 <div class="box tabular">
10 <div id="all_attributes">
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 <p>
16 <label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
17 <%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
18 </p>
19 <% end %>
15 <p>
16 <label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
17 <%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
18 </p>
19 <% end %>
20 20
21 21 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></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 <% @issue.project.users.sort.each do |user| -%>
26 26 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user), :id => nil %> <%=h user %></label>
27 27 <% end -%>
28 28 </p>
29 29 <% end %>
30 30 </div>
31 31
32 32 <%= submit_tag l(:button_create) %>
33 33 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
34 34 <%= link_to_remote l(:label_preview),
35 35 { :url => preview_new_issue_path(:project_id => @project),
36 36 :method => 'post',
37 37 :update => 'preview',
38 38 :with => "Form.serialize('issue-form')",
39 39 :complete => "Element.scrollTo('preview')"
40 40 }, :accesskey => accesskey(:preview) %>
41 41
42 42 <%= javascript_tag "Form.Element.focus('issue_subject');" %>
43 43 <% end %>
44 44
45 45 <div id="preview" class="wiki"></div>
46 46
47 47 <% content_for :header_tags do %>
48 48 <%= stylesheet_link_tag 'scm' %>
49 49 <%= robot_exclusion_tag %>
50 50 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now