293 Commits

Author SHA1 Message Date
Erik Thuning
fe4e92b6e9 Added some help text for the search page and tweaked search functionality a bit 2019-06-11 15:47:40 +02:00
Erik Thuning
e089291612 Fixed the missing tags bug for templates 2019-06-11 15:07:25 +02:00
Erik Thuning
4acd884261 Added support for creating labels for print using QR codes.
Also fixed a bug when adding a product without tags
and a minor usability fix on the checkout page
2019-06-11 14:59:49 +02:00
Erik Thuning
eb1987d83a Completed implementation of search v2. It is not posible to find discarded products via search at this time. 2019-06-04 17:29:55 +02:00
Erik Thuning
1349cd608c Added handling of invalid inventory IDs and added error messages for all invalid IDs 2019-04-15 10:27:58 +02:00
Erik Thuning
2aee184390 Several changes:
* Added a user notes field to the checkout page
 * Added user suggestions to the checkout page
 * Refactored suggestion generation
 * Proper pluralization on reminder emails
 * Improved the feedback message when returning a product
2019-04-11 17:03:59 +02:00
Erik Thuning
f26e281b9c Inproved handling of missing user IDs 2019-04-11 11:02:52 +02:00
Erik Thuning
3074136cf7 Improved handling of unknown product IDs 2019-04-11 10:29:20 +02:00
Erik Thuning
3c2f5fa6f8 Several changes:
* Added saving and deletion of templates via ajax
 * Removed the unused function 'temp'
 * Added rendering of the template handler on the new product page
2019-04-09 18:20:33 +02:00
Erik Thuning
b0785435f8 Added a function to remove templates and fixed some capitalization issues 2019-04-09 18:12:57 +02:00
Erik Thuning
2d729f8cc6 Added template handling when rendering the new product page 2019-04-05 15:33:35 +02:00
Erik Thuning
ebf6c477b6 Added a Template class and introduced linebreaks into very long SQL lines 2019-04-05 15:22:23 +02:00
Erik Thuning
8aa562de83 Added support for automatically emailing users with overdue loans once per day via cron.
Also fixed a bug where an empty tag was added to products without any tags
Fixed a bug where an empty tag was begin added
2019-02-28 15:04:20 +01:00
Erik Thuning
ce40d5ddfd Fixed a bug where input validation wasn't being done when adding new products 2019-02-27 17:15:38 +01:00
Erik Thuning
02c4af72f9 Added a sanity check on tags 2018-09-11 17:03:41 +02:00
Erik Thuning
0df7a8d06c Fixed a search bug 2018-09-11 17:03:17 +02:00
Erik Thuning
a81f445bf9 Completed and refactored search. Also some minor graphical tweaks 2018-09-11 16:04:12 +02:00
Erik Thuning
71b853c973 Implemented advanced search and removed discarded products from the default listing, moving them into the history page 2018-09-07 17:17:50 +02:00
Erik Thuning
eb3121f0f6 Refactored the inventory screen code 2018-09-07 11:46:09 +02:00
Erik Thuning
8c2de26af1 Implemented discarding of products 2018-09-06 17:28:47 +02:00
Erik Thuning
8eadacb9e2 Added autocomplete on new tags and new fields 2018-09-06 16:18:37 +02:00
Erik Thuning
c049133d83 Almost full functionality implemented.
Missing:
 * discarding products
 * list discarded products
 * autocompletion of tag and field names
 * datepicker
 * expand search grammar
2018-09-05 17:14:18 +02:00
Erik Thuning
520b42b617 Fixed a bug. 2018-09-05 17:07:55 +02:00
Erik Thuning
e84fc82d78 Added an inventory page and some minor tweaks 2018-08-22 16:52:49 +02:00
Erik Thuning
645ed068af Added an inventory class and some minor other things 2018-08-22 16:51:28 +02:00
Erik Thuning
16fefe0002 Too many changes. Added new pages and lots of tweaks 2018-08-21 16:39:38 +02:00
Erik Thuning
5d619f8045 Minor wording change to a thrown exception 2018-08-21 16:39:13 +02:00
Erik Thuning
cdd087e098 Fragments arenow trimmed 2018-08-21 16:37:42 +02:00
Erik Thuning
8487c11e66 Several changes:
* updated search to work in the middle of strings and not just the beginning
 * changed all references to the 'active' column to reflect database change
 * added a function to get the loan history for a product
 * fixed a bug in the user class so that objects can be created both from ID and username
 * stop returning IDs instead of objects
 * order returned loans by most recent
 * removed default argument to create_user()
2018-08-21 16:32:57 +02:00
Erik Thuning
3e1213976b Moved some free functions into the Page class.
Updated all uses of 'action' to 'page' in GET parameters and related logic.
Added a ProductPage subclass.
Minor tweaks.
2018-08-15 18:22:35 +02:00
Erik Thuning
8f570392ff Removed function search_name, since it is no longer in usee. 2018-08-15 18:19:52 +02:00
Erik Thuning
97d729df0e Refactored search_users to primarily rely on the local user table.
Added function get_items for easy access to all items of a type.
2018-08-15 18:18:24 +02:00
Erik Thuning
af00f2dae5 Slowly getting things in place 2018-07-19 05:48:24 +02:00
Erik Thuning
8b134e3183 Starting to get the view bits in order 2018-07-18 16:36:58 +02:00
Erik Thuning
b554de47ac Adding classes for the different views 2018-07-11 16:46:28 +02:00
Erik Thuning
a33f8172f6 REmoved format_page function and refactored get_fragments 2018-07-11 16:45:43 +02:00
Erik Thuning
cf328d63dc Renamed a file 2018-07-11 15:33:00 +02:00
Erik Thuning
c869301498 LDAP functions wrapper class 2018-07-11 15:21:56 +02:00
Erik Thuning
1aa8b192c4 Remove unnecessary exit(1) statement. 2018-07-11 15:20:29 +02:00
Erik Thuning
60f04041c2 Changes:
- Changed the location field of products to a serial field in accordance with the db model
 - removed unnecessary if clauses
 - significantly expanded available functions
2018-07-11 15:17:00 +02:00
Erik Thuning
7b37e61a59 First version of db object wrappers done 2018-07-10 14:43:42 +02:00
Erik Thuning
4f53784604 Minor tweak 2018-07-10 14:42:19 +02:00
Erik Thuning
f0b664d559 Doing stuff 2018-07-04 16:50:40 +02:00