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>
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>
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>
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%>" />
19 <input class=
"btn btn-danger" type=
"button" id=
"btn_reset" value=
"<%:Perform reset%>" />
22 <p><%:To restore configuration files, you can upload a previously generated backup archive here.%
></p>
24 <input class=
"btn btn-primary" type=
"button" id=
"btn_restore" value=
"<%:Upload archive...%>" />
29 <div class=
"panel panel-default">
30 <div class=
"panel-heading">
31 <h3 class=
"panel-title"><%:Flash new firmware image%
></h3>
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>
36 <input class=
"btn btn-primary" type=
"button" id=
"btn_flash" value=
"<%:Flash image...%>" />
42 <div class=
"tab-pane" id=
"config">
44 <textarea class=
"form-control"></textarea>
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 …%>" />