html.append("<fieldset class=\"").append(getProperty("block.action")).append("\">");
if(panelEditable)
{
Action deleteAction = panel.getAction(Action.Type.DELETE);
if(deleteAction != null)
{
if(panel.getEntity().getId() == null || !deleteAction.isSelectable())
renderButton(html, "doDelete", "button.delete", "button.delete.title.inactive", getProperty("block.action.leftButton"), null, true);
else
renderButton(html, "doDelete", "button.delete", "button.delete.title.active", getProperty("block.action.leftButton"), 'd', false);
}