@model PowderCoating.Application.DTOs.Maintenance.MaintenanceRecordDto @{ ViewData["Title"] = "Delete Maintenance Record"; ViewData["PageIcon"] = "bi-wrench"; var seriesDeletableCount = ViewBag.SeriesDeletableCount as int?; }
@Model.MaintenanceType — @Model.EquipmentName
Status @Model.StatusDisplay
Priority @Model.PriorityDisplay
Scheduled Date @Model.ScheduledDate.ToString("MMMM dd, yyyy")
@if (Model.IsRecurring) {
Recurrence @Model.RecurrenceFrequency
} @if (!string.IsNullOrEmpty(Model.Description)) {
Description @Model.Description
}
@if (Model.IsRecurring && seriesDeletableCount.HasValue && seriesDeletableCount.Value > 0) {
This is Part of a Recurring Series

There are @seriesDeletableCount other future scheduled/overdue occurrence@(seriesDeletableCount == 1 ? "" : "s") in this series. Completed occurrences will not be affected.

@Html.AntiForgeryToken()
@Html.AntiForgeryToken()
} else {
Cancel
@Html.AntiForgeryToken()
}