## main pane (start) ## ## Tag Title ## $utils.raw($tagNameForm.startTag()) #formErrors($tagNameForm) #if ($renameMode) $utils.raw($tagNameForm.fields.tagName)$utils.raw($tagNameForm.fields.commitRename) #else #tagIcon($tag.name) $tag.name #end #if ($tag.canRename($user)) ## Rename #end #if (!$fragment && $tag.canChange($user)) ## Edit #end #if ($tag.canDelete($user)) ## Delete #end $utils.raw($tagNameForm.endTag()) ## ## Super Tags / Sub Tags ##
#if (!$user.isViewer() || $superTags.rootNode.hasChildren()) #end | #if (!$user.isViewer() || $subtags.totalSize > 0) #end
## Super Tags #superTagForm($superTagForm $superTags $tag.canChangeClassification($user)) | ## Sub Tags $utils.raw($subTagForm.startTag()) #if ($tag.authorizes($user)) #formErrorsRow($subTagForm)
$utils.raw($subTagForm.fields.tag) | $utils.raw($subTagForm.fields.addTag)
#end #if ($subtags.totalSize > 0)
#if (!$subtags.isFirstPage()) #pagingNavigator($subtags "sbtpi") #end #foreach ($subtag in $subtags) #tagIcon($subtag.name) $subtag.name #if ($subtag.canRemoveTag($tag, $user)) #end #end #pagingNavigator($subtags "sbtpi")
#end $utils.raw($subTagForm.endTag())
## ## Tag-Fragment ## #if ($fragment) ## enable smart layout if the tag-fragment exists #initSmartLayoutJs() #if ($edit) #end #fragmentFullFledged($fragment) #end ## main pane (end) ## ## Fragments ## #if ($tag.isTrashTag() && $user.isOwner()) $utils.raw($deleteTrashesForm.startTag()) $utils.raw($deleteTrashesForm.endTag()) #else #if (!$user.isViewer() && $tag.authorizes($user)) #set ($jsAddFragment = "piggydb.widget.FragmentForm.openToCreateWithTag(${tag.getId()}); return false;") #set ($jsAddFile = "piggydb.widget.FileForm.openToCreateWithTag(${tag.getId()}); return false;") #end #end #fragmentsView( "fragmentsByTag" "$context/partial/fragments-by-tag.htm?id=$tag.id" "true" $jsAddFragment $jsAddFile) ## ## Sidebar ##