Hooked in the add medicine screen as a django form and created the backing model.
Added the ability to pass a token (UUID) in the URL to log a user in.
An NFC card can be encoded with a URL that can log the user in when scanned.
This is a hack and is a security hole, suitable for demo only.
When logging in with NFC a pin is now required.
Add medicine intelligent input is now more intelligent!
- Once a phrase-type is used it is removed from the list of suggestions.
- When viewing on a mobile device if you focus on the intelligent input the screen scrolls so that this is at the top to allow more room for suggestions.
- A loading animation is displayed when the list of suggestions is being populated.
- The "Medicine" field now gets backed to the appropriate ID.
Use local jquery for django-debug-toolbar as its included anyway and this speeds things up.