<% # Copyright (C) 2015 - 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 :context_module, :url => context_url(@context, :context_context_modules_url), :html => {:id => "add_context_module_form", :style => "display: none;", :class => "form-dialog"} do |f| %>
<%= f.text_field :name, :placeholder => t('Module Name'), :id => 'context_module_name', :class => 'ic-Input' %>
<%= f.text_field :unlock_at, class: "datetime_field", 'aria-labelledby' => 'unlock_at_date_label', 'data-tooltip' => '', :placeholder => t("Unlock At"), title: accessible_date_format %>

<%= t(:before_viewing, "Prerequisites") %>

<%= f.label :module_complete_when, :en => "Requirements", class: "ic-Label form-element" %>
<%= f.radio_button :requirement_count, "" %> <%= f.label :requirement_count, t("Students must complete all of these requirements"), class: "ic-Label", value: "" %>
<%= f.check_box :require_sequential_progress, :id => "require_sequential_progress" %> <%= f.label :require_sequential_progress, :en => "Students must move through requirements in sequential order", :for => "require_sequential_progress", class: 'ic-Label' %>
<%= f.radio_button :requirement_count, 1 %> <%= f.label :requirement_count, t("Students must complete one of these requirements"), class: "ic-Label", value: 1 %>
<% if Canvas::Plugin.find!('grade_export').enabled? %>
<%= f.check_box :publish_final_grade, :id => "publish_final_grade" %> <%= f.label :publish_final_grade, :en => "Publish final grade for the student when this module is completed", :for => "publish_final_grade" %>
<% end %>
<% end %>