summaryrefslogtreecommitdiff
path: root/templates/config_index.php
blob: 72edc4ad7626e5c845cdf23c3748de02c7d6dd06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<section id="main">

    <?php if ($user['is_admin']): ?>
        <div class="page-header">
            <h2><?= t('Application Settings') ?></h2>
        </div>
        <section>
        <form method="post" action="?controller=config&amp;action=save" autocomplete="off">

            <?= Helper\form_label(t('Language'), 'language') ?>
            <?= Helper\form_select('language', $languages, $values, $errors) ?><br/>

            <?= Helper\form_label(t('Webhooks token'), 'webhooks_token') ?>
            <?= Helper\form_text('webhooks_token', $values, $errors, array('readonly')) ?><br/>

            <div class="form-actions">
                <input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
            </div>
        </form>
        </section>
        <div class="page-header">
            <h2><?= t('More information') ?></h2>
        </div>
        <section class="settings">
            <ul>
                <li><?= t('Database size:') ?> <strong><?= Helper\format_bytes($db_size) ?></strong></li>
                <li>
                    <a href="?controller=config&amp;action=downloadDb"><?= t('Download the database') ?></a>
                    <?= t('(Gzip compressed Sqlite file)') ?>
                </li>
                <li>
                    <a href="?controller=config&amp;action=optimizeDb"><?= t('Optimize the database') ?></a>
                     <?= t('(VACUUM command)') ?>
                </li>
                <li>
                    <?= t('Official website:') ?>
                    <a href="http://kanboard.net/" target="_blank">http://kanboard.net/</a>
                </li>
                <li>
                    <?= t('Application version:') ?>
                    <?= Model\Base::APP_VERSION ?>
                </li>
            </ul>
        </section>
    <?php endif ?>

    <div class="page-header">
        <h2><?= t('User Settings') ?></h2>
    </div>
    <section class="settings">
        <ul>
            <li>
                <strong><?= t('My default project:') ?> </strong>
                <?= isset($user['default_project_id']) ? $projects[$user['default_project_id']] : t('None') ?>,
                <a href="?controller=user&amp;action=edit&amp;user_id=<?= $user['id'] ?>"><?= t('edit') ?></a>
            </li>
        </ul>
    </section>
</section>