Skip to content

Commit

Permalink
Merge pull request #253 from denbatte/feature/backendLabels
Browse files Browse the repository at this point in the history
[NodeBundle, SeoBundle] Update labels at 'Edit pages' to be more clear
  • Loading branch information
Roderik van der Veer committed Apr 3, 2015
2 parents dd824dc + 2e9f259 commit b3b1662
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Kunstmaan/NodeBundle/Form/PageAdminType.php
Expand Up @@ -18,8 +18,12 @@ class PageAdminType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('id', 'hidden');
$builder->add('title', null, array('label' => 'Name'));
$builder->add('pageTitle');
$builder->add('title', null, array('label' => 'Navigation title'));
$builder->add('pageTitle', null, array(
'attr' => array(
'info_text' => 'Used as title inside the page.'
)
));
}

public function setDefaultOptions(OptionsResolverInterface $resolver)
Expand Down
7 changes: 6 additions & 1 deletion src/Kunstmaan/SeoBundle/Form/SeoType.php
Expand Up @@ -18,7 +18,12 @@ class SeoType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('id', 'hidden')
->add('metaTitle', null, array('label' => 'Title', 'attr' => array('info_text' => 'Use %websitetitle% to dynamic fill in the main website title.')))
->add('metaTitle', null, array(
'label' => 'Meta title',
'attr' => array(
'info_text' => 'Sets the title in the head of your document. It should be short and descriptive. The content of the "Navigation title" field will be used if this field is left blank.'
)
))
->add('metaAuthor', null, array('label' => 'Meta author'))
->add('metaDescription', null, array('label' => 'Meta description'))
->add('metaKeywords', null, array('label' => 'Meta keywords'))
Expand Down

0 comments on commit b3b1662

Please sign in to comment.