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

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

echo Form::widget()->begin();
echo Field::widget()->input(new Text($form, 'name'))->label('Name');
echo '<br>';
echo Field::widget()->input(new Text($form, 'version'))->label('Version');
echo '<br>';
echo Field::widget()->input(new Text($form, 'repoUrl'))->label('Repository URL');
echo '<br>';
echo '<button type="submit">Add Package</button>';
echo Form::widget()->end();

