             label             :
               itemClass       : KDCustomHTMLView
               cssClass        : "section-label first"
-              partial         : "Define your firewall restriction"
+              partial         : "Define your firewall rule"
             name              :
               label           : "Name"
               name            : "name"
               cssClass        : "half"
-              placeholder     : "Name of your restriction"
+              placeholder     : "Name of your rule"
               validate        :
                 rules         :
                   required    : yes
                 messages      :
-                  required    : "Please enter a restriction name"
+                  required    : "Please enter a rule name"
             action            :
               label           : "Action"
               name            : "action"

    options.tabs              =
      callback                : @bound "handleFormSubmit"
      forms                   :
        Restriction           :
          buttons             :
            Save              :
              title           : "Save"

      cssClass  : "solid green small add-rule"
      callback  : @bound "createRuleWidget"

    @modalTabs.forms.Rules.buttonField.addSubView button, null, yes

  createRuleWidget: (removable = yes) ->
    widget = new FirewallFilterWidget { removable }
    widget.on "FirewallFilterRemoved", =>
      @ruleWidgets.splice @ruleWidgets.indexOf(widget), 1

    @modalTabs.forms.Rules.fields.container.addSubView widget
    @ruleWidgets.push widget

  handleFormSubmit: ->
    isValid          = yes
    ruleTypes        = [ "request.second", "request.minute" ]
    hasRequestFilter = no

    for widget in @ruleWidgets
      {type} = widget.inputs
      if ruleTypes.indexOf(type.getValue()) > -1
        isValid = no  if hasRequestFilter
        hasRequestFilter = yes

    unless isValid
      return new KDNotificationView
        title     : "You can select only one request type filter"
        cssClass  : "error"
        type      : "mini"
        container : this
        duration  : 4000

class FirewallFilterWidget extends KDFormViewWithFields

  constructor: (options = {}, data) ->

