<% # 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 . %> <% provide :page_title do %><%= join_title t(:page_title, "Plugin Settings"), @plugin.name %><% end %> <% js_bundle :plugins add_crumb(t('#crumbs.plugins', "Plugins"), plugins_path) add_crumb(@plugin.name) %>

<%= join_title t(:page_title, "Plugin Settings"), @plugin.name %>

<%= render :partial => "settings_header" %>
<%= form_for(@plugin_setting, :url => plugin_path(@plugin.id), :html => {:method => :put}) do |f| %>
<%= f.check_box :disabled, :class => "disabled_checkbox" %> <%= f.label :disabled, :en => "Disable this Plugin" %>
<% partial = render :partial => @plugin.settings_partial, :locals => {:settings => (@plugin_setting.settings || {}).merge(params[:settings]&.to_unsafe_h || {})} %> <% if @plugin_setting.errors.any? %>

<%= t({ one: "1 error prohibited this plugin from being saved:", other: "%{count} errors prohibited this plugin from being saved:" }, count: @plugin_setting.errors.count ) %>

    <% @plugin_setting.errors.full_messages.each do |msg| %>
  • <%= msg %>
  • <% end %>
<% end %>
<%= partial %>
<%=link_to(t(:back_to_list, "Return to plugins list"), plugins_path,:class => 'btn btn button-secondary')%>
<% end %>