%= form_for @check, html: {class: "small-form"} do |f| %> <% unless @check.respond_to?(:check_type) || @check.respond_to?(:invert) %>
Checks are designed to identify bad data. A check fails if there are any results.
<% end %> <% if @check.errors.any? %>Emails <%= Blazer.slack? ? "and Slack notifications " : nil %>are sent when a check starts failing, and when it starts passing again.
<% if @check.persisted? %> <%= link_to "Delete", check_path(@check), method: :delete, "data-confirm" => "Are you sure?", class: "btn btn-danger" %> <% end %> <%= f.submit "Save", class: "btn btn-success" %> <%= link_to "Back", :back, class: "btn btn-link" %>
<% end %>