* added new CSS rule for the about-to-close tag
* fixed wrong regex for restaurant pages with the '$comunity/' URL (notice the slash at the end)
* added the restaurant tag in the App.page.community() JS form
* moved the admin.js loadRestaurant() method to a named function
* added the restaurant.js isAboutToClose() method
- when menu items are deleted, sometimes this breaks a users,
+ the problem was with options not with the dishes, added the continue code to load the cart
* porting the open/close validation for a restaurant for the 12:00/00:00 format for the next day
* grouping the open/close restaurants to sort them together
The orders were set as delivery only if the word "delivery" was used. I changed the logic to be delivery as default and only as takeout if the word "takeout" was used. If neither of them was used, the order will be flagged as for delivery, but also logged in the system, in the Log table to debug further what is wrong with it.
* the admin controller loads the testing community as the default for new restaurants
* the Community model encapsulates the testing community fetching
* the view accepts not setting a default community
This commit has:
- Sign in button (just for desktop)
- Sign in modal working
- Prototype of the sign in feature.
- Prototype of the 'password help; feature.
* centralize the way the restaurant's fax is fetched
* adding Notification types as class constants to reduce possible bugs
* centralize the way to get the restanurant's email address
* improve code readability in the CSV exporter
* adding restaurant fax and email to the CSV
(Order.php:726)
Added a function that returns the last tip the user gave.
(User.php:52)
Added a call to the function Order::lastTip(). So the last tip will be exported at the user's api.
(app.js:876)
Added the line to get the last tip the user gave.
- action in the api/restaurant controller to set the dishes categories
- method in the Restaurant model to store the categories associated to the restaurant
- improved the way the add category looks in the admin/restaurant view and CSS file
- refactorize the methods in the admin JS app, so the methods were outside every object to be able to use the IDE outliner to show the methods outside the onload function, helps sorting the work folding the methods
- added the _saveCategories() method in the JS admin app to send the categories to the api/restaurant controller
- added the _saveCategories() to the saveRestaurant method
- made the getValues() method a global function to reuse it
- added a App.createCategory() to add a new category in the DOM to be stored later
- the admin app, onLoad method does not define any functions inside it anymore