Add database section

This commit is contained in:
Frederic Guillot 2013-03-26 21:54:26 -04:00
parent af335ea96f
commit c2d4ab6801

View File

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