- content_for :sublayout_title, 'Usage Alerts for different Usage Levels'

p
  ' Here you can set at which utilization levels you want to trigger alerts, whom you want to send these alerts to (admins and/or developers) and by which means (web and/or email).
  em In order for an application to trigger usage alerts, usage limit(s) need to be set up in the Application Plan to which the application is subscribed.

div data-help="alerts-notifications"
  = form_for @service, url: admin_service_path(@service), method: :put do |f|
    table id="notification-settings-table" class="data notification-settings"
      thead
        tr
          th
          - @alert_limits.each do |level|
            th
              = level
              | %

      tbody
        = row_for_alert_levels 'Show Web Alerts to Admins of this Account', :web_provider
        = row_for_alert_levels 'Send Email Alerts to Admins of this Account', :email_provider
      thead
        tr
          th.spacer colspan="9"
      tbody
        = row_for_alert_levels 'Show Web Alerts to Admins of the Developer Account', :web_buyer
        = row_for_alert_levels 'Send Email Alerts to Admins of the Developer Account', :email_buyer

    p style="float: right"
      = f.submit 'Update Alert Settings', class: "important-button update"
