Commit 0556dc7e authored by Ivánek's avatar Ivánek
Browse files

.

parent 17a32dd2
<?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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment