new.html.erb
55 lines
| 2.1 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' %> | ||
|
r8767 | <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %> | ||
|
r8079 | <div class="box tabular"> | ||
|
r8767 | <div id="all_attributes"> | ||
|
r860 | <%= render :partial => 'issues/form', :locals => {:f => f} %> | ||
|
r8432 | </div> | ||
|
r8079 | |||
|
r8557 | <% if @copy_from && @copy_from.attachments.any? %> | ||
|
r8767 | <p> | ||
<label for="copy_attachments"><%= l(:label_copy_attachments) %></label> | ||||
<%= check_box_tag 'copy_attachments', '1', @copy_attachments %> | ||||
</p> | ||||
<% end %> | ||||
|
r8557 | |||
|
r8771 | <p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p> | ||
|
r8079 | |||
|
r8080 | <% if @issue.safe_attribute? 'watcher_user_ids' -%> | ||
|
r8079 | <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> | ||
|
r9134 | <span id="watchers_inputs"> | ||
<%= watchers_checkboxes(@issue, @available_watchers) %> | ||||
|
r9145 | </span> | ||
<span class="search_for_watchers"> | ||||
|
r9134 | <%= link_to_remote l(:label_search_for_watchers), | ||
:url => {:controller => 'watchers', :action => 'new', :project_id => @issue.project}, | ||||
:method => 'get' %> | ||||
|
r9145 | </span> | ||
</p> | ||||
|
r8079 | <% end %> | ||
</div> | ||||
|
r9145 | <%= submit_tag l(:button_create) %> | ||
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | ||||
<%= link_to_remote l(:label_preview), | ||||
|
r8766 | { :url => preview_new_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 | |||
|
r9145 | <%= 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 %> | ||