<% # 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 . %> <% if @assignment.title.nil? %> <% provide :page_title, t("Create Assignment") %> <% else %> <% provide :page_title, t("Edit Assignment") %> <% end %> <% js_env :assignment_attempts_enabled => !@assignment.quiz_lti? css_bundle :assignments, :assignments_edit, :conditional_release_editor, :tinymce js_bundle :assignment_edit %> <% if @assignment.omit_from_final_grade %>
<%= t("This assignment does not count toward the final grade.") %>
<% end %>
<%= render "shared/select_content_dialog", :only => [:external_tools], lti_app_placements: [Lti::ResourcePlacement::ASSIGNMENT_SELECTION, Lti::ResourcePlacement::RESOURCE_SELECTION] %> <% if @assignment.quiz_lti? && @assignment.persisted? %>
<%= t 'links.add_rubric', "Rubric" %>
<% if can_do(@assignment, @current_user, :update) %>
<%= t('Add Rubric') %>
<% end %> <%= render partial: "shared/rubrics_component" %> <% end %>