Example #1
0
 public object PostExampleForm(ZooModel model)
 {
     return("" + MasterPage("Hey", new[]
     {
         H.p("You posted the following values: "), H.p(model.Giraffe), H.p(model.Elephant),
         H.A("/", "Back Home")
     }));
 }
Example #2
0
 public object PostExampleForm(ZooModel model)
 {
     return "" + MasterPage("Hey", new[]
         {
             H.p("You posted the following values: "), H.p(model.Giraffe), H.p(model.Elephant),
             H.A("/", "Back Home")
         });
 }
Example #3
0
 object ExampleForm(ZooModel model)
 {
     return("" +
            MasterPage("Form Example",
                       new[] {
         H.p("Form entry: "),
         StandardForm(() => PostExampleForm(null), null, new[]
         {
             new TextInput(() => model.Giraffe),
             new TextInput(() => model.Elephant)
         }
                      )
     }
                       ));
 }
Example #4
0
 object ExampleForm(ZooModel model)
 {
     return "" +
         MasterPage ("Form Example",
             new[] {
                 H.p("Form entry: "),
                 StandardForm(() => PostExampleForm(null), null, new[]
                     {
                         new TextInput (() => model.Giraffe),
                         new TextInput (() => model.Elephant)
                     }
                 )
             }
         );
 }