= semantic_form_for preferences_form.model,
        url: provider_admin_user_notification_preferences_path, method: :patch do |f|

  - preferences_form.categories.each do |category|

    h3= t(category.title_key, scope: :notification_category_titles)

    = f.inputs do
      = f.input :enabled_notifications, as: :check_boxes_with_hints, required: false,
              collection: category.notifications,
              label_method: ->(value) { t(value, scope: :notification_preference_titles) },
              hint_method: ->(value) { t(value, scope: :notification_preference_hints) }

  = f.buttons do
    = f.commit_button 'Save Notification Preferences'
