Commit c7db81bc authored by Marc Ducobu's avatar Marc Ducobu
Browse files

No html rendering for csv rendering

parent 76217dc5
......@@ -109,11 +109,15 @@ class CustomFieldICPC2Code implements CustomFieldInterface
if (NULL === $code) {
return '';
}
$template = 'ChillICPC2Bundle:CustomFieldsRendering:icpc2.html.twig';
if($documentType == 'csv') {
$template = 'ChillICPC2Bundle:CustomFieldsRendering:icpc2.csv.twig';
}
return $this->templating->render("ChillICPC2Bundle:CustomFieldsRendering:"
. "icpc2.html.twig", array(
'icpc' => $code
));
return $this->templating->render(
$template,
array('icpc' => $code));
}
public function buildOptionsForm(FormBuilderInterface $builder)
......
{{ icpc.code }} - {{ icpc.name[app.request.locale] }}
\ No newline at end of file
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