Commit Graph

1181 Commits (2be3e17db7f1fb4dad1ee2995e18b4136e54afb1)

Author SHA1 Message Date
msquare 412be8e188 upgrade chart.js lib and fix bargraph. fixes
msquare 93b819025c fix margin of form submit in tables
MichiK 252f003b94 Really fix the data/timepicker CSS and JS
Attaching the timepicker to the input instead of the sorrounding div didn't
turn out as expected. Therefore, I used the same mechanism for DOM attachment
and lazy initialization for the timepicker like for the datepicker.

Instead of trying to load the CSS through webpack and some JS voodoo, it's
a lot simpler to just include it via the normal base theme CSS. This works.
In addition, I noticed that there is an easier way to read the current locale.
No need to do this twice via different ways.

This closes .
MichiK 7e53c45890 Change the color of "reset" in admin_arrive
MichiK ed5ee3235e Add timepickers in shifts view
MichiK 4e3232e57a Replace datepicker and remove datepicker inline JS
MichiK 36b7f8d2a2 Fix datepicker
`<input type="date">` and JS datepicker combined cause trouble in some
browsers, so this changes all the date input fields' type to `text`
via JS so that the browser's datepicker is only used when a user has
disabled JavaScript.

In addition, it adds a placeholder so the user knows which date format
to use when entering the date manually.

This closes .
Igor Scheller c33940f64a Moved permission checks to Authenticator class
msquare e0de2c2c65 more work on 35c3 theme
Igor Scheller f845a5ab8b Added caching for templating and routing
See  (Implement caching)
Igor Scheller 944c29b964 Require POST for sending forms
* Ensure that the form is submitted with a post request
* Replaced several links with forms

Closes  (Security Vulnerability)
Igor Scheller 23c0fae36f Added csrf middleware
msquare 8236989be0 fix missing unique mail validation on user register
Igor Scheller 15751f9c7a Fix error when accessing undefined date
Closes  (Edit User fails when User never logged in before)
Igor Scheller 88f3bafa5e Replaced `Auth()` with `auth()`
Igor Scheller 82b22160fd Fixed error if shirt size is not configured
Igor Scheller a2aaba9cab User: Bugfixes & code cleanup
Igor Scheller d7aea575ff Replaced more sql queries and old data
Igor Scheller 57932be428 Moved arrival_date to state
Igor Scheller 4e09ee3eb2 Replaced more user related stuff
(Contains some buggy stuff too...)
Igor Scheller 7c6afc2bfe Removed `User($id)` function 🎉
Igor Scheller 89e62c95a7 Changed more functions 🎉
Igor Scheller b069a938c6 Changed user_link and some other user functions to use the user id
Igor Scheller 2dcb7cc2de Replaced some global `$user` variables
Igor Scheller d15946df2d Changed `src/` code and templates to use the new user model
Igor Scheller b443b53919 Translation: added pluralization support
Igor Scheller 90e1a94962 Make application name configurable
* Added app_name configuration option
* Extended `EngelsystemMailer` to prepend the application name to all mails

