     @plansByCode = {}
 
     JGroupBundle.fetchPlans (err, plans) =>
+
+      # TODO: DRY
 
       @computePlans.addSubView computePlans = new KDInputRadioGroup
         name    : 'computePlan'

#     console.log this
#     @emit 'update'

class GroupsBundleLimitPerUserView extends JView

  pistachio: ->
    """
    {h2{#(title)}}
    {h3{#(usage)}}
    <h3>/</h3>
    <h3>{.per-user{#(perUserQuota)}} - {.total{#(quota)}}</h3>
    {h4{#(unit)}}
    """

class GroupsBundleLimitView extends JView

  pistachio: ->
    """

    disk  : 0.5

  computeUnitVisibility =
    'users'         : yes
    'vms'           : yes
    'cpu'           : no
    'ram'           : no
    'disk'          : no
    'cpu per user'  : no
    'ram per user'  : no
    'disk per user' : no

  mapPlansToRadios: (plan) ->
    @plansByCode[plan.code] = plan
