
resourceNode.targetResourceTable.inc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of console-common Show documentation
Show all versions of console-common Show documentation
This bundle contains common code that may be shared across plugins.
The newest version!
$page{tableId});
/>
#include "/common/resourceNode/targetResourceTableButtons.inc"
$page{resourceRefAttrs});
if ("#{resourceRefAttrs.data.extraProperties.entity.enabled}=true") {
setAttribute(key="status" value="/resource/images/enabled.png");
}
if ("#{resourceRefAttrs.data.extraProperties.entity.enabled}=false") {
setAttribute(key="status" value="/resource/images/disabled.png");
}
mapGet(Map="#{requestScope.typeMap}" Key="#{requestScope.resType}" Value=>$attribute{type});
mapGet(Map="#{requestScope.editMap}" Key="#{requestScope.resType}" Value=>$attribute{link});
gf.createAttributeMap(keys={"Enabled", "selected", "Name", "link", "Type"}
values={"$attribute{status}",
"$boolean{false}",
"$attribute{resName}",
"$attribute{link}?name=$attribute{resName}",
"$attribute{type}"}
map="#{requestScope.oneRowMap}");
listAdd(list="$attribute{listOfRows}" value="#{requestScope.oneRowMap}");
}
}
}
}
/>
$page{tableRowGroupId});
/>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy