Erik Thuning
88862b25bc
Removed dead code
2025-03-18 14:40:08 +01:00
Erik Thuning
d12ec64190
Something is weird with apple and font sizing. trying again
2025-03-18 14:34:31 +01:00
Erik Thuning
45c9f19da3
FIX: layout bug on hidpi screens
...
using px for measurements is as bad an idea as ever, one place down.
2025-03-18 14:27:13 +01:00
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
ee082de50a
Added simple database evolutions to ease future database changes
2025-03-14 13:09:45 +01:00
Erik Thuning
753f87d135
Documented loan_length_presets in config.php.example.
...
Also made explicit what keywords work
2025-03-13 14:59:34 +01:00
Erik Thuning
e640c24515
FIX: Initiating a loan from a product no longer requires the user to already exist.
...
Loans created on the checkout page and the product page used different
functions to look up users, causing inconsistent behaviour. Now both use the
"advanced" user lookup that will initialize users that don't currently exist
in the system.
2025-03-13 14:49:34 +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
16f48cd28d
Made the deafult loan length configurable in config.php
2025-03-13 11:27:43 +01:00
Erik Thuning
d4cf2498fe
FIX: bad method name
2024-11-14 15:49:49 +01:00
Erik Thuning
62b8c853f5
Products now get sorted in alphabetical name order in most (all?) views
2024-11-14 15:44:04 +01:00
Erik Thuning
9db001a635
Fixed a typo
2024-03-11 10:03:53 +01:00
Erik Thuning
8cf081a9d1
Underscores in info field names are now changed to spaces when rendered.
...
Not an ideal solution since underscores now can't be used in field names,
but since it's PHP's POST handling getting in the way it'll have to do.
2024-03-08 16:40:55 +01:00
Erik Thuning
45f80a0855
Moved entitlement handling into the application.
...
Any user who can log in via SSO but doesn't have one of the required
entitlements will only ever see a listing of their own loans.
2024-02-29 15:44:19 +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
ff079abb9c
Found more strings to translate
2024-02-28 11:08:04 +01:00
Erik Thuning
d770138159
Fixed a typo
2024-02-28 10:54:46 +01:00
Erik Thuning
bf696127a9
Reworked email lookup logic on CheckoutPage,
...
so a user will be automatically created if their email address exists in sukat but doesn't have a corresponding boka user yet.
2024-02-27 15:49:52 +01:00
Erik Thuning
b2ff35a6d9
Found even more untranslated strings!
2024-02-27 15:19:30 +01:00
Erik Thuning
c6a7af0639
Cleaned up trailing whitespace
2024-02-27 13:59:59 +01:00
Erik Thuning
deb47f94d3
Eliminated a warning due to attempting to index into null
2024-02-27 13:49:42 +01:00
Erik Thuning
362ee182cb
Found some untranslated strings
2024-02-27 13:35:35 +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
36fa5d36f6
Merge branch 'test' into prod
2024-02-26 13:13:16 +01:00
Erik Thuning
437ec951bd
Past inventories used to list all current products,
...
not just the ones that existed at the time of inventory. Fixed.
2024-02-26 13:10:50 +01:00
Erik Thuning
746ad28545
Implemented internationalization.
...
Let's see how many strings have been missed.
2024-02-26 13:10:13 +01:00
Erik Thuning
5c199783c2
Added error handling for missing attributes in ldap lookups
2024-02-26 12:39:11 +01:00
Erik Thuning
b14603c7fb
Merge branch 'test' into prod
2024-02-21 16:33:08 +01:00
Erik Thuning
60982069f6
Apparently final private is pointless, who knew
2024-02-21 16:31:51 +01:00
Erik Thuning
048cfb3ee2
match is a keyword in php8, so renamed the match() function accordingly
2024-02-21 11:37:35 +01:00
Erik Thuning
e15e2da3b4
Merge branch 'test' into prod
2024-02-14 10:57:05 +01:00
Erik Thuning
bd8e50493b
Aded minimal documentation
2024-02-14 10:54:48 +01:00
Erik Thuning
8afeeb3fc5
Ignoring the email fragments file
2024-02-14 10:54:33 +01:00
Erik Thuning
7cb0b1ea57
Updated the Cron.php email logic to use configurable fragments instead of hardcoded text
2024-02-14 10:48:01 +01:00
Erik Thuning
5aaf5654f2
Added comment to the subject prefix setting
2024-02-14 10:46:28 +01:00
Erik Thuning
48940ef10a
Merge branch 'test' into prod
2024-02-09 16:23:16 +01:00
Erik Thuning
0ae6b11c21
Indentation fix
2024-02-09 16:18:23 +01:00
Erik Thuning
af39340b4b
Updated the scrapping emails to include a lot more detail.
2024-02-09 16:17:59 +01:00
Erik Thuning
6ad29ccd7d
Merge branch 'test' into prod
2024-02-09 11:43:50 +01:00
Erik Thuning
2f6cc432b1
Missed using the configured subject prefix in a spot
2024-02-08 16:36:35 +01:00