Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Martin Bárta
barta-it-symfony-template-novy_stary
Commits
49ac67fc
Commit
49ac67fc
authored
2 years ago
by
Martin Bárta
Browse files
Options
Download
Email Patches
Plain Diff
Update web/src/Form/UserFormType.php
parent
61e4e082
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
web/src/Form/UserFormType.php
web/src/Form/UserFormType.php
+4
-9
No files found.
web/src/Form/UserFormType.php
View file @
49ac67fc
...
...
@@ -6,6 +6,7 @@ use App\Entity\User;
use
Symfony\Component\Form\AbstractType
;
use
Symfony\Component\Form\Extension\Core\Type\SubmitType
;
use
Symfony\Component\Form\Extension\Core\Type\TextareaType
;
use
Symfony\Bridge\Doctrine\Form\Type\EntityType
;
use
Symfony\Component\Form\FormBuilderInterface
;
use
Symfony\Component\OptionsResolver\OptionsResolver
;
...
...
@@ -14,15 +15,9 @@ class UserFormType extends AbstractType
public
function
buildForm
(
FormBuilderInterface
$builder
,
array
$options
):
void
{
$builder
->
add
(
'Jmeno'
,
null
,
[
'label'
=>
'Jmeno: '
])
->
add
(
'Prijmeni'
,
null
,
[
'label'
=>
'Prijmeni: '
])
->
add
(
'Telefon'
,
null
,
[
'label'
=>
'Telefon: '
])
->
add
(
'Email'
,
null
,
[
'label'
=>
'Email: '
])
->
add
(
'submit'
,
SubmitType
::
class
,
[
'label'
=>
'Odeslat'
,
'attr'
=>
[
'class'
=>
'btn btn-primary'
,
],
->
add
(
'Entity'
,
EntityType
::
class
,
[
'class'
=>
User
::
class
,
'choice_label'
=>
'Vyber jmeno'
])
->
add
(
'Zprava'
,
TextareaType
::
class
,
[
'label'
=>
'Zprava: '
])
->
add
(
'submit'
,
SubmitType
::
class
,
[
'label'
=>
'Odeslat'
])
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment