luci2: add missing depends to OpenWrt Makefile
[project/luci2/ui.git] / luci2 / htdocs / luci2 / template / system.upgrade.htm
1 <ul class="nav nav-tabs">
2         <li class="active"><a data-toggle="tab" href="#actions"><%:Actions%></a></li>
3         <li><a data-toggle="tab" href="#config"><%:Configuration%></a></li>
4 </ul>
5
6 <div class="tab-content">
7         <div class="tab-pane active" id="actions">
8                 <div class="panel panel-default">
9                         <div class="panel-heading">
10                                 <h3 class="panel-title"><%:Backup / Restore%></h3>
11                         </div>
12                         <div class="panel-body">
13                                 <p><%:Click "Generate archive" to download a tar archive of the current configuration files. To reset the firmware to its initial state, click "Perform reset" (only possible with squashfs images).%></p>
14                                 <p>
15                                         <form action="/cgi-bin/luci-backup" method="post" style="display:inline">
16                                                 <input type="hidden" name="sessionid" />
17                                                 <input class="btn btn-primary" type="button" id="btn_backup" value="<%:Generate archive%>" />
18                                         </form>
19                                         <input class="btn btn-danger" type="button" id="btn_reset" value="<%:Perform reset%>" />
20                                 </p>
21
22                                 <p><%:To restore configuration files, you can upload a previously generated backup archive here.%></p>
23                                 <p>
24                                         <input class="btn btn-primary" type="button" id="btn_restore" value="<%:Upload archive...%>" />
25                                 </p>
26                         </div>
27                 </div>
28
29                 <div class="panel panel-default">
30                         <div class="panel-heading">
31                                 <h3 class="panel-title"><%:Flash new firmware image%></h3>
32                         </div>
33                         <div class="panel-body">
34                                 <p><%:Upload a sysupgrade-compatible image here to replace the running firmware. Check "Keep settings" to retain the current configuration (requires an OpenWrt compatible firmware image).%></p>
35                                 <p>
36                                         <input class="btn btn-primary" type="button" id="btn_flash" value="<%:Flash image...%>" />
37                                 </p>
38                         </div>
39                 </div>
40         </div>
41
42         <div class="tab-pane" id="config">
43                 <div class="panel">
44                         <textarea class="form-control"></textarea>
45                 </div>
46                 <div class="pull-right">
47                         <input class="btn btn-primary" type="button" id="btn_save" value="<%:Save%>" />
48                         <input class="btn btn-default" type="button" id="btn_list" value="<%:Show current backup file list …%>" />
49                 </div>
50         </div>
51 </div>