buildNew(newFragment);
form.add(newFragment);
form.add(new Image("add", new ResourceReference(EditorTemplate.class, "add.png")));
WebMarkupContainer footer = new WebMarkupContainer("footer");
Button saveButton = saveButton("save");
saveButton.setDefaultModel(new ResourceModel("pam.details.action.save"));
footer.add(saveButton);
Button deleteBtn = deleteButton("delete");
deleteBtn.add(new JavascriptEventConfirmation("onclick", new ResourceModel("pam.details.action.delete.confirm")));
footer.add(deleteBtn);
footer.add(new AttributeModifier("colspan", true, new Model<Integer>(Integer.valueOf(getColumnCount()))));
form.add(footer);
add(form);
return this;