@model WritingScheduleSetupViewModel @{ ViewData["DesktopLayout"] = "wide"; ViewData["Title"] = "Create Writing Schedule"; }

Writing schedule

Create Writing Schedule

Plan for the selected book, or choose All Books for a project-wide plan.

Skip scheduling · return to Writer
@if (Model.WorkingGroups.Count > 0 || Model.WorkingGroupID.HasValue) {
}
@if (Model.ObservedDraftingWordsPerHour is > 0) {

Observed pace from matched drafting sessions · @Model.ObservedDraftingWordsPerHour words per hour.

}
@for (var i = 0; i < Model.WritingDayAvailability.Count; i++) { }
Day Available Session Length
@Model.WritingDayAvailability[i].Day
@if (Model.Candidates.Count > 0) {

Choose work and review effort

@if (Model.WorkingGroupID.HasValue) {

This schedule reserves time for the group. Choose any chapter in the group when you sit down to write.

}

Adjust each budget in minutes. Drafting estimates use the estimated words remaining and your drafting rate. Use your own budget for research, revision, editing, or work without a word estimate.

@for (var i = 0; i < Model.Candidates.Count; i++) { var row = Model.Candidates[i]; }
IncludeChapter / sceneActivityMinutes
@row.BookTitle · @row.Title
} else if (Context.Request.Method == "POST" && ViewData.ModelState.IsValid) {

No eligible work was found. Choose a different book, add a chapter, or include blocked scenes.

} @if (Model.Capacity is { } capacity) {

Schedule preview

Available
@capacity.Available min
Reserved for contingency
@capacity.Reserved min
Usable
@capacity.Usable min
Required
@capacity.Required min
Shortfall
@capacity.Shortfall min
Forecast
@(capacity.Forecast?.ToString("d MMM yyyy") ?? "Unavailable")
@if (Model.OverlapDates.Count > 0) {

Other active plans also use @Model.OverlapDates.Count of these dates. Check your combined time before saving.

} @if (capacity.Shortfall > 0) {

The selected work exceeds usable time. Change the work, availability, contingency, or target date and preview again.

} else if (capacity.Allocations.Count == 0) {

Select at least one activity to preview a schedule.

} else {
    @foreach (var day in capacity.Allocations.GroupBy(item => item.ScheduledDate)) {
  • @day.Key.ToString("d MMM yyyy") · @day.Sum(item => item.Minutes) min · @string.Join(", ", day.Select(item => item.Title).Distinct())
  • }
}
}
@if (Model.Capacity?.Allocations.Count > 0) { } @if (Model.Candidates.Count > 0) { } Cancel
@section Scripts { }