To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / issues / new.html.erb @ 1297:0a574315af3e
History | View | Annotate | Download (1.99 KB)
| 1 |
<h2><%=l(:label_issue_new)%></h2> |
|---|---|
| 2 |
|
| 3 |
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
|
| 4 |
|
| 5 |
<%= labelled_form_for @issue, :url => project_issues_path(@project),
|
| 6 |
:html => {:id => 'issue-form', :multipart => true} do |f| %>
|
| 7 |
<%= error_messages_for 'issue' %>
|
| 8 |
<%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
|
| 9 |
<div class="box tabular"> |
| 10 |
<div id="all_attributes"> |
| 11 |
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
| 12 |
</div>
|
| 13 |
|
| 14 |
<% if @copy_from && @copy_from.attachments.any? %>
|
| 15 |
<p>
|
| 16 |
<label for="copy_attachments"><%= l(:label_copy_attachments) %></label> |
| 17 |
<%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
|
| 18 |
</p>
|
| 19 |
<% end %>
|
| 20 |
<% if @copy_from && !@copy_from.leaf? %>
|
| 21 |
<p>
|
| 22 |
<label for="copy_subtasks"><%= l(:label_copy_subtasks) %></label> |
| 23 |
<%= check_box_tag 'copy_subtasks', '1', @copy_subtasks %>
|
| 24 |
</p>
|
| 25 |
<% end %>
|
| 26 |
|
| 27 |
<p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p> |
| 28 |
|
| 29 |
<% if @issue.safe_attribute? 'watcher_user_ids' -%>
|
| 30 |
<p id="watchers_form"><label><%= l(:label_issue_watchers) %></label> |
| 31 |
<span id="watchers_inputs"> |
| 32 |
<%= watchers_checkboxes(@issue, @available_watchers) %>
|
| 33 |
</span>
|
| 34 |
<span class="search_for_watchers"> |
| 35 |
<%= link_to l(:label_search_for_watchers),
|
| 36 |
{:controller => 'watchers', :action => 'new', :project_id => @issue.project},
|
| 37 |
:remote => true,
|
| 38 |
:method => 'get' %>
|
| 39 |
</span>
|
| 40 |
</p>
|
| 41 |
<% end %>
|
| 42 |
</div>
|
| 43 |
|
| 44 |
<%= submit_tag l(:button_create) %>
|
| 45 |
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
| 46 |
<%= preview_link preview_new_issue_path(:project_id => @project), 'issue-form' %>
|
| 47 |
|
| 48 |
<%= javascript_tag "$('#issue_subject').focus();" %>
|
| 49 |
<% end %>
|
| 50 |
|
| 51 |
<div id="preview" class="wiki"></div> |
| 52 |
|
| 53 |
<% content_for :header_tags do %>
|
| 54 |
<%= robot_exclusion_tag %>
|
| 55 |
<% end %>
|