@page "/admin/recipes/edit" @model Recipes.EditModel @using DataServer.Data.Entities @{ ViewData["Title"] = Model.IsNew ? "Create Recipe" : $"Edit: {Model.Recipe.Name}"; }
@(Model.IsNew ? "Add a new crafting recipe" : $"ID: {Model.Recipe.Id}")
| Slot | Icon | Item | Quantity | Actions |
|---|---|---|---|---|
| @ing.SlotOrder |
@if (ing.ItemDefinition != null && !string.IsNullOrEmpty(ing.ItemDefinition.SpritePath))
{
|
@ing.ItemDefinition?.Name (ID: @ing.ItemDefinitionId) | @ing.Quantity | |
| No ingredients yet. Add items to create the recipe. | ||||