improved duration and minute selector (#2264)

* do not close modal if form is dirty
* deprecated TimesheetConfiguration
* inject timezone in form types
* cleanup usage of UserDateTimeFactory
* allow to configure increment steps for minutes
* use 15 minutes step for datetimepicker in project edit form
* use rounding rules for increments in minute select for begin and end
* allow duration in multi user and admin timesheet forms
* make dropdown values configurable
This commit is contained in:
Kevin Papst
2021-01-17 14:04:13 +01:00
committed by GitHub
parent e2324b7d51
commit 8d72d114c7
95 changed files with 1381 additions and 510 deletions

View File

@@ -29,6 +29,14 @@ kimai:
# This setting can be changed through the Administration screen
# markdown_content: false
# Configures the duration drop-down select.
# null = use rounding rules, 0 = deactivate, every other number is used as minute/step increment
# duration_increment: ~
# Configures the minute select for begin and end date-time.
# null = use rounding rules, every number > 0 is used as minute/step increment
# time_increment: ~
# The time-tracking mode that should be used.
# See https://www.kimai.org/documentation/timesheet.html#tracking-modes
# mode: default

View File

@@ -49,18 +49,6 @@ services:
App\Configuration\LanguageFormattings:
arguments: ['%kimai.languages%']
App\Configuration\TimesheetConfiguration:
arguments:
$settings: '%kimai.timesheet%'
App\Configuration\CalendarConfiguration:
arguments:
$settings: '%kimai.calendar%'
App\Configuration\FormConfiguration:
arguments:
$settings: '%kimai.defaults%'
App\Configuration\SystemConfiguration:
arguments:
$settings: '%kimai.config%'

View File

@@ -8,11 +8,6 @@ services:
test.PasswordEncoder: "@security.encoder_factory"
# added, so we are able to overwrite the service for the CalendarControllerTest
App\Configuration\CalendarConfiguration:
arguments: ['@App\Repository\ConfigurationRepository', "%kimai.calendar%"]
public: true
App\Configuration\SystemConfiguration:
arguments: ['@App\Repository\ConfigurationRepository', "%kimai.config%"]