{
// Options
final FieldsetPanel fs = gridBuilder.newFieldset(getString("label.options")).suppressLabelForWarning();
final DivPanel checkBoxButton = fs.addNewCheckBoxButtonDiv();
if (ConfigXml.getInstance().isSendMailConfigured() == true) {
checkBoxButton.add(new CheckBoxButton(checkBoxButton.newChildId(), new PropertyModel<Boolean>(this, "sendNotification"),
getString("label.sendEMailNotification")).setTooltip(getString("plugins.todo.notification.tooltip")));
}
// if (ConfigXml.getInstance().isSmsConfigured() == true) {
// checkBoxPanel.add(new CheckBoxPanel(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(this, "sendShortMessage"),
// getString("label.sendShortMessage")));
// }
checkBoxButton.add(new CheckBoxButton(checkBoxButton.newChildId(), new PropertyModel<Boolean>(this, "saveAsTemplate"),
getString("userPref.saveAsTemplate")));
}
if (isNew() == false
&& getData().getStatus() != ToDoStatus.CLOSED
&& getData().isDeleted() == false