2008-01-23 22:58:11 +03:00
|
|
|
<h2><%=l(:label_issue_new)%></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2011-12-12 22:12:03 +04:00
|
|
|
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
|
|
|
|
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= labelled_form_for @issue, :url => project_issues_path(@project),
|
2011-12-06 22:02:10 +04:00
|
|
|
:html => {:id => 'issue-form', :multipart => true} do |f| %>
|
2011-12-14 00:02:49 +04:00
|
|
|
<%= error_messages_for 'issue' %>
|
2012-02-16 05:34:28 +04:00
|
|
|
<%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
|
2011-12-14 00:02:49 +04:00
|
|
|
<div class="box tabular">
|
2012-02-16 05:34:28 +04:00
|
|
|
<div id="all_attributes">
|
2007-10-28 17:31:59 +03:00
|
|
|
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
2012-01-08 15:16:54 +04:00
|
|
|
</div>
|
2011-12-14 00:02:49 +04:00
|
|
|
|
2012-01-20 22:22:43 +04:00
|
|
|
<% if @copy_from && @copy_from.attachments.any? %>
|
2012-02-16 05:34:28 +04:00
|
|
|
<p>
|
|
|
|
<label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
|
|
|
|
<%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
2012-09-08 09:34:07 +04:00
|
|
|
<% 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 %>
|
2012-01-20 22:22:43 +04:00
|
|
|
|
2012-07-29 14:53:02 +04:00
|
|
|
<p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>
|
2011-12-14 00:02:49 +04:00
|
|
|
|
2011-12-14 00:40:03 +04:00
|
|
|
<% if @issue.safe_attribute? 'watcher_user_ids' -%>
|
2011-12-14 00:02:49 +04:00
|
|
|
<p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
|
2012-03-24 16:57:28 +04:00
|
|
|
<span id="watchers_inputs">
|
|
|
|
<%= watchers_checkboxes(@issue, @available_watchers) %>
|
2012-03-28 07:34:39 +04:00
|
|
|
</span>
|
|
|
|
<span class="search_for_watchers">
|
2012-07-18 22:01:14 +04:00
|
|
|
<%= link_to l(:label_search_for_watchers),
|
|
|
|
{:controller => 'watchers', :action => 'new', :project_id => @issue.project},
|
|
|
|
:remote => true,
|
|
|
|
:method => 'get' %>
|
2012-03-28 07:34:39 +04:00
|
|
|
</span>
|
|
|
|
</p>
|
2011-12-14 00:02:49 +04:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2012-03-28 07:34:39 +04:00
|
|
|
<%= submit_tag l(:button_create) %>
|
|
|
|
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
2012-07-18 21:47:19 +04:00
|
|
|
<%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form' %>
|
2011-09-14 12:42:24 +04:00
|
|
|
|
2012-07-22 17:29:26 +04:00
|
|
|
<%= javascript_tag "$('#issue_subject').focus();" %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% end %>
|
2007-10-06 12:54:05 +04:00
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|
2009-01-03 16:14:28 +03:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
2011-04-12 23:22:44 +04:00
|
|
|
<%= robot_exclusion_tag %>
|
2009-01-03 16:14:28 +03:00
|
|
|
<% end %>
|