Closes 
Igor Scheller 7f61dc95be EventConfig: Merge event configuration from database to global config
Igor Scheller 7762c0eb2b Translatable user groups & cutoff fix
Closes  (Typo: "irt Manager" instead of "Shirt Manager")
Igor Scheller 6187eed3bb Merge remote-tracking branch 'MyIgel/mailing'
Igor Scheller 66038eda14 Merge branch 'twig-templates'
Nos- b2303c0723 Tried to fix inputfields for date, email, tel
Igor Scheller 2a134e6c0b Config: Removed nightshifts query
Igor Scheller 0734807eef Merge remote-tracking branch 'MyIgel/logentry-model'
Igor Scheller d0abc27c07 Merge remote-tracking branch 'MyIgel/translations'
Igor Scheller 8456a3cf6f Moved emojis to assets
Igor Scheller c1a1180d1f Moved frontend, templates and lang to resources
Igor Scheller 222c9fed7d Merge remote-tracking branch 'MyIgel/templating'
Igor Scheller 01e9c22695 Implemented mailing abstraction
Closes 
Igor Scheller 36dafdb68a Merge remote-tracking branch 'MyIgel/rebuild-psr7'
Igor Scheller 9d34f371cb Added CreditsController
Igor Scheller 9e217d87c0 Template refactoring to use twig
Igor Scheller ac48332166 Models: Added LogEntry model
Igor Scheller 2bebbeb191 Installation: Added migrations for install.sql and update.sql files
Igor Scheller 9d9aa71eb7 Installation: Added migrations for install.sql and update.sql files
Igor Scheller 5456fea503 $bugfixes
Bot e8f8fc7f5f Replaced gettext translation `_()` with `__()` that uses the Translator class
Igor Scheller acfe72cb91 Removed translation from config file
Igor Scheller 427315195b Moved translation/internationalization to Helpers\Translator class
Igor Scheller bb3d16d273 Added Twig template renderer, closes
Igor Scheller 175c335810 Db::selectOne() should return null if result is empty
msquare 1090d5e889
Update shifts_controller.php
fix problem when missing needed angeltype entry
Igor Scheller d93ace2eae Prevent object serialization in session
Igor Scheller d6c8f1a614 Merge branch 'master' to 'rebuild-database'
Igor Scheller f3b3b6683c Added middleware tests
msquare df30f7d5d8 merge pr : Use npm to handle frontend dependencies
Bot 28349b69a8 Changed JS to use single quotes instead of double quotes
Igor Scheller 864a086900 Prevent object serialization in session
msquare 2832fe48ee rename some params (codestyle)
msquare 9496e35711 added comments and renamed short method to url generators
msquare 5a83d4fb8b fix broken css class on main menu angel icon
msquare 6dbec2e2fb remove unused code
msquare 0f1da65f2a
Merge pull request from MyIgel/master
Prevent empty string after $tokens = explode(' ', $search);
msquare 2e1c2cf3b5 remove br between shift filter checkboxes
Igor Scheller e44ba84561 Refactoring: moved application bootstrapping to bootstrap.php
Igor Scheller 0d154365a2 models: return null on empty result
Igor Scheller 646ffc1910 $bugfixes...
Bot 5227fe6a94 Formatting
Igor Scheller fe58e4f422 database: updated checks for selectOne
Igor Scheller 0e8cc2f0a7 database: integrated illuminate/database do Db class, removed unused methods
Igor Scheller b2e5b5c44d Prevent empty string after $tokens = explode(' ', $search);
mia c83771ed62
Fixes
Display "shift started" instead of "shift starts" when shift has already started.
msquare 73ed2308c1 use user tshirt count
msquare b3ca550ed0 simplify t-shirt statistics
msquare 0314ba19e3 make got t-shirt always available
msquare c961269bb7 better hour formatting
msquare d66dc43aec fix worklog entry view
msquare ee9fbda098 add work date to work log
msquare d95e488893 add work log creator infor
msquare be3652b44a fix work log logs
msquare 86a38a3372 add user work log entries feature
msquare e7b0e9934d add shift filter buttons at the top
msquare 14584b9611 small improvements of user view
msquare be6bd2f3d3 small improvements of user view
msquare 3993e553d1 small improvements of user view
msquare b59d17918e small improvements of user view
msquare c3b8fa892d tshirt-score for forced active
msquare 8c64532902 fix ical export description
Bot b00743d6d3 Formatting
Igor Scheller 6ceec76e7d feature request: filter angel types based on account settings, closes
msquare 02b775684d some beauty for the my shifts table
msquare 1e8f0c4845 fixes , fixes : T-Shirt Score™ should be shown on the user view page below your shifts
msquare abf4b1da30 check if logged in before sign up
Katrin Leinweber a2fa3fce3d rephrase more naturally
msquare 96d4968e1d fix dashboard stats
Igor Scheller 6953090e7d 392: Show warning message when editing html news without proper permissions to save them, Closes
Igor Scheller f1b7946975 Removed some short ifs from Shifts_view.php
msquare db11dd1d0f fix room view
msquare a7dc640385 add my shifts button to shift view
msquare 0101993284 fix dashboard rows
msquare d4ccc14d6c fix dashboard rows
msquare 6aaf8d6f53 fix : Public Dashboard Stats
Igor Scheller f8d0a7c5b0 Updated translation / Formatting / Test
Igor Scheller 75eea1681e Removed dead function call
Bot 952c7892f3 Formatting & Docstrings
klemens a6cf4c9ce9 spelling fixes
msquare 6f29b6492d show forced active on user view
msquare 05aad262bb show forced active on user view
msquare 5f34e15712 fix broken public dashboard shift links
msquare fbbea4eb5f add show on dashboard flag for angeltypes
msquare 81b4e9d2bc solve problem with autobreaks in news text when building html tables
msquare 34da670b6f solve problem with autobreaks in news text when building html tables
msquare 2b52d24c59 solve problem with autobreaks in news text when building html tables
msquare 9969208be2 solve problem with autobreaks in news text when building html tables
msquare a0f70d9819 solve problem with autobreaks in news text when building html tables
msquare a1c032642f introduce new shift signup state for not arrived angels
msquare 2c04e35bed introduce new shift signup state for not arrived angels
msquare 7a3bdda483 rewrite controller for creating shift entries
msquare 1289101f6e rewrite controller for creating shift entries
msquare afd7c59d1d fix shift entry delete
msquare fd85034e7f redo shift signoff and icons for delete/confirm/acknowledgment questions
msquare 567ed9ebd2 remove flags since they do not belong to language selection
msquare b60ad7ccfb make shift entry comment private again
msquare 769d8c4af9 better logging of needed angeltypes for shifts and rooms
msquare b2602f8936 add log entries when deleting a room
MichiK 9c54b42a3d Allow dot in user name
0f273988 changed the regular expression for user names. The new regex
does not allow dots anymore in user names, stripping them silently.
We already have at least one user with a dot in their name who can't
login now anymore.
msquare 3ea35788be finetuning dashboard layout
msquare a5f4de9509 finetuning dashboard layout
msquare 20f4d44cbf fix union queries for dashboard stats
msquare 35be25a786 fix dashboard using needed angeltypes from room config too for frab shifts
msquare 952dc6921a undo of fix : XXE DoS in engelsystem - the feature is actually needed for xcal files
msquare c70e268a2e add fullscreen button to dashboard and update translation to german
msquare a8cf4b9ddf fix : XXE DoS in engelsystem
msquare cf7eb80a92 fix dashboard ajax reload
gnomus c3d22ad517
Replace window reload with jquery ajax load
msquare 5278be1f0f add link to public dashboard from shift view
msquare 991058a9e4 improve public dashboard
msquare adc62470c5 improve public dashboard
msquare af8454598c improve public dashboard
msquare 582b1a739a improve public dashboard
msquare 3379ea10b2 improve public dashboard
msquare 59b8e76d12 improve public dashboard
msquare ff94df53d6 finish basic public dashboard
msquare d5631297dc better logging of needed angeltypes for shifts and rooms
msquare 74f3677f19 add quick+dirty public dashboard
msquare afb77d22ba move room db queries to model
msquare aae8c77ed1 fix : Duplicate entry for Room name
msquare dbf6e64a2c change write permission check to catch exceptions
msquare cbe88ad801 remove some unused code
msquare 4143680297 remove room number and visible flag, rename pentabarf to frab and introduce map/c3nav integration as well as markdown description for rooms
MichiK 32d14f493b Fix sign-up to shifts by supporter
Any user with the `shiftentry_edit_angeltype_supporter` privilege was
able to sign up any users of the correct angeltype to any shift that
they could sign up themselves because the shift entry controller only
checks for the global privilege an not the fact that the user is indeed
supporter for the angeltype in question.
msquare e5880c51a2 fix : Removing supporter rights does not work
msquare 6dfa70974e ask for dect number if user arrived
MichiK bc3f777b23 Rename 'supporter(s)' to 'Supporter(s)'
msquare e7d605c6d9 fix log on confirming angels
msquare 0f273988c9 fix user nick validation, fixes
msquare a5f5dc52c8 update bootstrap-datepicker and set orientation to bottom, fixes
msquare 962e7d5726 Hide 'You are not marked as arrived' notification in header until congress starts, fixes
msquare 9e04e2d4a0 fix age validation
msquare cbc7f54ad8 fix query for creating angeltypes
Igor Scheller 0b45d2a88f Feature: Time Interval Buttons (on Shifts page), closes
Igor Scheller 25e434bce4 Refactored ExceptionHandler
Igor Scheller 6eea072376 Added ExceptionHandler Interface
msquare e54a10b816 add shift calendar to angeltype view fix tab jumps
msquare 928e707015 add shift calendar to angeltype view
msquare d8476f244d complete feature contact info for angeltypes, fixes
msquare bb2681a7c8 add validation of dect numbers
msquare b95d4ece8a increase readability of hints with links, refs
Igor Scheller d34b160b5c Added links to notifications, closes
msquare 15c50ab315 fix minor cody style issues (codacy)
msquare deae2a1721 fix removing users from shift, fixes
msquare 86e41e2949 change logging of needed angeltypes for created shifts
msquare 1c77c45bcf fix problem with default values, fixes , fixes
msquare 3ee1a4b0c7 fix problem with default value for userangeltype.supporter, fixes
msquare 88ea992f9c fix sql queries with bools
msquare 4eedad6c89 fix problem with default values on registration
msquare f9ab269758 fix problem with default values on registration
msquare 6b74705f37 fix problem with default values on registration
msquare d8de02db34 fix problem with default values on registration
msquare 59cd65cb50 fix problem with validation of planned arrival date
msquare 7df64c82a6 fix problem with bools in queries
msquare c62833bb51 fix problem with default value when registering
msquare eec161a852 fix problem with default age when registering
msquare 50f24271eb fix all redirects to home (because of new urls redirect to ? wont work anymore)
msquare e9a28eb20e fix log message from changing event config
Igor Scheller ad948bdd32 Added RequestServiceProvider and SessionServiceProvider
Igor Scheller e727b367cc Moved includes to own file
Igor Scheller 60fd72cd1a Added service providers
Igor Scheller 4817658862 Merge branch 'noc0lour:fix_setup_bugs', closes
Igor Scheller d49e49c364 Implemented service provider functionality
Igor Scheller 783c58611a Added app path to container
Igor Scheller 212760d4c9 Changed Container to Illuminate/Container
@see https://laravel.com/docs/5.5/container
@see https://davejamesmiller.com/2017/06/15/laravel-illuminate-container-in-depth
Igor Scheller 945fcb079a Added registration_enabled configuration
Igor Scheller c6ef1120f8 Set cookie to httponly
Igor Scheller 5b12eecdd6 Merge remote-tracking branch 'engelsystem/feature-igel-rewrite'
Igor Scheller 86c0713baa Added helpers unit test
Igor Scheller e6ed8a3017 Changed LogEntries table: Use log level instead of nick name
Igor Scheller b3b65743cd Added Logger
Igor Scheller 20a6fa07f8 Implemented container
Igor Scheller 0ac9818764 Added Application