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