miniflux-legacy/app/templates/new_db.php

37 lines
1.7 KiB
PHP
Raw Normal View History

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