new.html.erb
50 lines
| 2.0 KiB
| text/plain
|
TextLexer
|
r1083 | <h2><%=l(:label_issue_new)%></h2> | ||
|
r330 | |||
|
r8073 | <%= call_hook(:view_issues_new_top, {:issue => @issue}) %> | ||
|
r7981 | <% labelled_form_for @issue, :url => project_issues_path(@project), | ||
:html => {:id => 'issue-form', :multipart => true} do |f| %> | ||||
|
r8079 | <%= error_messages_for 'issue' %> | ||
|
r8432 | <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %> | ||
|
r8079 | <div class="box tabular"> | ||
|
r8432 | <div id="all_attributes"> | ||
|
r860 | <%= render :partial => 'issues/form', :locals => {:f => f} %> | ||
|
r8432 | </div> | ||
|
r8079 | |||
|
r8557 | <% if @copy_from && @copy_from.attachments.any? %> | ||
<p> | ||||
<label for="copy_attachments"><%= l(:label_copy_attachments) %></label> | ||||
<%= check_box_tag 'copy_attachments', '1', @copy_attachments %> | ||||
</p> | ||||
<% end %> | ||||
|
r8079 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p> | ||
|
r8080 | <% if @issue.safe_attribute? 'watcher_user_ids' -%> | ||
|
r8079 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> | ||
<% @issue.project.users.sort.each do |user| -%> | ||||
|
r8443 | <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user), :id => nil %> <%=h user %></label> | ||
|
r8079 | <% end -%> | ||
</p> | ||||
<% end %> | ||||
</div> | ||||
|
r800 | <%= submit_tag l(:button_create) %> | ||
|
r2263 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | ||
|
r7105 | <%= link_to_remote l(:label_preview), | ||
|
r3832 | { :url => preview_issue_path(:project_id => @project), | ||
|
r801 | :method => 'post', | ||
:update => 'preview', | ||||
:with => "Form.serialize('issue-form')", | ||||
|
r1122 | :complete => "Element.scrollTo('preview')" | ||
|
r801 | }, :accesskey => accesskey(:preview) %> | ||
|
r7105 | |||
|
r7254 | <%= javascript_tag "Form.Element.focus('issue_subject');" %> | ||
|
r42 | <% end %> | ||
|
r801 | |||
<div id="preview" class="wiki"></div> | ||||
|
r2220 | |||
<% content_for :header_tags do %> | ||||
<%= stylesheet_link_tag 'scm' %> | ||||
|
r5323 | <%= robot_exclusion_tag %> | ||
|
r2220 | <% end %> | ||