forked from wallabag/wallabag
Form: move url and origin_url to UrlType
This commit is contained in:
@ -5,6 +5,7 @@ namespace Wallabag\CoreBundle\Form\Type;
|
|||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\UrlType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
@ -17,12 +18,12 @@ class EditEntryType extends AbstractType
|
|||||||
'required' => true,
|
'required' => true,
|
||||||
'label' => 'entry.edit.title_label',
|
'label' => 'entry.edit.title_label',
|
||||||
])
|
])
|
||||||
->add('url', TextType::class, [
|
->add('url', UrlType::class, [
|
||||||
'disabled' => true,
|
'disabled' => true,
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'label' => 'entry.edit.url_label',
|
'label' => 'entry.edit.url_label',
|
||||||
])
|
])
|
||||||
->add('origin_url', TextType::class, [
|
->add('origin_url', UrlType::class, [
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'property_path' => 'originUrl',
|
'property_path' => 'originUrl',
|
||||||
'label' => 'entry.edit.origin_url_label',
|
'label' => 'entry.edit.origin_url_label',
|
||||||
|
|||||||
Reference in New Issue
Block a user