       tooltip    :
         title    : 'This group currently using this template'
 
-    @labels.addSubView @inUseView     = new kd.CustomHTMLView
+    @inUseView   = new kd.CustomHTMLView
       cssClass   : 'custom-tag'
       partial    : 'IN USE'
       attributes :

      tooltip    :
        title    : 'Template is not verified or credential data is missing'

    @labels.addSubView @accessLevelView = new kd.CustomHTMLView
      cssClass   : "custom-tag #{accessLevel}"
      partial    : accessLevel.toUpperCase()
      attributes :
        testpath : 'StackAccessLevelTag'
      tooltip    :
        title    : switch accessLevel
          when 'public'
            'This group currently using this template'
          when 'group'
            'This template can be used in group'
          when 'private'
            'Only you can use this template'

    @isDefaultView.hide() unless isDefault
    @inUseView.hide()     unless inUse
    @notReadyView.hide()  if config.verified


  updateLabels: ->

    @isDefaultView?.destroy()
    @inUseView?.destroy()
    @notReadyView?.destroy()
    @accessLevelView?.destroy()
    @buildLabels()


  _itemSelected: (data) ->


  buildViews: ->

    { isDefault, inUse, accessLevel, config } = @getData()

    @isDefaultView = new kd.CustomHTMLView
      cssClass   : 'custom-tag'
      partial    : 'DEFAULT'
      attributes :
