         title         : 'Add'
         style         : 'solid medium green'
         callback      : @bound 'showNewRoleModal'
+        cssClass      : if isKoding() then '' else 'hidden'
 
     options.fields or= optionizePermissions.call this, @roles, @permissionSet
     super options,data


  optionizePermissions = (roles, set) ->

    permissionOptions = {}

    # set.permissionsByModule is giving all the possible permissions

kd                   = require 'kd'
KDView               = kd.View
isKoding             = require 'app/util/isKoding'
showError            = require 'app/util/showError'
KDInputView          = kd.InputView
KDLabelView          = kd.LabelView
KDModalView          = kd.ModalView
KDSelectBox          = kd.SelectBox
KDButtonView         = kd.ButtonView
PermissionSwitch     = require './permissionswitch'
KDNotificationView   = kd.NotificationView
KDFormViewWithFields = kd.FormViewWithFields
limitedPermissions   =
  JGroup             : [ 'send invitations', 'send private message', 'browse content by tag', 'edit tags' ]
  ComputeProvider    : [ 'sudoer', 'create machines', 'update machines' ]
  JStackTemplate     : [ 'create stack template', 'update stack template' ]


module.exports = class PermissionsForm extends KDFormViewWithFields
