diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-08-28 22:17:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:34:53 -0500 |
commit | d6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7 (patch) | |
tree | 2d8964994e7b8c282c3e8ee87480bccdc8585c4a /swat | |
parent | 8b15ef881d21b713817bb3aa3599288ecdde0d28 (diff) | |
download | samba-d6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7.tar.gz samba-d6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7.tar.bz2 samba-d6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7.zip |
r9718: Work a bit on the SWAT interface
(This used to be commit b1844905d2c1ca26aef0ccba799ff16383348fc1)
Diffstat (limited to 'swat')
-rw-r--r-- | swat/install/samba3.esp | 40 | ||||
-rw-r--r-- | swat/menu.js | 3 |
2 files changed, 42 insertions, 1 deletions
diff --git a/swat/install/samba3.esp b/swat/install/samba3.esp new file mode 100644 index 0000000000..ead694a107 --- /dev/null +++ b/swat/install/samba3.esp @@ -0,0 +1,40 @@ +<% page_header("columns", "Upgrade", "install"); + + include("/scripting/forms.js"); + libinclude("base.js"); + libinclude("provision.js"); + libinclude("samba3.js"); +%> + +<h1>Import from Samba3</h1> + +<% +var f = FormObj("Import from Samba3", 0, 2); +var i; + +f.add("SMBCONF", "smb.conf file"); +f.add("LIBDIR", "Lib directory"); +f.submit[0] = "Import"; +f.submit[1] = "Cancel"; + +if (form['submit'] == "Cancel") { + redirect("/"); +} + +if (form['submit'] == "Import") { + for (r in form) { + subobj[r] = form[r]; + } +} + +f.element[0].value = "/etc/samba/smb.conf"; +f.element[1].value = "/var/lib/samba"; + +if (form['submit'] == "import") { + // provision(subobj, writefln, false); +} else { + f.display(); +} +%> + +<% page_footer(); %> diff --git a/swat/menu.js b/swat/menu.js index 83529825f1..e28160e16f 100644 --- a/swat/menu.js +++ b/swat/menu.js @@ -39,7 +39,8 @@ swat_menus.esptest = simple_menu( swat_menus.install = simple_menu( "Installation", "Provisioning", session_uri("/install/provision.esp"), - "New User", session_uri("/install/newuser.esp")); + "New User", session_uri("/install/newuser.esp"), + "Import from Samba3", session_uri("/install/samba3.esp")); swat_menus.nbt_server = simple_menu( |