@(_editing is null ? "New schedule" : "Edit schedule")
@if (!string.IsNullOrEmpty(_formError)) {
@_formError
}
@if (_form.Type == ReportType.VersionCleanup)
{
Destructive action. Version Cleanup permanently deletes old file
versions across the selected sites every time it runs — unattended, with no confirmation.
The report is only a summary of what was deleted. Output is HTML (no CSV).
}
else if (_form.Recurrence.Frequency == ReportFrequency.Monthly)
{
}
@* ── Type-specific options ── *@
@switch (_form.Type)
{
case ReportType.Permissions:
break;
case ReportType.Storage:
break;
case ReportType.Duplicates:
break;
case ReportType.Search:
break;
case ReportType.UserAccess:
break;
case ReportType.VersionCleanup:
break;
}
@* ── Email delivery ── *@
@if (_form.Email.Enabled)
{
Sent through the client's app-only certificate (requires the Mail.Send application
permission — re-run onboarding if the app was registered before this was added). The report file is attached.