{{refid=queries['ref']}} {{devroot=device_by_ref refid}} {{if !(devroot==null)}} {{devprilist=devroot.display_priority_temp}} {{end}} {{qchild = queries['feature']}}
{{device_name_full refid}} {{if qchild!=null}} {{noteid=qchild}}  ({{device_prop qchild 'Name'}}) {{else}} {{noteid=refid}} {{end}} {{usernote=device_prop noteid 'usernote'}} {{if usernote==''}} {{else}} {{end}}
{{if (array.size devprilist) == 0}}
No extra features for this device
{{end}} {{show=""}} {{if qchild == null}} {{if (array.size list) > 0}}
#
Feature
{{end}} {{count=1}} {{if !is_mobile_browser}}
#
Feature
{{end}}
{{for devpri in devprilist}} {{child=(feature_by_device refid devpri.ref)}} {{disp_pri=devpri.display_type}}
{{count}}
{{device_prop child.ref 'Name'}}
{{if disp_pri=='DISPLAY_NORMAL'}} {{else if disp_pri=='DISPLAY_IMPORTANT'}} {{else}} {{end}} {{if count>1}} {{if count==(array.size devprilist)}} {{end}} {{else}} {{end}} {{if count<(array.size devprilist)}} {{end}}
{{count=count+1}} {{end}}
{{else}} {{child=(feature_by_device refid qchild)}}
{{if location1_display_first}}
{{else}}
{{end}}
{{~cats=categories child.ref~}} {{~for cat in cats~}} {{~for c in get_categories_details~}} {{~if c.key==cat~}}
{{c.key}}
{{~end~}} {{~end~}} {{~end~}}
General
{{linked_device=(device_prop child.ref 'LinkedDevice')}}
Cloud/Voice Settings
User Access
{{for u in users_list}}
{{end}}
{{action='delete_child'}} {{if queries['fromtab']!=null}} {{action='delete_child&fromtab=featureslist'}} {{end}}
{{end}}