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
Ivan Danch
Moje Mama
Commits
0556dc7e
Commit
0556dc7e
authored
3 years ago
by
Ivánek
Browse files
Options
Download
Email Patches
Plain Diff
.
parent
17a32dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
app/Models/Forms/IvanDanchForm.php
app/Models/Forms/IvanDanchForm.php
+29
-0
No files found.
app/Models/Forms/IvanDanchForm.php
0 → 100644
View file @
0556dc7e
<?php
declare
(
strict_types
=
1
);
namespace
App\Models\forms
;
use
Nette
;
use
Nette\Application\UI\Form
;
use
Nette\Application\UI\IvanDanchElektronikaPresenters
;
use
ComponentMode\IComponent
;
class
IvanDanchForm
{
public
function
createComponentForm1
(
$parent
,
string
$name
):
Form
{
$form
=
new
Form
(
$parent
,
$name
);
$form
->
addText
(
'name'
,
'Jmeno:'
)
->
setRequired
()
->
setMaxLength
(
25
);
$form
->
addEmail
(
"email"
,
"E-mail:"
)
->
setRequired
()
->
setMaxLength
(
69
);
$form
->
addPassword
(
'password1'
,
'Heslo:'
)
->
setRequired
()
->
setMaxLength
(
45
);
$form
->
addRadioList
(
"panic"
,
"sukal ?"
,
array
(
"Ano"
,
"Ne"
))
->
setRequired
();
$form
->
addTextArea
(
"text"
,
"Text:"
,
10
,
5
)
->
setDisabled
();
$form
->
addUpload
(
"Upload"
,
"Přidat soubor:"
);
$form
->
addMultiSelect
(
"Vyberte"
,
""
,
array
(
"1"
,
"2"
,
"3"
,
"4"
));
$form
->
addCheckboxList
(
"sawgon"
,
""
,
array
(
"deez"
,
"nuts"
));
$form
->
addSubmit
(
'Send'
,
'Poslat'
);
return
$form
;
}
}
\ No newline at end of file
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