summaryrefslogtreecommitdiffstats
path: root/modules-available/backup/templates/_page.html
blob: 4c6cade4fd54a4626efd0d5b767c6d8aa26b9a1d (plain) (blame)
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
<h1>{{lang_backupRestore}}</h1>

<form action="?do=Backup" method="post">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="backup">
	<div class="panel panel-default">
		<div class="panel-heading">{{lang_backup}}</div>
		<div class="panel-body {{perms.create.disabled}}">
			<p>{{lang_backupDescription}}</p>
			<p class="text-right">
				{{lang_lastBackup}}:
				{{^last_backup}}{{lang_unknown}}{{/last_backup}}
				{{last_backup}}
			</p>
			<button {{perms.create.disabled}} class="btn btn-primary pull-right" type="submit"><span class="glyphicon glyphicon-save"></span> {{lang_download}}</button>
		</div>
	</div>
</form>

<form action="?do=Backup" method="post" enctype="multipart/form-data">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="restore">
	<div class="panel panel-default">
		<div class="panel-heading">{{lang_restore}}</div>
		<div class="panel-body {{perms.restore.disabled}}">
			<p>{{lang_restoreDescription}}</p>
			<div class="input-group upload-ex">
				<input type="text" class="form-control" readonly placeholder="{{lang_selectFile}}">
				<span class="input-group-btn">
					<span class="btn btn-default btn-file">
						{{lang_browseForFile}}&hellip; <input type="file" name="backupfile" {{perms.restore.disabled}}>
					</span>
				</span>
			</div>
			<div>
				<div class="checkbox">
					<input type="checkbox" name="restore_openslx" checked="checked" id="id-sysonfig">
					<label for="id-sysonfig"><b>{{lang_restoreSystemConfig}}</b></label>
				</div>
				<p><i>{{lang_systemExplanation}}</i></p>
			</div>
			<div>
				<div class="checkbox">
					<input type="checkbox" name="restore_dozmod" checked="checked" id="id-dozmod">
					<label for="id-dozmod"><b>{{lang_restoreDozmodConfig}}</b></label>
				</div>
				<p><i>{{lang_dozmodExplanation}}</i></p>
			</div>
			<button {{perms.restore.disabled}} class="btn btn-primary pull-right" type="submit"><span class="glyphicon glyphicon-open"></span> {{lang_restore}}</button>
		</div>
	</div>
</form>