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