             cssClass  : "help-text warning"
         change: =>
           @setVisibilityOfOverlayWarning @inputs.Overlay.getValue() is "no" # wtf "no"
-
       Visibility       :
         label         : "Visibility"
         type          : "select"

            cssClass  : "introduction-snippet-switch snippet"
            click     : => @switchMode()

    options.fields  = itemFields
    if options.type is "Group"
      if options.actionType is "Insert"
        groupFields[key] = field for key, field of itemFields
      options.fields = groupFields

    options.buttons =
      "Save"          :

      @updateChild()

  insertParent: ->
    data = @createPostData()
    if not @getOptions().addingToAGroup
      @destroy()
      @getDelegate().showForm "Item", data, "Insert", yes
    else
      @parentData.snippets.push data
      KD.remote.api.JIntroSnippet.create @parentData, =>
        @buttons["Save"].hideLoader()
        @emit "IntroductionFormNeedsReload"

  insertChild: ->
    @parentData.addChild @createPostData(), =>
