Project

General

Profile

Patch #42081 » new.html.erb

redmine-5.1.3\app\views\issues - Alfredo Renzetti, 2025-01-07 16:40

 
1
<%= title l(:label_issue_new) %>
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 && Setting.link_copied_issue == 'ask' %>
15
    <p>
16
      <label for="link_copy"><%= l(:label_link_copied_issue) %></label>
17
      <%= check_box_tag 'link_copy', '1', @link_copy %>
18
    </p>
19
    <% end %>
20
    <% if @copy_from && @copy_from.attachments.any? %>
21
    <p>
22
      <label for="copy_attachments"><%= l(:label_copy_attachments) %></label>
23
      <%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
24
    </p>
25
    <% end %>
26
    <% if @copy_from && !@copy_from.leaf? %>
27
    <p>
28
      <label for="copy_subtasks"><%= l(:label_copy_subtasks) %></label>
29
      <%= check_box_tag 'copy_subtasks', '1', @copy_subtasks %>
30
    </p>
31
    <% end %>
32
	<!-- ALF -->
33
	<% if @copy_from && @copy_from.relations_from.where(relation_type: 'precedes').any? %>
34
    <p>
35
      <label for="copy_follows"><%= l(:label_copy_follows) %></label>
36
      <%= check_box_tag 'copy_follows', '1', @copy_follows %>
37
    </p> 
38
	<% end %>                                                                                                                                                                       
39
	<!-- /ALF -->
40

    
41
    <p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>
42

    
43
    <div id="watchers_form_container">
44
      <%= render :partial => 'issues/watchers_form' %>
45
    </div>
46
  </div>
47

    
48
  <%= submit_tag l(:button_create) %>
49
  <% if params[:back_url] && params[:issue] && params[:issue][:parent_issue_id] %>
50
    <%= submit_tag l(:button_create_and_follow), name: 'follow' %>
51
  <% end %>
52
  <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
53
<% end %>
54

    
55
<% content_for :header_tags do %>
56
    <%= robot_exclusion_tag %>
57
<% end %>
(2-2/5)