AS A admin I WANT TO see and manage a list of components SO THAT I can quickly find the right components, view all available components and add a new one.
AC:
Admin can find "Components" section in the sidebar
"Components" section should contain a list with all components what can be used in recipes. It should provide information for every component about its name, units and class name
"Components" section should also contain a button which should open a modal window, where you can see the list with all possible categories of components, for example cup, coffee, milk and etc. For every category, there are next fileds: name, is it always requierd for the recipe ("Is Required"), is it not more than 1 ("Is Single")
There should be one search panel for components table on the page and one search panel for category table on the modal window
The table with components should be able to search by fields: name, class name
The table with categories should be able to search by name field
The following information about the new component is requested in the form: name, measure, class name (drop-down list). Form which is responsible for adding new category should ask name, is it required (check-box) and is it single (check-box)
After clicking on ‘ADD’ button an addition confirmation will be asked. If this confirmation window will be closed component/category won't be added to the app
After confirming the addition, the information about the new component/category is sent to the database and the components/component classes table is updated
If confirmation was not received, we return to the "Components" page (if we tried to add new component) or to the modal window with caterogies (if we tried to add new category) without adding a new component/category to the database
UX:
Related Story:
68
TASKS:
[x] Create a mockup for Components page #75
[x] Create a Components page Layout #77
[x] Implement functionality to Components page #82
AS A admin I WANT TO see and manage a list of components SO THAT I can quickly find the right components, view all available components and add a new one.
AC:
UX:
Related Story:
68
TASKS:
[x] Create a mockup for Components page #75
[x] Create a Components page Layout #77
[x] Implement functionality to Components page #82