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:
@@ -1,25 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Tests\Mocks\Security;
|
||||
|
||||
use App\Entity\User;
|
||||
use App\Tests\Mocks\AbstractMockFactory;
|
||||
use App\Timesheet\UserDateTimeFactory;
|
||||
|
||||
class UserDateTimeFactoryFactory extends AbstractMockFactory
|
||||
{
|
||||
public function create(?string $timezone = null): UserDateTimeFactory
|
||||
{
|
||||
$userFactory = new CurrentUserFactory($this->getTestCase());
|
||||
$currentUser = $userFactory->create(new User(), $timezone);
|
||||
|
||||
return new UserDateTimeFactory($currentUser);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user