Difference between revisions of "Burgers"
CrazyGolem (Talk | contribs) (→Updating the site) |
|||
(13 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Closed_Projects]] |
+ | [[Category:Services]] | ||
= Description = | = Description = | ||
* https://burgers.fixme.ch/ | * https://burgers.fixme.ch/ | ||
− | * This | + | * This was part of the [[Internal_Server]], using [[Apache]] and [[MySQL]] |
* Order burgers from HolyCow in a nice way | * Order burgers from HolyCow in a nice way | ||
* Replaces the pad https://pad.fixme.ch/burgers | * Replaces the pad https://pad.fixme.ch/burgers | ||
+ | * Repo: <code>git clone ssh://gogs@git.fixme.ch:1337/fixme/burger.git</code> | ||
+ | * New holycow menu: [http://holycow.ch.ismmedia.com/ISM3/std-content/repos/Top/Menu/Holy%20Cow%20Menu.pdf Menu] | ||
+ | * Old holycow menu: [[Media:Holy cow menu web.pdf]] | ||
= Utilisation = | = Utilisation = | ||
Line 25: | Line 29: | ||
= Updating the site = | = Updating the site = | ||
− | # | + | # git clone ssh://gitolite@git.fixme.ch:1337/burgers |
− | # | + | # Make your modifications |
− | # Log into foo | + | # Push to the repo |
− | + | # Log into foo and execute these scripts: | |
− | + | sudo /home/burgers/git-update.sh | |
+ | sudo /home/burgers/set-permissions.sh | ||
= To do = | = To do = | ||
Line 40: | Line 45: | ||
= Participants = | = Participants = | ||
+ | * [[User:Rorist]], made some bugfixes |
Latest revision as of 14:56, 14 November 2019
Contents
Description
- https://burgers.fixme.ch/
- This was part of the Internal_Server, using Apache and MySQL
- Order burgers from HolyCow in a nice way
- Replaces the pad https://pad.fixme.ch/burgers
- Repo:
git clone ssh://gogs@git.fixme.ch:1337/fixme/burger.git
- New holycow menu: Menu
- Old holycow menu: Media:Holy cow menu web.pdf
Utilisation
When creating a batch, we set a deadline, which allows to order burgers until it is reached. It is possible to modify the deadline if a batch is not locked.
When the deadline is reached, it is not possible to place orders, and the option to lock a batch becomes available. When a batch is locked, the deadline cannot be modified anymore, and the option to print the batch becomes available, as well as the possibility to mark orders as paid. Printing batches by clicking on the "Print" button allows to get a nicely formatted print, which looks different from on the screen (using CSS @media). Currently, only Opera seems to get it properly on Linux, tested with Firefox 12 and Chromium.
When all orders are marked as Paid (by clicking on the corresponding red button), the option to close a batch becomes available. When closed, a batch does not appear on the dashboard anymore.
Summary
- New Batch -> Place orders, edit deadline
- Deadline met -> Edit deadline, lock batch
- Batch locked -> Print batch, mark orders as paid
- All orders paid -> Close batch
Website Information
- Uses the CakePHP Framework (PHP + MySQL)
- Root Web directory: foo:/home/burgers/www
- Useful scripts and information in foo:/home/burgers
Updating the site
- git clone ssh://gitolite@git.fixme.ch:1337/burgers
- Make your modifications
- Push to the repo
- Log into foo and execute these scripts:
sudo /home/burgers/git-update.sh sudo /home/burgers/set-permissions.sh
To do
- Complete the database with prices and drinks
- Refine the batch-print page to improve efficiency
- Fix print output in browsers other than Opera (which does pretty well so far)
Project Leader
Participants
- User:Rorist, made some bugfixes