X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FEditEntryType.php;h=40e5b5b9a2cd88e120cd32a96cf0ddbb71208a08;hb=d8f8a5901086f243f9fa215d52baea6833e1cb55;hp=23d7b23984d3e4059695d3fd4c64ea7f588aab0f;hpb=0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php index 23d7b239..40e5b5b9 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php @@ -14,30 +14,30 @@ class EditEntryType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('title', TextType::class, array( + ->add('title', TextType::class, [ 'required' => true, 'label' => 'entry.edit.title_label', - )) - ->add('is_public', CheckboxType::class, array( + ]) + ->add('is_public', CheckboxType::class, [ 'required' => false, 'label' => 'entry.edit.is_public_label', - )) - ->add('url', TextType::class, array( + ]) + ->add('url', TextType::class, [ 'disabled' => true, 'required' => false, 'label' => 'entry.edit.url_label', - )) - ->add('save', SubmitType::class, array( + ]) + ->add('save', SubmitType::class, [ 'label' => 'entry.edit.save_label', - )) + ]) ; } public function configureOptions(OptionsResolver $resolver) { - $resolver->setDefaults(array( + $resolver->setDefaults([ 'data_class' => 'Wallabag\CoreBundle\Entity\Entry', - )); + ]); } public function getBlockPrefix()