copy.html.erb 2.06 KB
Newer Older
jplang's avatar
jplang committed
1
<h2><%=l(:label_project_new)%></h2>
2

jplang's avatar
jplang committed
3
<%= labelled_form_for @project, :url => { :action => "copy" } do |f| %>
4 5
<%= render :partial => 'form', :locals => { :f => f } %>

6
<fieldset class="box tabular"><legend><%= l(:button_copy) %></legend>
jplang's avatar
jplang committed
7 8 9 10 11
  <label class="block"><%= check_box_tag 'only[]', 'members', true, :id => nil %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label>
  <label class="block"><%= check_box_tag 'only[]', 'versions', true, :id => nil %> <%= l(:label_version_plural) %> (<%= @source_project.versions.count %>)</label>
  <label class="block"><%= check_box_tag 'only[]', 'issue_categories', true, :id => nil %> <%= l(:label_issue_category_plural) %> (<%= @source_project.issue_categories.count %>)</label>
  <label class="block"><%= check_box_tag 'only[]', 'issues', true, :id => nil %> <%= l(:label_issue_plural) %> (<%= @source_project.issues.count %>)</label>
  <label class="block"><%= check_box_tag 'only[]', 'queries', true, :id => nil %> <%= l(:label_query_plural) %> (<%= @source_project.queries.count %>)</label>
12
  <label class="block"><%= check_box_tag 'only[]', 'documents', true, :id => nil %> <%= l(:label_document_plural) %> (<%= @source_project.documents.count %>)</label>
jplang's avatar
jplang committed
13 14
  <label class="block"><%= check_box_tag 'only[]', 'boards', true, :id => nil %> <%= l(:label_board_plural) %> (<%= @source_project.boards.count %>)</label>
  <label class="block"><%= check_box_tag 'only[]', 'wiki', true, :id => nil %> <%= l(:label_wiki_page_plural) %> (<%= @source_project.wiki.nil? ? 0 : @source_project.wiki.pages.count %>)</label>
15
  <%= hidden_field_tag 'only[]', '' %>
16
  <br />
17
  <label class="block"><%= check_box_tag 'notifications', 1, params[:notifications] %> <%= l(:label_project_copy_notifications) %></label>
18 19
</fieldset>

20 21 22 23 24 25 26 27
<% @project.tracker_ids.each do |tracker_id| %>
  <%= hidden_field_tag 'project[tracker_ids][]', tracker_id %>
<% end %>

<% @project.issue_custom_field_ids.each do |issue_custom_field_id| %>
  <%= hidden_field_tag 'project[issue_custom_field_ids][]', issue_custom_field_id %>
<% end %>

28 29
<%= submit_tag l(:button_copy) %>
<% end %>