Add database section

This commit is contained in:
Frederic Guillot 2013-03-26 21:54:26 -04:00
parent af335ea96f
commit c2d4ab6801
1 changed files with 12 additions and 6 deletions

View File

@ -1,26 +1,32 @@
<div class="page-header">
<h2>Preferences</h2>
<h2>Username and password</h2>
</div>
<section>
<form method="post" action="?action=config" autocomplete="off">
<?= Helper\form_label('Username', 'username') ?>
<?= Helper\form_text('username', $values, $errors, array('required')) ?><br/>
<?= Helper\form_label('Password', 'password') ?>
<?= Helper\form_password('password', $values, $errors) ?>
<span class="form-help">Don't use the same password everywhere!</span><br/>
<?= Helper\form_password('password', $values, $errors) ?><br/>
<?= Helper\form_label('Confirmation', 'confirmation') ?>
<?= Helper\form_password('confirmation', $values, $errors) ?><br/>
<span class="form-help">Don't use the same password everywhere!</span><br/>
<div class="form-actions">
<input type="submit" value="Update" class="btn btn-blue"/>
</div>
</form>
</section>
<div class="page-section">
<h2>My data</h2>
</div>
<p><a href="?action=download-db">Download the entire database</a> (Gzip compressed Sqlite file).</p>
<section>
<ul>
<li>Database size: <?= Helper\format_bytes($db_size) ?></li>
<li><a href="?action=optimize-db">Optimize the database</a> (VACUUM command)</li>
<li><a href="?action=download-db">Download the entire database</a> (Gzip compressed Sqlite file).</li>
</ul>
</section>