r8722: make the menu handling considerably saner and easier to follow. The whole
[sfrench/samba-autobuild/.git] / swat / install / newuser.esp
index 42c109df6bc58ff18f5ebd8409adb4b0bc8b5fc1..9baba7c6f4a518184a435323455fe3175ccc1637 100644 (file)
@@ -1,5 +1,6 @@
-<% page_header("columns", "Add a user", "/install/menu.js"); 
+<% page_header("columns", "Add a user", "install"); 
 
 
+  include("/scripting/forms.js");
   libinclude("base.js");
   libinclude("provision.js");
 %>
   libinclude("base.js");
   libinclude("provision.js");
 %>
@@ -34,7 +35,7 @@ if (form['submit'] == "Add" &&
        }
        newuser(form.USERNAME, form.UNIXNAME, form.PASSWORD, writefln);
 } else {
        }
        newuser(form.USERNAME, form.UNIXNAME, form.PASSWORD, writefln);
 } else {
-       display_form(f);
+       f.display();
 }
 %>
 
 }
 %>