backup_restore.mako 5.05 KB
Newer Older
echel0n's avatar
echel0n committed
1
<%inherit file="../layouts/config.mako"/>
2
<%def name='formaction()'><% return 'saveBackupRestore' %></%def>
3
<%block name="menus">
echel0n's avatar
echel0n committed
4
5
    <li class="nav-item px-1"><a class="nav-link" data-toggle="tab" href="#backup">${_('Backup')}</a></li>
    <li class="nav-item px-1"><a class="nav-link" data-toggle="tab" href="#restore">${_('Restore')}</a></li>
echel0n's avatar
echel0n committed
6
7
</%block>
<%block name="pages">
8
9
    <div id="backup" class="tab-pane active">
        <div class="form-row">
10
            <div class="col-lg-3 col-md-4 col-sm-4 card-title">
11
12
13
14
15
                <h3>${_('Backup')}</h3>
                <small class="form-text text-muted">
                    <b>${_('Backup your main database file and config')}</b>
                </small>
            </div>
echel0n's avatar
echel0n committed
16

17
            <fieldset class="col-lg-9 col-md-8 col-sm-8 card-text">
18
19
20
21
22
23
24
25
26
27
28
                <div class="form-row form-group">
                    <div class="col-md-12 component-desc">
                        <div class="input-group">
                            <input name="backupDir" id="backupDir" class="form-control"
                                   placeholder="${_('Select the folder you wish to save your backup file to')}"
                                   autocapitalize="off"/>
                            <div class="input-group-append">
                            <span class="input-group-text">
                                <a href="#" class="fas fa-download" title="${_('Backup')}" id="Backup"></a>
                            </span>
                            </div>
echel0n's avatar
echel0n committed
29
30
31
                        </div>
                    </div>
                </div>
32
33
34
35
                <div class="form-row">
                    <div class="col-md-12">
                        <div class="Backup" id="Backup-result"></div>
                    </div>
echel0n's avatar
echel0n committed
36
                </div>
37
38
            </fieldset>
        </div>
echel0n's avatar
echel0n committed
39
40
    </div><!-- /tab-pane1 //-->

41
42
    <div id="restore" class="tab-pane">
        <div class="form-row">
43
            <div class="col-lg-3 col-md-4 col-sm-4 card-title">
44
45
46
47
48
                <h3>${_('Restore')}</h3>
                <small class="form-text text-muted">
                    <b>${_('Restore your main database file and config')}</b>
                </small>
            </div>
49
            <fieldset class="col-lg-9 col-md-8 col-sm-8 card-text">
50
51
52
53
54
55
56
57
58
59
60
61
62
                <div class="form-row form-group">
                    <div class="col-md-12 component-desc">
                        <div class="form-row">
                            <div class="col-md-12">
                                <div class="input-group">
                                    <input name="backupFile" id="backupFile"
                                           placeholder="${_('Select the backup file you wish to restore')}"
                                           class="form-control" autocapitalize="off"/>
                                    <div class="input-group-append">
                                    <span class="input-group-text">
                                        <a href="#" class="fas fa-upload" title="${_('Restore')}" id="Restore"></a>
                                    </span>
                                    </div>
63
64
65
66
                                </div>
                            </div>
                        </div>

67
                        <br/>
68

69
70
71
                        <div class="form-row">
                            <div class="col-md-12">
                                <label for="restore_database">
echel0n's avatar
echel0n committed
72
                                    <input type="checkbox" class="toggle color-primary is-material" name="restore_database" id="restore_database" checked/>
73
74
75
                                    ${_('Restore database files')}
                                </label>
                            </div>
76
77
                        </div>

78
79
80
                        <div class="form-row">
                            <div class="col-md-12">
                                <label for="restore_config">
echel0n's avatar
echel0n committed
81
                                    <input type="checkbox" class="toggle color-primary is-material" name="restore_config" id="restore_config" checked/>
82
83
84
                                    ${_('Restore configuration file')}
                                </label>
                            </div>
85
86
                        </div>

87
88
89
                        <div class="form-row">
                            <div class="col-md-12">
                                <label for="restore_cache">
echel0n's avatar
echel0n committed
90
                                    <input type="checkbox" class="toggle color-primary is-material" name="restore_cache" id="restore_cache" checked/>
91
92
                                    ${_('Restore cache files')}
                                </label>
echel0n's avatar
echel0n committed
93
                                <div class="checkbox"></div>
94
                            </div>
echel0n's avatar
echel0n committed
95
96
97
                        </div>
                    </div>
                </div>
98
99
100
101
                <div class="form-row">
                    <div class="col-md-12">
                        <div class="Restore" id="Restore-result"></div>
                    </div>
echel0n's avatar
echel0n committed
102
                </div>
103
104
            </fieldset>
        </div>
echel0n's avatar
echel0n committed
105
106
    </div><!-- /tab-pane2 //-->
</%block>