%
# 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 .
%>
<% js_bundle :select_content_dialog %>
<% css_bundle :select_content_dialog %>
<% css_bundle :react_files %>
<% only ||= nil # only is an optimization, so that tabs that aren't going to be used won't have their data loaded %>
<% lti_app_placements ||= [] %>
<% module_dnd = !!@context.root_account.feature_enabled?(:module_dnd) %>
<% cache([@context, 'select_context_content_dialog_1', only, module_dnd].cache_key) do %>
<%= t :sub_header_notice, "Type the text you'd like to add as a *module* sub-header", :wrapper => '\1' %>
<% end %>
<% if !only || only.include?(:external_urls) %>
<%= t :external_url_notice, "Enter a URL and page name to add a link to any website URL to this *module*.", :wrapper => '\1' %>
<% end %>
<% if !only || only.include?(:external_tools) %>
<%= t :external_tool_notice, "Select a tool from the list below, or enter a URL for an external tool you already know is configured with Basic LTI to add a link to it to this *module*.", :wrapper => '\1' %>
<%= t :loading, "Loading..." %>
<%= t :domain_match_notice, "to use this tool the domain must match %{domain}", :domain => ''.html_safe %>
<% end %>
<% if !only || only.include?(:wiki_pages) %>
<%= t 'Select the page you want to associate with this *module*, or add a new page by selecting "New Page".', :wrapper => '\1' %>
<% end %>
<% if !only || only.include?(:attachments) %>
<% if module_dnd %>
<%= t 'Select the files you want to associate with this *module*, or add files by selecting "New File(s)".', :wrapper => '\1' %>
<% else %>
<%= t 'Select the file you want to associate with this *module*, or add a file by selecting "New File".', :wrapper => '\1' %>
<% end %>
<% end %>
<% if !only || only.include?(:quizzes) %>
<%= t :quiz_notice, 'Select the quiz you want to associate with this *module*, or add a new one by selecting "New Quiz".', :wrapper => '\1' %>
<%= before_label :quiz_name, "Quiz Name" %>
"/>
<%= before_label :quiz_group, "Group" %>
<% end %>
<% if !only || only.include?(:assignments) %>
<%= t :assignment_notice, 'Select the assignment you want to associate with this *module*, or add an assignment by selecting "New Assignment".', :wrapper => '\1' %>