diff --git a/application/src/Form/NameSourceType.php b/application/src/Form/NameSourceType.php index 564b25c..14c0a71 100644 --- a/application/src/Form/NameSourceType.php +++ b/application/src/Form/NameSourceType.php @@ -2,11 +2,11 @@ namespace App\Form; -use App\Entity\User; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Form\Extension\Core\Type\TextType; +use App\Entity\NameSource; class NameSourceType extends AbstractType { @@ -18,7 +18,7 @@ class NameSourceType extends AbstractType public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => User::class, + 'data_class' => NameSource::class, ]); } } diff --git a/application/templates/source/form/content/name.html.twig b/application/templates/source/form/content/name.html.twig new file mode 100644 index 0000000..97a2252 --- /dev/null +++ b/application/templates/source/form/content/name.html.twig @@ -0,0 +1,3 @@ +{{ form_start(form) }} +{{ form_widget(form) }} +{{ form_end(form) }} \ No newline at end of file diff --git a/application/templates/source/form/name.html.twig b/application/templates/source/form/name.html.twig new file mode 100644 index 0000000..1c99a0d --- /dev/null +++ b/application/templates/source/form/name.html.twig @@ -0,0 +1,5 @@ +{% extends "source/form/source.html.twig" %} +{% block content %} +