#if parentId?has_content>
<@_content id=parentId>
<#assign parent=object/>
@_content>
#if>
<@_sysAuthorized roleIds=admin.roles urls='cmsCategory/add'><#assign authorizedMap=map/>@_sysAuthorized>
<#if categoryId?has_content>
<@_category id=categoryId>
<#if object.typeId?has_content && authorizedMap['cmsCategory/add']>
- <@t.page 'category.edit'/>
#if>
@_category>
<#assign size=0/>
<@_modelList parentId=(parent.modelId)!''>
<#list page.list as a>
<@_categoryModel modelId=a.id categoryId=categoryId>
<#assign size++/>
- <@t.page 'button.add_some_things' a.name/>
@_categoryModel>
#list>
@_modelList>
<#if size=0 && authorizedMap['cmsCategory/add']>
- <@t.page 'content.no_model'/>
#if>
#if>