javascript and api to stop and display active records (#772)

This commit is contained in:
Kevin Papst
2019-05-10 13:45:09 +02:00
committed by GitHub
parent e619b5fd31
commit 09da7cd242
86 changed files with 918 additions and 449 deletions

View File

@@ -9,8 +9,10 @@
namespace App\Form\Extension;
use App\Configuration\ThemeConfiguration;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
@@ -29,14 +31,14 @@ class EnhancedChoiceTypeExtension extends AbstractTypeExtension
/**
* @param null|string $type
*/
public function __construct(?string $type)
public function __construct(ThemeConfiguration $configuration)
{
$this->type = $type;
$this->type = $configuration->getSelectPicker();
}
public static function getExtendedTypes(): iterable
{
return [EntityType::class];
return [EntityType::class, ChoiceType::class];
}
/**