summaryrefslogtreecommitdiff
path: root/swat/install
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-23 09:05:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:58 -0500
commit23924170cc1db85fecf21e0bfebf4d7b4ac42c25 (patch)
treebb92d3e689f89ce5e00ab380fdcbeeb3ec92a1e8 /swat/install
parent66526f5e4a9aba59d20a70829e920e9a4c3cc610 (diff)
downloadsamba-23924170cc1db85fecf21e0bfebf4d7b4ac42c25.tar.gz
samba-23924170cc1db85fecf21e0bfebf4d7b4ac42c25.tar.bz2
samba-23924170cc1db85fecf21e0bfebf4d7b4ac42c25.zip
r8720: split form object out to separate include file, and make it a real
object, with a display() method (This used to be commit c45c4e335ed5da1e2e43ffcb9e8d6c32678faa3c)
Diffstat (limited to 'swat/install')
-rw-r--r--swat/install/newuser.esp3
-rw-r--r--swat/install/provision.esp3
2 files changed, 4 insertions, 2 deletions
diff --git a/swat/install/newuser.esp b/swat/install/newuser.esp
index 42c109df6b..afcd9e4d55 100644
--- a/swat/install/newuser.esp
+++ b/swat/install/newuser.esp
@@ -1,5 +1,6 @@
<% page_header("columns", "Add a user", "/install/menu.js");
+ include("/scripting/forms.js");
libinclude("base.js");
libinclude("provision.js");
%>
@@ -34,7 +35,7 @@ if (form['submit'] == "Add" &&
}
newuser(form.USERNAME, form.UNIXNAME, form.PASSWORD, writefln);
} else {
- display_form(f);
+ f.display();
}
%>
diff --git a/swat/install/provision.esp b/swat/install/provision.esp
index 3eb7ba720d..12e378475a 100644
--- a/swat/install/provision.esp
+++ b/swat/install/provision.esp
@@ -1,5 +1,6 @@
<% page_header("columns", "Provisioning", "/install/menu.js");
+ include("/scripting/forms.js");
libinclude("base.js");
libinclude("provision.js");
%>
@@ -58,7 +59,7 @@ lp.set("realm", subobj.REALM);
if (form['submit'] == "Provision") {
provision(subobj, writefln);
} else {
- display_form(f);
+ f.display();
}
%>