aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKevin Decherf <kevin@kdecherf.com>2017-11-05 15:32:57 +0100
committerKevin Decherf <kevin@kdecherf.com>2017-11-19 15:02:11 +0100
commit8425f5cc3dc77c691f432bda4329ce9dfb015c7d (patch)
tree269b85fc22b6a1aca3a2f5579ddcac00a694863f
parent6de4cd35b5b979c37cf1bca5e5b3dae6a5b0170e (diff)
downloadwallabag-8425f5cc3dc77c691f432bda4329ce9dfb015c7d.tar.gz
wallabag-8425f5cc3dc77c691f432bda4329ce9dfb015c7d.tar.zst
wallabag-8425f5cc3dc77c691f432bda4329ce9dfb015c7d.zip
Form: move url and origin_url to UrlType
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/EditEntryType.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
index 4bceaf5f..08355928 100644
--- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
@@ -5,6 +5,7 @@ namespace Wallabag\CoreBundle\Form\Type;
5use Symfony\Component\Form\AbstractType; 5use Symfony\Component\Form\AbstractType;
6use Symfony\Component\Form\Extension\Core\Type\SubmitType; 6use Symfony\Component\Form\Extension\Core\Type\SubmitType;
7use Symfony\Component\Form\Extension\Core\Type\TextType; 7use Symfony\Component\Form\Extension\Core\Type\TextType;
8use Symfony\Component\Form\Extension\Core\Type\UrlType;
8use Symfony\Component\Form\FormBuilderInterface; 9use Symfony\Component\Form\FormBuilderInterface;
9use Symfony\Component\OptionsResolver\OptionsResolver; 10use Symfony\Component\OptionsResolver\OptionsResolver;
10 11
@@ -17,12 +18,12 @@ class EditEntryType extends AbstractType
17 'required' => true, 18 'required' => true,
18 'label' => 'entry.edit.title_label', 19 'label' => 'entry.edit.title_label',
19 ]) 20 ])
20 ->add('url', TextType::class, [ 21 ->add('url', UrlType::class, [
21 'disabled' => true, 22 'disabled' => true,
22 'required' => false, 23 'required' => false,
23 'label' => 'entry.edit.url_label', 24 'label' => 'entry.edit.url_label',
24 ]) 25 ])
25 ->add('origin_url', TextType::class, [ 26 ->add('origin_url', UrlType::class, [
26 'required' => false, 27 'required' => false,
27 'property_path' => 'originUrl', 28 'property_path' => 'originUrl',
28 'label' => 'entry.edit.origin_url_label', 29 'label' => 'entry.edit.origin_url_label',