new.html.erb
55 lines
| 2.0 KiB
| text/plain
|
TextLexer
|
r1083 | <h2><%=l(:label_issue_new)%></h2> | ||
|
r330 | |||
|
r8073 | <%= call_hook(:view_issues_new_top, {:issue => @issue}) %> | ||
|
r9346 | <%= labelled_form_for @issue, :url => project_issues_path(@project), | ||
|
r7981 | :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 %> | ||||
|
r10144 | <% if @copy_from && !@copy_from.leaf? %> | ||
<p> | ||||
<label for="copy_subtasks"><%= l(:label_copy_subtasks) %></label> | ||||
<%= check_box_tag 'copy_subtasks', '1', @copy_subtasks %> | ||||
</p> | ||||
<% end %> | ||||
|
r8557 | |||
|
r9931 | <p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= 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"> | ||||
|
r9849 | <%= link_to l(:label_search_for_watchers), | ||
{:controller => 'watchers', :action => 'new', :project_id => @issue.project}, | ||||
:remote => true, | ||||
:method => 'get' %> | ||||
|
r9145 | </span> | ||
</p> | ||||
|
r8079 | <% end %> | ||
</div> | ||||
|
r9145 | <%= submit_tag l(:button_create) %> | ||
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | ||||
|
r9848 | <%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form' %> | ||
|
r7105 | |||
|
r9885 | <%= javascript_tag "$('#issue_subject').focus();" %> | ||
|
r42 | <% end %> | ||
|
r801 | |||
<div id="preview" class="wiki"></div> | ||||
|
r2220 | |||
<% content_for :header_tags do %> | ||||
|
r5323 | <%= robot_exclusion_tag %> | ||
|
r2220 | <% end %> | ||