sync setup howto for tomboy and tomdroid
[grauphel.git] / templates / gui-database.php
1 <link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
2
3 <?php /** @var $l OC_L10N */ ?>
4 <?php $_['appNavigation']->printPage(); ?>
5
6 <script type="text/javascript" src="<?php p(OCP\Util::linkTo('grauphel','js/grauphel.js')); ?>"></script>
7
8 <div id="app-content" class="content">
9   <h1>Manage database</h1>
10   <p>
11     In case something went seriously wrong during synchronization, you may reset your
12     database.
13     It will delete all your notes and the synchronization status - as if you
14     never synced to this server before.
15   </p>
16
17   <?php isset($_['stats']) && $_['stats']->printPage(); ?>
18
19   <h2>Reset database</h2>
20   <?php if ($_['reset'] === true) { ?>
21   <p class="success">
22    Database has been reset!
23   </p>
24   <?php } else if ($_['reset'] === false) { ?>
25   <p class="error">
26    Database has <b>not</b> been reset!
27   </p>
28   <?php } ?>
29
30   <p>
31    To reset the database, enter your user name and click "reset database":
32   </p>
33   <form method="POST" action="<?php p(OCP\Util::linkToRoute('grauphel.gui.databaseReset')); ?>">
34     <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>"/>
35     <p>
36      <label>Username: <input type="text" name="username" value="" autocomplete="off" /></label>
37      <button type="submit">Reset database</button>
38     </p>
39   </form>
40 </div>