change data filter on project month report (#2911)

This commit is contained in:
Kevin Papst
2021-11-05 09:45:12 +01:00
committed by GitHub
parent 042c119058
commit c8854b0775
15 changed files with 199 additions and 36 deletions

View File

@@ -18,6 +18,8 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/
class BudgetType extends AbstractType
{
public const TYPE_MONTH = 'month';
/**
* {@inheritdoc}
*/
@@ -25,9 +27,12 @@ class BudgetType extends AbstractType
{
$resolver->setDefaults([
'label' => 'label.budgetType',
// not yet translated in enough languages
//'placeholder' => 'label.budgetType_full',
'required' => false,
'search' => false,
'choices' => [
'label.budgetType_month' => 'month',
'label.budgetType_month' => self::TYPE_MONTH,
],
]);
}