
<?php
use Yiisoft\Form\Form;
use Yiisoft\Form\Field;
use Yiisoft\Form\Field\Email;

echo '<h1>Create User</h1>';
if (!empty($message)) {
	echo '<div class="alert alert-info">' . htmlspecialchars($message) . '</div>';
}

echo Form::widget()
	->begin();
echo Field::widget()
	->input(new Email($form, 'email'))
	->label('Email');
echo '<br>';
echo '<button type="submit">Create User</button>';
echo Form::widget()->end();

