<% # 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 . %> <% alert ||= Alert.new; alert_counter ||= -1 %> <% if alert_counter > 0 %>
<% end %> <% alert_counter = '{{id}}' if alert_counter == -1 %> <%= form_for [@context, alert], :html => { :class => "alert displaying #{'blank' if alert.new_record?}" } do |f| %>
<%= before_label :criteria, "Trigger an alert when" %>
<%= before_label :recipients, "Send a notification to" %>
<%= before_label :repetition, "Repetition" %>

<% end %>