Commit c8960db2 authored by Julien Fastré's avatar Julien Fastré
Browse files

apply select2 on custom fields

parent d92bc4bb
......@@ -81,7 +81,7 @@ class CustomFieldICPC2Code implements CustomFieldInterface
}
}
$builder->add($customField->getSlug(), 'choice', array(
$builder->add($customField->getSlug(), 'select2_choice', array(
'choices' => $codesChoice,
'empty_value' => 'Choisissez le code CISP'
));
......@@ -94,7 +94,7 @@ class CustomFieldICPC2Code implements CustomFieldInterface
public function render($value, CustomField $customField)
{
return $this->templating();
}
public function buildOptionsForm(FormBuilderInterface $builder)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment