2015-03-02 21:57:49 +01:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Trinity\Bundle\ContentManagerBundle\Form\Type;
|
|
|
|
|
|
|
|
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
|
|
|
|
|
|
|
|
class PageMetasType extends PageType
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritdoc}
|
|
|
|
|
*/
|
|
|
|
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|
|
|
|
{
|
|
|
|
|
$builder->add(
|
|
|
|
|
'seoTitle',
|
|
|
|
|
'text',
|
|
|
|
|
array(
|
|
|
|
|
'required' => false,
|
|
|
|
|
'attr' => array(
|
|
|
|
|
'data-countable' => 1,
|
2015-05-04 19:34:46 +02:00
|
|
|
|
'data-help' => 'Recommended maximum length: 70 characters.'
|
2015-03-02 21:57:49 +01:00
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$builder->add(
|
|
|
|
|
'metaDescription',
|
|
|
|
|
'textarea',
|
|
|
|
|
array(
|
|
|
|
|
'required' => false,
|
|
|
|
|
'attr' => array(
|
|
|
|
|
'data-countable' => 1,
|
2015-05-04 19:34:46 +02:00
|
|
|
|
'data-help' => 'Recommended maximum length: 160 characters.'
|
2015-03-02 21:57:49 +01:00
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$builder->add(
|
|
|
|
|
'metaKeywords',
|
|
|
|
|
'textarea',
|
|
|
|
|
array(
|
|
|
|
|
'required' => false,
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|