From 97ff4a156ff1aa6a4d2ab65ab13d12b4eb2651e2 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 15 Jul 2008 08:47:36 +0000 Subject: Split up admin-core into admin-core and admin-full, preparing admin-mini --- .../admin-full/luasrc/view/admin_system/editor.htm | 28 +++++++ .../admin-full/luasrc/view/admin_system/index.htm | 20 +++++ .../admin-full/luasrc/view/admin_system/ipkg.htm | 40 ++++++++++ .../luasrc/view/admin_system/packages.htm | 91 ++++++++++++++++++++++ .../admin-full/luasrc/view/admin_system/passwd.htm | 49 ++++++++++++ .../admin-full/luasrc/view/admin_system/reboot.htm | 25 ++++++ .../luasrc/view/admin_system/sshkeys.htm | 39 ++++++++++ .../luasrc/view/admin_system/upgrade.htm | 47 +++++++++++ 8 files changed, 339 insertions(+) create mode 100644 modules/admin-full/luasrc/view/admin_system/editor.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/index.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/ipkg.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/packages.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/passwd.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/reboot.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/sshkeys.htm create mode 100644 modules/admin-full/luasrc/view/admin_system/upgrade.htm (limited to 'modules/admin-full/luasrc/view/admin_system') diff --git a/modules/admin-full/luasrc/view/admin_system/editor.htm b/modules/admin-full/luasrc/view/admin_system/editor.htm new file mode 100644 index 0000000000..bac1729d04 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/editor.htm @@ -0,0 +1,28 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:texteditor%>

+
+
<%:file%>: +<% if msg then %><%:error%>: <%=msg%><% end %>
+
+
+
+
+ + +
+
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/index.htm b/modules/admin-full/luasrc/view/admin_system/index.htm new file mode 100644 index 0000000000..3138903c48 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/index.htm @@ -0,0 +1,20 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_i_system1%>

+

<%:a_s_i_system2%>

+

<%:a_s_i_system3%>

+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/ipkg.htm b/modules/admin-full/luasrc/view/admin_system/ipkg.htm new file mode 100644 index 0000000000..0cd87d990b --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/ipkg.htm @@ -0,0 +1,40 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_p_ipkg%>

+ +
+ +
<%:a_s_p_ipkg_pkglists%>:src Name URL
+
<%:a_s_p_ipkg_targets%>:dest Name Pfad
+ +
+ +
+
+
+
+ +
+
+
+
+ + +
+ <% if msg then %>
<%:error%>: <%=msg%>
<% end %> +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/packages.htm b/modules/admin-full/luasrc/view/admin_system/packages.htm new file mode 100644 index 0000000000..0f8f2c16eb --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/packages.htm @@ -0,0 +1,91 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_packages%>

+ +
+ +<% if install or remove or update or upgrade then %> +
<%:status%>:
+<% if update then %> + <%:a_s_packages_update%>: <% if update == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=update%>)<% end %>
+<% end %> +<% if upgrade then%> + <%:a_s_packages_upgrade%>: <% if upgrade == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=upgrade%>)<% end %>
+<% end %> +<% if install then for k,v in pairs(install) do %> + <%:a_s_packages_install%> '<%=k%>': <% if v == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=v%>)<% end %>
+<% end end %> +<% if remove then for k,v in pairs(remove) do %> + <%:a_s_packages_remove%> '<%=k%>': <% if v == 0 then %><%:ok%><% else %><%:error%> (<%:code%> <%=v%>)<% end %>
+<% end end %> +
+
+<% end %> + + + +
+
+ +
+
+ <%:a_s_packages_installurl%>:
+ + +
+ +
+
+ +
+ <%:filter%>: + + + +
+ +
+
+ +
+ + + + + + + + + <% for k, pkg in pairs(pkgs) do %> + + + + + + + + <% end %> +
<%:a_s_packages_name%><%:version%><%:install%><%:delete%><%:descr%>
<%=pkg.Package%><%=pkg.Version%><% if not pkg.Status or not pkg.Status.installed then %><% else %><%:installed%><% end %><% if pkg.Status and pkg.Status.installed then %><% else %><%:notinstalled%><% end %><%=pkg.Description%>
+
+
+ +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/passwd.htm b/modules/admin-full/luasrc/view/admin_system/passwd.htm new file mode 100644 index 0000000000..176abaea20 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/passwd.htm @@ -0,0 +1,49 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_changepw%>

+

<%:a_s_changepw1%>

+

+<% if stat then %> + <% if stat == 0 then %> + <%:a_s_changepw_changed%>! + <% elseif stat == 10 then %> + <%:a_s_changepw_nomatch%>! + <% else %> + <%:unknownerror%>! + <% end %> +<% end %> +<% if not stat or stat == 10 then %> +
+
+
+
<%:password%>
+
+
+
+
<%:confirmation%>
+
+
+
+
+ + +
+
+
+<% end %> +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/reboot.htm b/modules/admin-full/luasrc/view/admin_system/reboot.htm new file mode 100644 index 0000000000..3ddfa5880e --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/reboot.htm @@ -0,0 +1,25 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:reboot%>

+

<%:a_s_reboot1%>

+<% if not reboot then %> +

<%:a_s_reboot_do%>

+<% else %> +

<%:a_s_reboot_running%>

+ +<% end %> +<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/sshkeys.htm b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm new file mode 100644 index 0000000000..9a08af9e3b --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/sshkeys.htm @@ -0,0 +1,39 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_sshkeys%>

+ +
+ +
<%:a_s_sshkeys1%>
+ +
+ +
+
+
+
+ +
+
+
+
+ + +
+ <% if msg then %>
<%:error%>: <%=msg%>
<% end %> +
+<%+footer%> \ No newline at end of file diff --git a/modules/admin-full/luasrc/view/admin_system/upgrade.htm b/modules/admin-full/luasrc/view/admin_system/upgrade.htm new file mode 100644 index 0000000000..16ba50cd98 --- /dev/null +++ b/modules/admin-full/luasrc/view/admin_system/upgrade.htm @@ -0,0 +1,47 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +$Id$ + +-%> +<%+header%> +

<%:system%>

+

<%:a_s_flash%>

+

<%:a_s_flash_upgrade1%>

+
+<% if sysupgrade and not ret then %> +
" enctype="multipart/form-data"> +
+
+
<%:a_s_flash_fwimage%>
+
+
+
+
+ + <%:a_s_flash_keepcfg%> +
+
+
+ +
+
+
+<% elseif ret then %> + <% if ret == 0 then %> +
<%:a_s_flash_flashed%>
+ <% else %> +
<%:a_s_flash_flasherr%>! (<%:code%> <%=ret%>)
+ <% end %> +<% else %> +
<%:a_s_flash_notimplemented%>
+<% end %> +<%+footer%> \ No newline at end of file -- cgit v1.2.3