65 Commits

Author SHA1 Message Date
Erik Thuning
c8e3ff0212 Reworked loan display to accommodate loan notes
Loans are no longer displayed as a unified table, but instead each loan
gets a "card" that contains the relevant data for the loan.

This has had a fairly major html/css re-work as a side effect. Most views are
now structured with two div-based columns so as to avoid the large blank areas
that pure grid can lead to when elements are very different in height.
2025-03-18 13:39:48 +01:00
Erik Thuning
afb3020a34 Added support for notes on events.
As of yet the notes get saved but never displayed anywhere.
2025-03-14 15:26:07 +01:00
Erik Thuning
a7bfc49afc Rearranged the checkout page so the product selection is at the bottom of the form 2025-03-14 14:21:07 +01:00
Erik Thuning
63ccad38c8 Implemented tracking of who initiated an event. 2025-03-14 14:12:28 +01:00
Erik Thuning
e953f6c7a5 Made the loan length preset buttons configurable in config.php
Supported length keywords are day, week, month and year. The plural forms
are also valid. There may be minor differences in the semantics of
the time string between the preset list and the default length setting,
due to the default length being computed by php's Date object,
while the preset list is computed in javascript on the client side.
2025-03-13 14:36:37 +01:00
Erik Thuning
22608f1aa7 Added a page intended for users to view their own loans.
Also added serial numbers to loan listings for users.
2024-02-29 14:48:37 +01:00
Erik Thuning
c51bd1a60a Renamed history_table and related fragments to loan_table 2024-02-28 11:32:53 +01:00
Erik Thuning
212c34d779 Discarded products are now displayed in a read-only format.
Also added a fragment for a public view of a product
2024-02-26 17:22:26 +01:00
Erik Thuning
dd6c270fa3 Merge branch 'prod' into test 2024-02-26 16:36:21 +01:00
Erik Thuning
5602b81fd0 Added alternating coloration for most tables 2024-02-26 16:20:40 +01:00
Erik Thuning
9410c7bcec Fixed a mismatched tag on that broke the search page 2024-02-26 16:15:15 +01:00
Erik Thuning
a91923ad18 Renamed product_detail fragments to product_match
in order to disambiguate with actual detail views
2024-02-26 16:10:59 +01:00
Erik Thuning
07128568ca Renamed the fragment product_form to product_details
in preparation for readonly public views
2024-02-26 15:14:41 +01:00
Erik Thuning
f8e951c215 Added a missed css class to the user table fragment 2024-02-26 14:50:58 +01:00
Erik Thuning
746ad28545 Implemented internationalization.
Let's see how many strings have been missed.
2024-02-26 13:10:13 +01:00
root
d3e6ee7ab2 Fixed too many fields showing up when creating a new product 2023-03-08 10:05:44 +01:00
Erik Thuning
b10bf1eed8 Added ability to check out a product from the product page directly 2023-01-11 11:11:42 +01:00
Erik Thuning
1d0caf9513 Sorted the bugs when picking an interval via button 2022-07-26 10:56:59 +02:00
Erik Thuning
0af33c5dd6 Added buttons to quickly change the runtime of a loan 2022-07-26 10:23:09 +02:00
Erik Thuning
3fae0ce1ff Search overhaul possibly finished? 2022-03-03 11:37:35 +01:00
Erik Thuning
8502fbf0a1 Initial implementation of search result detail output 2022-03-01 16:33:00 +01:00
Erik Thuning
cb4a3b131a Implemented picking users based on email on the checkout page 2021-09-22 15:14:35 +02:00
Erik Thuning
ca7957d438 Minor formatting tweak 2020-06-18 11:46:35 +02:00
root
55a316d2da Fixed a bug where empty search results were showing up immediately on opening the search page.
Also added the attachments directory to the repo with an appropriate .gitignore file
2020-06-05 12:26:29 +02:00
Erik Thuning
9d346296bc Reverted the last two commits; back to eager product init.
Made product creation a separate page and added a menu item for it
2020-01-20 14:47:50 +01:00
Erik Thuning
a3656604c0 Implemented attachments for products 2019-11-19 15:06:22 +01:00
Erik Thuning
3cc2b91ed4 Changed the layout to use two columns
Preparing to implement attachments
2019-10-28 16:55:08 +01:00
Erik Thuning
e3d97e4966 Minor accessibility tweak 2019-10-25 13:24:20 +02:00
Erik Thuning
1c5bbdab95 Added a button to create a new loan on the user details page 2019-09-20 13:47:08 +02:00
Erik Thuning
282d19ee2c Fixed minor display bugs 2019-08-16 09:38:08 +02:00
Erik Thuning
80a2b900d8 Set a fixed size on the status field in product tables 2019-08-15 13:09:28 +02:00
Erik Thuning
45eb32c70b Implemented suggestions for product field contents
based on existing contents of the same field on other products.
Also changed datalist IDs to be more descriptive
2019-08-15 11:34:59 +02:00
Erik Thuning
ef756e36b4 Several changes:
- The inventory page now shows status of seen products as of when they were registered,
   not as of now.
 - Renamed a placeholder in fragments.html to be more intuitive.
 - Added a type field to the event table in the database, so that complete events can
   be constructed without complex logic.
 - Refactored to support the above changes
2019-07-24 14:09:31 +02:00
Erik Thuning
caca5dddbd Restructured the history table fragments 2019-07-23 15:24:02 +02:00
Erik Thuning
a412256598 Merge branch 'add_manufacturer' 2019-07-16 15:00:53 +02:00
Erik Thuning
720551af8d Changed products to always have a manufacturer field 2019-07-16 14:47:44 +02:00
Erik Thuning
0923435462 Added a function to temporariliy suspend availability of products
for service. Also did some refactoring in related areas.
2019-06-12 20:39:55 +02:00
Erik Thuning
402980a304 Added serial in product tables 2019-06-12 11:42:16 +02:00
Erik Thuning
8485264714 Searches now automatically match parts of field values, and the search field has autofocus 2019-06-12 11:09:03 +02:00
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
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
f6b8258a14 Removed special handling of search 2019-05-10 09:52:19 +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
f0bec4bedd Minor bug fix 2019-04-09 19:18:20 +02:00
Erik Thuning
5a73a9d5db Finalized template handling and made some minor style changes 2019-04-09 18:15:21 +02:00
Erik Thuning
38b5f9463a Added buttons for adding and choosing templates 2019-04-05 14:54:36 +02:00
Erik Thuning
1d2695763c Added required attribute to a field 2019-02-27 17:13:16 +01:00
Erik Thuning
2741cc4338 Changed 'användare' to 'låntagare' 2018-09-13 11:21:55 +02:00
Erik Thuning
15e5a35a6c Updated search help text 2018-09-11 16:02:36 +02:00