Closed youhengzhou closed 1 year ago
I added a few changes to reflect the difference between:
Add book to store and edit book listing
Search for books and edit their listing information
I added a few changes to reflect the difference between:
1. adding a book to the store 2. adding a new book listing to the store 3. and searching for books and edit their listing information
So far this is looking pretty good but just a few thoughts: Instead of having a version number field in the create book entry, can you have a drop down? The drop down should contain the entries "New" or "Use Existing". The idea is that if the Vendor is creating a book and a matching book already exists in the database and use existing is selected, then no new book is added. It would also be nice to ensure that all version numbers are auto generated for consistency.
Also I think it would be nice to have 2 more forms to remove books or book listings.
The picture input for a Book can be possibly changed to file upload input to upload an image file. What do you think about that Idea?
It might be outside the scope of sample-leaf.
In order to get that done the form needs to know the module attribute object which will be used to post contents. If I can figure that stuff out before our next meeting than yes you proposed modifications should go into this branch (I'm trying to merge another branch with this as the target. If I don't get that done before our next meeting then this will be merged into main as is so everyone else can start working and I'll change my branch target to main)
I made sample leaves htmls that will form the basis of work for the next week.
Each HTML represents a workflow that a user of the system will go through.
Login page
For both customer and vendor
Shop page
For the customer to shop and browse books, and can filter the books displayed to the customer via a filter drop-down menu, that impacts the search books
Vendor page
For the vendor to add books to the bookstore, typing in information about the book
Shopping Cart
And lastly the shopping cart, which should feature a table that queries the information of the books that the customer wants to purchase
Purchased
An extra HTML view is the purchased screen
Lists a calculation of how much theoretical money the customer would have to pay, and a button that redirects the customer back to the main landing page