%
# 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
<%= f.blabel :name, :en => "Section Name" %> | <%= f.text_field :name %> |
<%= f.blabel :sis_source_id, :en => "SIS ID" %> | <% if can_do(@context.root_account, @current_user, :manage_sis) %> <%= f.text_field :sis_source_id, :style => "width: 50px;", :title => "SIS ID", :value => @section.sis_source_id %> <% else %> <%= @section.sis_source_id %> <% end %> |
<%= t "Changing section dates may override course and term availability settings and placement in the Courses page and Dashboard. Please confirm term and course dates before modifying section dates." %>
|
|
<%= f.blabel :start_at, en: "Starts" %> | <%= f.text_field :start_at, class: "datetime_field", value: datetime_string(@section.start_at), style: 'width: 120px;', "aria-labelledby" => "section_starts_at_label", "data-tooltip" => "", title: accessible_date_format %> |
<%= f.blabel :end_at, en: "Ends" %> | <%= f.text_field :end_at, class: "datetime_field", value: datetime_string(@section.end_at), style: 'width: 120px;', "aria-labelledby" => "section_ends_at_label", "data-tooltip" => "", title: accessible_date_format %> |
<%= f.check_box :restrict_enrollments_to_section_dates, 'aria-describedby' => 'restrict-enrollments-description' %>
<%= f.label :restrict_enrollments_to_section_dates, t("Students can only participate in the course between these dates") %>
<%= t "When selected, the course section is in a read-only state outside these dates." %>
|
|
|
<%= t('pending_enrollment', {:one => '1 Pending Enrollment', :other => '%{count} Pending Enrollments'}, :count => @pending_enrollments_count) %> |
<%= t('active_enrollment', {:one => '1 Active Enrollment', :other => '%{count} Active Enrollments'}, :count => @enrollments_count) %> |
<%= t('completed_enrollment', {:one => '1 Completed Enrollment', :other => '%{count} Completed Enrollments'}, :count => @completed_enrollments_count) %> |