- @if (!string.IsNullOrWhiteSpace(createTemplateSuccess))
- {
-
- @createTemplateSuccess
-
- }
+ @if (!string.IsNullOrWhiteSpace(pageSuccess))
+ {
+
+ @pageSuccess
+
+ }
- @if (!string.IsNullOrWhiteSpace(createTemplateError))
- {
-
- @createTemplateError
-
- }
+ @if (!string.IsNullOrWhiteSpace(pageError))
+ {
+
+ @pageError
+
+ }
-
+
Kitchen Operations
Task Assignment
Manage task lists, assign library tasks fast, and track progress in one place.
@@ -84,280 +84,36 @@ else
-
-
-
-
-
Task Lists
-
Reusable groups like Dish Closing or Morning Prep
-
-
-
- @taskLists.Count
-
-
-
-
-
-
-
-
-
-
- @if (!FilteredTaskLists.Any())
- {
-
No task lists found.
- }
- else
- {
- @foreach (var list in FilteredTaskLists)
- {
-
-
-
-
@list.Name
-
- @if (!string.IsNullOrWhiteSpace(list.Description))
- {
-
@list.Description
- }
-
-
- @(list.Items?.Count ?? 0) task@((list.Items?.Count ?? 0) == 1 ? "" : "s")
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
-
-
-
+
-
-
-
-
-
Task Library
-
Select one or more reusable tasks
-
-
-
- @taskTemplates.Count
-
-
-
-
-
-
-
-
-
- @if (selectedTemplateIds.Any())
- {
-
- @selectedTemplateIds.Count task@(selectedTemplateIds.Count == 1 ? "" : "s") selected
-
- }
-
-
- @if (!FilteredTaskTemplates.Any())
- {
-
No task templates found.
- }
- else
- {
- @foreach (var template in FilteredTaskTemplates)
- {
- var isSelected = selectedTemplateIds.Contains(template.Id);
-
-
-
-
-
ToggleTemplateSelection(template.Id)" />
-
-
-
@template.Name
-
@template.Station
-
- @if (!string.IsNullOrWhiteSpace(template.Notes))
- {
-
@template.Notes
- }
-
-
- @template.Priority
-
- @if (template.DefaultEstimatedMinutes.HasValue)
- {
-
- @template.DefaultEstimatedMinutes min
-
- }
-
-
-
-
-
-
-
-
-
-
- }
- }
-
-
-
+
-
-
- Create Task Manually
- Team: @teamMembers.Count
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @foreach (var station in stationOptions)
- {
-
- }
-
-
-
-
-
-
- @foreach (var p in priorityOptions)
- {
-
- }
-
-
-
-
- @if (newTask.TaskType == WorkTaskKind.PrepFromRecipe)
- {
-
-
-
-
- @foreach (var r in recipes)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
-
-
-
-
-
-
- @foreach (var user in teamMembers)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -368,169 +124,30 @@ else
@if (SelectedTemplates.Any())
{
-
-
-
-
-
Quick Assign
-
- @SelectedTemplates.Count task@(SelectedTemplates.Count == 1 ? "" : "s") selected
-
-
-
-
-
-
-
-
- @foreach (var template in SelectedTemplates)
- {
-
- @template.Name
-
- }
-
-
-
-
-
-
-
-
- @foreach (var user in teamMembers)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
-
-
- @foreach (var p in priorityOptions)
- {
-
- }
-
-
-
-
-
-
-
-
-
-
+
}
-
-
-
-
-
Kitchen Task Board
-
Track pending, active, and completed work
-
-
-
-
-
-
-
-
- @foreach (var status in statusBuckets)
- {
-
-
-
-
-
@status
-
- @TasksByStatus(status).Count()
-
-
-
-
- @if (!TasksByStatus(status).Any())
- {
-
- No tasks in this column.
-
- }
- else
- {
- @foreach (var task in TasksByStatus(status))
- {
-
-
- @task.Priority
-
-
-
@task.Name
-
@task.Station
-
@FormatAssignee(task.UserId)
-
Due @task.DueDate.ToString("MMM d")
-
- @if (!string.IsNullOrWhiteSpace(task.Notes))
- {
-
@task.Notes
- }
-
-
- @if (task.Status == "Pending")
- {
-
- }
-
- @if (task.Status != "Completed")
- {
-
- }
-
-
-
-
-
-
- }
- }
-
-
-
-
- }
-
+
@@ -541,12 +158,14 @@ else
IsOpen="@showCreateTemplateModal"
LocationId="@(selectedLocationId ?? 0)"
CreatedByUserId="@_ctx?.User?.Id"
+ Recipes="recipes"
OnClose="CloseCreateTemplateModal"
OnSave="SaveTemplate" />