<% # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <% provide :page_title, t('titles.copy_course', 'Copy Course') %> <% add_crumb t('#crumbs.copy_course', 'Copy Course') %>
<% js_bundle :copy_warnings_modal %>

<%= t'headings.copy_course', 'Copy %{course}', :course => @context.name %>

<%= t('details', %{Please enter the details for the new course.}) %>

<%= form_for :course, :url => course_copy_course_url(@context), :html => {:id => "copy_course_form", :class => "form-horizontal"} do |f| %>
<%= f.text_field :name, :value => @context.name %>
<%= f.text_field :course_code, :value => @context.course_code %>
<%= f.text_field :start_at, class: 'datetime_field', style: "width: 165px;", value: datetime_string(@context.start_at, :verbose), "aria-labelledby" => "course_starts_at_label", "data-tooltip" => "", title: accessible_date_format %>
<%= f.text_field :conclude_at, class: 'datetime_field', style: "width: 165px;", value: datetime_string(@context.conclude_at, :verbose), "aria-labelledby" => "course_ends_at_label", "data-tooltip" => "", title: accessible_date_format %>
<% if can_do(@context.account, @current_user, :manage_courses, :manage_courses_admin) %>
<% end %>
<%= t('content_label', 'Content') %>
<% if MasterCourses::MasterTemplate.is_master_course?(@context) %>
<% end %>
<% if @context.root_account.feature_allowed?(:quizzes_next) && @context.root_account.feature_enabled?(:new_quizzes_migration) %>
<% end %>
<%= t '#buttons.cancel', 'Cancel' %>
<% end %> <% js_bundle :copy_course %>