1f9da456a5
Bug Fixed: avoiding item waiting_user across take/return
...
It happend once: a user asked to be added to the waiting
list at the same time other user was returning the item.
So the user ended up waiting for the user he was already
using.
2018-10-21 11:57:23 -03:00
840f0a777a
Trying to fix an 500 error on production
2018-10-16 20:18:10 -03:00
1c1c42df7b
Refactoring
...
Including some use for classes;
REfactoring the HomeController, to make it cleaner
and avoid repeating code.
2018-10-10 00:46:28 -03:00
1e1c178214
Refactoring: TakeController returned item Mail moved to a listener
...
The TakeController was manually sending the email message
as well as dealing with item return, so I moved the email message
to it's own listener, I created an event for it and moved the
return part to the item model.
2018-09-30 21:37:44 -03:00
63ef369e16
Added PTB Translation of emails and some pages
...
Now the main page, item page and e-mails are translated
into Brazilian Portuguese
2018-09-27 20:13:14 -03:00
4ef87f411d
Including authenticaed user on models: Items, Product and User
2018-09-19 15:00:49 -03:00
15f20a6164
Fixed: 2 people were able to Take the same item at the same time
...
Now there is a verification before take an item.
2018-09-17 11:45:05 -03:00
a173e3923a
Including Alert me!
2018-09-15 02:09:07 -03:00
c4bd6a8a1a
Joining Take and Return controllers on just Take (store and delete)
2018-09-15 00:22:57 -03:00
ea3ffaad39
Including occupied username and renaming DB field
...
Now it shows the username of who is using an item.
Item db field 'usedBy' was renamed to 'used_by' to keep consistence.
2018-09-14 12:52:07 -03:00
9debf5548c
Adding Take and Return controllers
2018-09-12 21:27:35 -03:00