r12892: Add a 'Migrate from Windows' page to our installation section in SWAT.
[kai/samba.git] / swat / esptest / exception.esp
index cfd0f312fab86ab928376ca99b9534baebd1ba0b..ff28d6318e776241e0687d2b0572c834d6855628 100644 (file)
@@ -1,13 +1,17 @@
-<% page_header("columns", "ESP Exception test"); %>
+<% page_header("columns", "ESP Exception test", "esptest"); 
+   include("/scripting/forms.js");
+%>
 
 <h1>Samba4 exception test</h1>
 
-<form name="ExceptionTest" method="POST" action="@@request['SCRIPT_NAME']"> 
-    <input name="submit" type="submit" value="Generate Exception">
-    <input name="submit" type="submit" value="No Exception">
-</form>
 
 <%
+var f = FormObj("ExceptionTest", 0, 2);
+f.submit[0] = "Generate Exception";
+f.submit[1] = "No Exception";
+
+f.display();
+
 if (request['REQUEST_METHOD'] == "POST") {
        function TestFunction(arg1, arg2) {
                 return "OK";