##// END OF EJS Templates
Do not generate duplicate ids....
Jean-Philippe Lang -
r8443:d5a00cc29b60
parent child
Show More
@@ -1,43 +1,43
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 <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
15 15
16 16 <% if @issue.safe_attribute? 'watcher_user_ids' -%>
17 17 <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
18 18 <% @issue.project.users.sort.each do |user| -%>
19 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
19 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user), :id => nil %> <%=h user %></label>
20 20 <% end -%>
21 21 </p>
22 22 <% end %>
23 23 </div>
24 24
25 25 <%= submit_tag l(:button_create) %>
26 26 <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
27 27 <%= link_to_remote l(:label_preview),
28 28 { :url => preview_issue_path(:project_id => @project),
29 29 :method => 'post',
30 30 :update => 'preview',
31 31 :with => "Form.serialize('issue-form')",
32 32 :complete => "Element.scrollTo('preview')"
33 33 }, :accesskey => accesskey(:preview) %>
34 34
35 35 <%= javascript_tag "Form.Element.focus('issue_subject');" %>
36 36 <% end %>
37 37
38 38 <div id="preview" class="wiki"></div>
39 39
40 40 <% content_for :header_tags do %>
41 41 <%= stylesheet_link_tag 'scm' %>
42 42 <%= robot_exclusion_tag %>
43 43 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now