<% # Copyright (C) 2016 - 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 . %>
<%= t("SIS Integration Settings") %> <%= f.label :sis_name, t("If you wish, you can rename \"SIS\" to something more familiar to your staff") %>
<%= f.fields_for :settings do |settings| %> <%= settings.label :sis_name, t("SIS friendly name") %> <%= settings.text_field :sis_name, :value => @account.settings[:sis_name], :maxlength => 255, :disabled => !@account.root_account? %> <% end %>
<%= f.check_box :allow_sis_import, :checked => @account.allow_sis_import %> <%= f.label :allow_sis_import, t("SIS imports") %>
<%= f.fields_for :settings do |settings| %> <%= settings.check_box :include_integration_ids_in_gradebook_exports, :checked => @account.settings[:include_integration_ids_in_gradebook_exports] == true %> <%= settings.label :include_integration_ids_in_gradebook_exports, t("Include Integration IDs in the gradebook exports.") %> <% end %>
<% if @account.feature_allowed?(:post_grades)%> <%= f.fields_for :settings do |settings| %> <%= settings.fields_for :sis_syncing do |ff_syncing| %> <% sis_syncing = @account.sis_syncing sis_syncing_locked_subs = sis_syncing[:locked] && sis_syncing[:inherited] %>
<%= ff_syncing.check_box :value, :checked => sis_syncing[:value], :disabled => sis_syncing_locked_subs, "aria-controls" => "account_settings_sis_syncing_value_settings" %> <%= ff_syncing.label :value, t("SIS syncing") %>
<% end %> <% end %> <% end %>
<%= render partial: 'sis_agent_token_auth', locals: {f: f} %>