
<?php
use Yiisoft\Form\Form;
use Yiisoft\Form\Field;
use Yiisoft\Form\Field\Text;
use Yiisoft\Form\Field\Select;

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

echo Form::widget()->begin();
echo Field::widget()
    ->input(new Select($form, 'type', [
        'git' => 'Git',
        'vcs' => 'VCS',
        'composer' => 'Composer',
    ]))
    ->label('Type');
echo '<br>';
echo Field::widget()->input(new Text($form, 'url'))->label('URL');
echo '<br>';
echo '<button type="submit">Add Repository</button>';
echo Form::widget()->end();

