Release 2.0.25 (#4066)

* added support for hourly rate column in detail table
* allow to register icon in extension
* allow to show QR code secret
* new translations
* bump theme and packages
* fix validation for invoice-document-filenames with uppercase character
* max upload size 1MB
* fix last month in daterange-picker in certain situations, more years in quick-select
* remove unused package-versions-deprecated
* link preferences from contract warning message
* added page_setup page layout
* prevent DROP TABLE in addSQL() and replace drop table with schema call
* added azuyalabs/yasumi
This commit is contained in:
Kevin Papst
2023-06-06 23:05:20 +02:00
committed by GitHub
parent 2ba9cff281
commit 0663995d06
34 changed files with 629 additions and 467 deletions

View File

@@ -9,6 +9,9 @@
namespace App\Utils;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
final class PageSetup
{
private ?string $help = null;
@@ -17,11 +20,27 @@ final class PageSetup
private string $translationDomain = 'messages';
private array $actionPayload = [];
private ?DataTable $dataTable = null;
private ?FormInterface $paginationForm = null;
public function __construct(private string $title)
{
}
public function setPaginationForm(FormInterface $paginationForm): void
{
$this->paginationForm = $paginationForm;
}
public function hasPaginationForm(): bool
{
return $this->paginationForm !== null;
}
public function getPaginationForm(): ?FormView
{
return $this->paginationForm?->createView();
}
public function hasDataTable(): bool
{
return $this->dataTable !== null;