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")
     }));
 }
Beispiel #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")
         });
 }
 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)
         }
                      )
     }
                       ));
 }
Beispiel #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)
                     }
                 )
             }
         );
 }