examples/form/dynamic.js
authorChris <chris@roojs.com>
Tue, 8 Oct 2013 09:35:58 +0000 (17:35 +0800)
committerChris <chris@roojs.com>
Tue, 8 Oct 2013 09:35:58 +0000 (17:35 +0800)
examples/form/dynamic.js

index 9b1d3ab..b34380f 100644 (file)
@@ -62,11 +62,6 @@ Roo.onReady(function(){
             fieldLabel: 'Pick a day',
             name: 'daypick',
             width:175
-        }),
-        new Roo.form.Signature({
-            fieldLabel: 'Signature',
-            name: 's',
-            width: 300
         })
     );
 
@@ -553,7 +548,30 @@ Roo.onReady(function(){
     });
     
     form6.render('form-ct6');
+    
+    
+    
+    /*
+     * ================ form 7 =======================
+     */
+    var form7 = new Roo.form.Form({
+        labelWidth: 75, // label settings here cascade unless overridden
+        url:'save-form.php'
+    });
+    form7.add(
+        new Roo.form.Signature({
+            fieldLabel: 'Signature',
+            name: 's',
+            width: 300
+        })
+    );
+
+    form7.addButton('Save');
+    form7.addButton('Cancel');
+
+    form7.render('form-ct7');
+    
+