<%= form.inputs :name => '' do %>
  <%= form.input :url, :required => true %>
  <%= form.input :active, :as => :slider, :url => '#webhooks-switch', link_options: { remote: false } %>
  <%= form.input :active, :as => :hidden, :disabled => true %>

  <%= form.input :provider_actions,
                 :label => "Dashboard actions fire web hooks",
                 :hint =>  "(if unchecked, only user actions in the portal trigger events)"  %>
<% end %>

<%= form.inputs :name => 'Settings', :class => 'inputs' do %>
  <table>
    <tr>
      <td>
      <%= form.inputs :name => 'Accounts' do %>
        <%= form.input :account_created_on, :label => "Create" %>
        <%= form.input :account_updated_on, :label => "Update" %>
        <%= form.input :account_plan_changed_on, :label => "Plan Changed" %>
        <%= form.input :account_deleted_on, :label => "Delete" %>
      <% end %>
      </td>
      <td>
      <%= form.inputs :name => 'Users' do %>
        <%= form.input :user_created_on, :label => "Create" %>
        <%= form.input :user_updated_on, :label => "Update" %>
        <%= form.input :user_deleted_on, :label => "Delete" %>
      <% end %>
      </td>
      <td>
      <%= form.inputs :name => 'Applications' do %>
        <%= form.input :application_created_on, :label => "Create" %>
        <%= form.input :application_updated_on, :label => "Update" %>
        <%= form.input :application_suspended_on, :label => "Suspended" %>
        <%= form.input :application_plan_changed_on, :label => "Plan Changed" %>
        <%= form.input :application_user_key_updated_on, :label => "API Key Changed" %>
        <%#= form.input :application_deleted_on, :label => "Delete" %>
      <% end %>
      </td>
      <td>
      <%= form.inputs :name => 'Keys' do %>
        <%= form.input :application_key_created_on, :label => "Key Created" %>
        <%= form.input :application_key_deleted_on, :label => "Key Deleted" %>
        <%= form.input :application_key_updated_on, :label => "Key Updated" %>
      <% end %>
      </td>
    </tr>
  </table>
<% end -%>
