diff --git a/Services/Admin/Pages/Items/Edit.cshtml b/Services/Admin/Pages/Items/Edit.cshtml new file mode 100644 index 0000000..11a38bc --- /dev/null +++ b/Services/Admin/Pages/Items/Edit.cshtml @@ -0,0 +1,310 @@ +@page "/admin/items/edit" +@model Items.EditModel +@using Server.Data.Enums +@{ + ViewData["Title"] = Model.IsNew ? "Create Item" : $"Edit: {Model.Item.Name}"; +} + +
@(Model.IsNew ? "Add a new item definition" : $"ID: {Model.Item.Id}")
+Full item editor coming in next update...
+ +| ID | +Icon | +Name | +Type | +Rarity | +Stack | +Enabled | +Actions | +
|---|---|---|---|---|---|---|---|
| @item.Id | +
+ @if (!string.IsNullOrEmpty(item.SpritePath))
+ {
+
+
+
+ }
+ |
+
+ @item.Name
+ @if (!string.IsNullOrEmpty(item.Description))
+ {
+ @item.Description + } + |
+ @item.Type | ++ @item.Rarity + | ++ @if (item.Stackable) + { + @item.MaxStack + } + else + { + - + } + | ++ @if (item.IsEnabled) + { + + } + else + { + + } + | +
+
+
+
+
+
+
+ |
+
| + No items found. Create one? + | +|||||||
+ Showing @((Model.CurrentPage - 1) * Model.PageSize + 1)-@Math.Min(Model.CurrentPage * Model.PageSize, Model.TotalCount) of @Model.TotalCount +
+ +