   }
 
 
-
-
 module.exports = class GroupGeneralSettingsView extends KDView
 
   constructor: (options = {}, data) ->

  field.addSubView form.inputs[name] = input = new itemClass options
  field.addSubView new KDCustomHTMLView tagName : 'p', partial : description  if description

  return input

addButton = (form, options) ->

      label        : 'Name'
      description  : 'Your team name is displayed in menus and emails. It usually is (or includes) the name of your company.'
      name         : 'title'
      defaultValue : Encoder.htmlDecode group.title ? ''
      placeholder  : 'Please enter a title here'

    addInput form,
      label        : 'URL'
      description  : 'Your team URL can only contain lowercase letters, numbers and dashes (and must start with a letter or number). We don\'t recommend changing this.'
      name         : 'url'
      defaultValue : Encoder.htmlDecode group.title ? ''
      placeholder  : 'Please enter a title here'

    addInput form,
      label        : 'Default Channels'
      description  : 'Your new members will automatically join to <b>#general</b> channel. Here you can specify more channels for new team members to join automatically.'
      name         : 'channels'
      placeholder  : 'product, design, ux, random etc'
      nextElement  : new KDCustomHTMLView
        tagName    : 'span'
        partial    : 'Please add channel names separated by commas.'

    addButton form,
      title    : 'Save Changes'
      callback : -> console.log 'lolooloo'


