367 Commits

Author SHA1 Message Date
Erik Thuning
a81f445bf9 Completed and refactored search. Also some minor graphical tweaks 2018-09-11 16:04:12 +02:00
Erik Thuning
15e5a35a6c Updated search help text 2018-09-11 16:02:36 +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
34ded12e0a Added a style for discarded products 2018-09-07 17:14:47 +02:00
Erik Thuning
d8ecd2f797 Changed insertion of new fields so they are inserted in alphabetical order 2018-09-07 17:14:14 +02:00
Erik Thuning
3607167ac7 Added help text for advanced search 2018-09-07 17:13:07 +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
162c89065a Activated the date picker 2018-09-06 16:56:34 +02:00
Erik Thuning
8eadacb9e2 Added autocomplete on new tags and new fields 2018-09-06 16:18:37 +02:00
Erik Thuning
1b5e99d537 Removed an extra ; 2018-09-06 16:16:21 +02:00
Erik Thuning
4a5f9ee0f1 Added images for datepicker 2018-09-06 16:14:40 +02:00
Erik Thuning
8aecbc6b7d Added a datepicker 2018-09-06 16:13:41 +02:00
Erik Thuning
ed8402efd5 Removed obsolete database model 2018-09-05 17:20:01 +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
0ce81fabcc Minor style tweak 2018-09-05 17:10:31 +02:00
Erik Thuning
d1da09b083 Client-side functionality 2018-09-05 17:08:56 +02:00
Erik Thuning
03d36ec1a0 Moved ajax handling into a normal Page subclass instead of special handling in index.php 2018-09-05 17:08:17 +02:00
Erik Thuning
520b42b617 Fixed a bug. 2018-09-05 17:07:55 +02:00
Erik Thuning
816103a4f0 Added a field in the product table to track discarded products 2018-09-05 16:59:17 +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
164cf24a96 Added an explicit width for text fields and areas 2018-08-22 16:50:32 +02:00
Erik Thuning
e439aeb8ac Minor tweaks 2018-08-22 16:50:13 +02:00
Erik Thuning
1015dd71cc Added fragments for inventory and made some minor style tweaks 2018-08-22 16:49:26 +02:00
Erik Thuning
feb260c73d Renamed an inventory table and added a primary key 2018-08-22 16:48:15 +02:00
Erik Thuning
6701c17c5c Added tables for inventory taking. 2018-08-22 11:24:51 +02:00
Erik Thuning
570c5ebe84 Added position:relative to #contents for use by error messages 2018-08-21 16:41:16 +02:00
Erik Thuning
c09005e9c7 Lots of new selectors 2018-08-21 16:40:53 +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
6d1ccaa119 A bunch of new fragments 2018-08-21 16:32:23 +02:00
Erik Thuning
c4fa57a3c1 Refactored the database to have an explicit return date for inactive loans 2018-08-21 16:31:15 +02:00
Erik Thuning
511b624879 Minor tweaks. 2018-08-15 18:27:04 +02:00
Erik Thuning
b00685300d Changed 'action' to 'page' in GET parameters in order to make semantics clearer. 2018-08-15 18:26:23 +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
5b35de9ef7 Added new fragments and changed 'action' to 'page' in GET parameters 2018-08-15 18:16:58 +02:00
Erik Thuning
106aeff307 Site-specific tweaks to the theme 2018-08-15 18:15:57 +02:00
Erik Thuning
6cb0c8d784 Added the ability for the search field to retain its contents.
Changed 'action' to 'page' in GET parameters
2018-08-15 18:14:49 +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
e4faabc42e Updated the html/css 2018-07-18 16:35:29 +02:00
Erik Thuning
9982ede3e3 Added menu background image 2018-07-18 16:34:51 +02:00
Erik Thuning
b554de47ac Adding classes for the different views 2018-07-11 16:46:28 +02:00
Erik Thuning
b31e9383ff TEsting things out 2018-07-11 16:46:10 +02:00
Erik Thuning
a33f8172f6 REmoved format_page function and refactored get_fragments 2018-07-11 16:45:43 +02:00