littleshop/LittleShop/Areas/Admin/Views
SysAdmin 125513dbc6 Fix: Categories Edit form model binding with explicit attributes
**Issue**: Edit category form not displaying existing values and not updating
- Form fields were empty when loading edit page
- Submitting changes had no effect on the category

**Root Cause**:
- Edit view used asp-for helpers which don't bind properly in production
- Create view used explicit name/id attributes which work reliably
- Model values weren't being rendered in the form fields

**Solution**:
- Changed from asp-for helpers to explicit name/id attributes
- Added value="@Model.Name" to populate name input
- Added @Model.Description between textarea tags
- Changed checkbox to @(Model.IsActive ? "checked" : "")
- Matches the working pattern from Create.cshtml

**Files Changed**:
- LittleShop/Areas/Admin/Views/Categories/Edit.cshtml
  - Line 29: Input with value="@Model.Name"
  - Line 35: Textarea with @Model.Description content
  - Line 41: Checkbox with @(Model.IsActive ? "checked" : "")

**Testing**:
- Deployed to production (container: f86abfb2334b, healthy)
- Form now displays existing category values
- Updates save correctly to database

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 13:24:29 +01:00
..
Account Add Pending Payment tab and rebrand to TeleShop Admin 2025-09-24 15:55:15 +01:00
Activity Implement product multi-buys and variants system 2025-09-21 00:30:12 +01:00
BotActivity Add product variants system and live bot activity dashboard 2025-09-24 23:00:20 +01:00
Bots Configure BTCPay with external nodes via Tor 2025-09-19 12:14:39 +01:00
Categories Fix: Categories Edit form model binding with explicit attributes 2025-10-03 13:24:29 +01:00
Dashboard Add Pending Payment tab and rebrand to TeleShop Admin 2025-09-24 15:55:15 +01:00
Messages final 2025-08-27 22:19:39 +01:00
Orders Fix order status update form - add CSRF token and correct enum values 2025-09-24 16:32:26 +01:00
Products Refactor: Streamline product management UI and enhance PWA behavior 2025-10-02 14:35:52 +01:00
Reviews Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
Shared Refactor: Remove Variants menu item from navigation 2025-10-03 12:23:11 +01:00
ShippingRates Fix missing CSRF tokens in all delete forms 2025-09-24 18:02:17 +01:00
SystemSettings Deploy LittleShop to Hostinger with Docker and BunkerWeb 2025-09-24 13:00:17 +01:00
Users Fix missing CSRF tokens in all delete forms 2025-09-24 18:02:17 +01:00
VariantCollections Add variant collections system and enhance ProductVariant with weight/stock tracking 2025-09-28 17:03:09 +01:00
_ViewStart.cshtml Implement complete e-commerce functionality with shipping and order management 2025-08-20 17:37:24 +01:00