<% # Copyright (C) 2012 - 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 . %> <%= form_for Course.new, :html => { :id => 'new_course_form', :class => 'bootstrap-form form-horizontal', 'data-turn-into-dialog' => '{"responsive":true,"width":500,"resizable":false}', :title => t('start_a_new_course', 'Start a New Course'), :style => 'display:none;' } do |f| %>
<%= f.label :name, :en => "Course Name", :class => "control-label" %>
<%= f.text_field :name, :placeholder => t('new_course_name_placeholder', 'Course Name'), :class => 'input-xlarge', :maxlength => '255' %>
<%= f.label :license, :en => "Content License", :class => "control-label" %>
<% cc, non_cc = Course.licenses.map { |id, attrs| [attrs[:readable_license].call, id]}.partition{|n, id| id.start_with?('cc')} %>
<% if course_permission_to?("manage_course_visibility") %> <% end %>
<% end %>