coryhouse / coryhouse/react-restaurant-scriptpro

Add admin route rendering food form for create + edit

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-6-admin-forms
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Add an `admin.{-$foodId}.tsx` route (optional id) that renders a food form for both create and edit, prefilled when editing.

## Acceptance criteria
- [ ] No id → empty form (create mode)
- [ ] With id → form prefilled with that food's data (edit mode)
- [ ] All Food fields editable
- [ ] Cancel button returns to the menu

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.