2014-04-06 02:24:13 +02:00
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('New database') ?></h2>
|
2015-01-18 00:53:40 +01:00
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
<li><a href="?action=config"><?= t('general') ?></a></li>
|
|
|
|
<li><a href="?action=services"><?= t('external services') ?></a></li>
|
|
|
|
<li><a href="?action=api"><?= t('api') ?></a></li>
|
|
|
|
<li class="active"><a href="?action=database"><?= t('database') ?></a></li>
|
|
|
|
<li><a href="?action=help"><?= t('help') ?></a></li>
|
|
|
|
<li><a href="?action=about"><?= t('about') ?></a></li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2014-04-06 02:24:13 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<form method="post" action="?action=new-db" autocomplete="off">
|
2014-11-08 03:44:20 +01:00
|
|
|
|
2016-08-25 03:17:58 +02:00
|
|
|
<?= Miniflux\Helper\form_hidden('csrf', $values) ?>
|
2014-11-08 03:44:20 +01:00
|
|
|
|
2016-08-25 03:17:58 +02:00
|
|
|
<?= Miniflux\Helper\form_label(t('Database name'), 'name') ?>
|
|
|
|
<?= Miniflux\Helper\form_text('name', $values, $errors, array('required', 'autofocus')) ?>
|
2014-04-06 02:24:13 +02:00
|
|
|
<p class="form-help"><?= t('The name must have only alpha-numeric characters') ?></p>
|
|
|
|
|
2016-08-25 03:17:58 +02:00
|
|
|
<?= Miniflux\Helper\form_label(t('Username'), 'username') ?>
|
|
|
|
<?= Miniflux\Helper\form_text('username', $values, $errors, array('required')) ?><br/>
|
2014-04-06 02:24:13 +02:00
|
|
|
|
2016-08-25 03:17:58 +02:00
|
|
|
<?= Miniflux\Helper\form_label(t('Password'), 'password') ?>
|
|
|
|
<?= Miniflux\Helper\form_password('password', $values, $errors, array('required')) ?>
|
2014-04-06 02:24:13 +02:00
|
|
|
|
2016-08-25 03:17:58 +02:00
|
|
|
<?= Miniflux\Helper\form_label(t('Confirmation'), 'confirmation') ?>
|
|
|
|
<?= Miniflux\Helper\form_password('confirmation', $values, $errors, array('required')) ?><br/>
|
2014-04-06 02:24:13 +02:00
|
|
|
|
|
|
|
<div class="form-actions">
|
|
|
|
<button type="submit" class="btn btn-blue"><?= t('Create') ?></button>
|
2014-07-26 13:33:15 +02:00
|
|
|
<?= t('or') ?> <a href="?action=config"><?= t('cancel') ?></a>
|
2014-04-06 02:24:13 +02:00
|
|
|
</div>
|
|
|
|
</form>
|