* allow to input password interactively in console * added block to simplify overwriting export template parts * prevent installation in PHP 8.1 * composer update * phpunit version to 9 * support negative amounts in excel export * added system configuration actions for calendar, weekly timesheet, users * added method to render text with full markdown support
30 lines
802 B
PHP
30 lines
802 B
PHP
<?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\EventSubscriber\Actions;
|
|
|
|
use App\Event\PageActionsEvent;
|
|
|
|
class QuickEntrySubscriber extends AbstractActionsSubscriber
|
|
{
|
|
public static function getActionName(): string
|
|
{
|
|
return 'weekly_times';
|
|
}
|
|
|
|
public function onActions(PageActionsEvent $event): void
|
|
{
|
|
if ($this->isGranted('system_configuration')) {
|
|
$event->addAction('settings', ['url' => $this->path('system_configuration_section', ['section' => 'quick_entry']), 'class' => 'modal-ajax-form']);
|
|
}
|
|
|
|
$event->addHelp($this->documentationLink('weekly-times.html'));
|
|
}
|
|
}
|