diff --git a/CutList.Web/Components/Pages/Projects/Edit.razor b/CutList.Web/Components/Pages/Projects/Edit.razor index bad23f1..aace452 100644 --- a/CutList.Web/Components/Pages/Projects/Edit.razor +++ b/CutList.Web/Components/Pages/Projects/Edit.razor @@ -2,7 +2,6 @@ @page "/projects/{Id:int}" @inject ProjectService ProjectService @inject MaterialService MaterialService -@inject SupplierService SupplierService @inject NavigationManager Navigation @using CutList.Core.Formatting @@ -20,269 +19,81 @@ {
Loading...
} +else if (IsNew) +{ + +No parts added yet.
- } - else - { -| Name | -Length | -Qty | -- |
|---|---|---|---|
| @part.Name | -@ArchUnits.FormatFromInches((double)part.LengthInches) | -@part.Quantity | -- - - | -
No stock bins added yet.
- } - else - { -| Length | -Qty | -Priority | -- |
|---|---|---|---|
| @ArchUnits.FormatFromInches((double)bin.LengthInches) | -@(bin.Quantity == -1 ? "Unlimited" : bin.Quantity.ToString()) | -@bin.Priority | -- - - | -
No parts added yet.
+Add the parts you need to cut, selecting the material for each.
+| Material | +Length | +Qty | +Name | +Actions | +
|---|---|---|---|---|
| @part.Material.DisplayName | +@ArchUnits.FormatFromInches((double)part.LengthInches) | +@part.Quantity | +@(string.IsNullOrWhiteSpace(part.Name) ? "-" : part.Name) | ++ + + | +