Exemplo n.º 1
0
 public FubuHtmlDocument <IgnoredModel> get_ignored_model(IgnoredModel model)
 {
     _page.Add(new HtmlTag("h1").Text("Ignored Validation Rules"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
Exemplo n.º 2
0
 public FubuHtmlDocument <InlineModel> get_inline_model(InlineModel request)
 {
     _page.Add(new HtmlTag("h1").Text("Inline Errors"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
Exemplo n.º 3
0
 public FubuContinuation CreateCombinations()
 {
     var doc = new FubuHtmlDocument(_serviceLocator);
     doc.WriteCssTags("site-styles");
     doc.WriteScriptTags("site-scripts");
     return FubuContinuation.RedirectTo<HomeAction>(x => x.Home());
 }
Exemplo n.º 4
0
 public FubuHtmlDocument <AccessorOverridesModel> get_accessor_validation(AccessorOverridesModel request)
 {
     _page.Add(new HtmlTag("h1").Text("Accessor Overrides Validation Rules"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
 public FubuHtmlDocument <ClassValidationModel> get_class_validation(ClassValidationModel request)
 {
     _page.Add(new HtmlTag("h1").Text("Class Validation Rules"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
Exemplo n.º 6
0
 public FubuHtmlDocument <IntegrationModel> get_integration(IntegrationModel request)
 {
     _page.Add(new HtmlTag("h1").Text("All The Rules"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
Exemplo n.º 7
0
 public FubuHtmlDocument <User> get_users_create(User request)
 {
     _page.Add(new HtmlTag("h1").Text("Create User"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
Exemplo n.º 8
0
 public FubuHtmlDocument <SelectTagModel> get_select(SelectTagModel model)
 {
     _page.Add(new HtmlTag("h1").Text("All The Rules"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
Exemplo n.º 9
0
 public FubuHtmlDocument <ServerSideModel> get_server_side(ServerSideModel model)
 {
     _page.Add(new HtmlTag("h1").Text("Server Side Rules"));
     _page.Add(createForm());
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
 public FubuHtmlDocument <ElementHandler> get_elementHandlers_create(ElementHandler request)
 {
     _page.Add(new HtmlTag("h1").Text("ValidationElementHandler test cases"));
     _page.Add(CreateForm());
     _page.Add(new TextboxTag().Attr("name", "NoValidation"));
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
Exemplo n.º 11
0
 public FubuHtmlDocument <IgnoredModel> get_ignored(IgnoredModel input)
 {
     _ignoredPage.Add(new HtmlTag("h1").Text("Ignored Form"));
     _ignoredPage.Add(createIgnoredForm());
     _ignoredPage.Asset("recorder.js");
     _ignoredPage.Add(_ignoredPage.WriteScriptTags());
     return(_ignoredPage);
 }
Exemplo n.º 12
0
 public FubuHtmlDocument <AjaxIn> get_ajax(AjaxIn input)
 {
     _ajaxPage.Add(new HtmlTag("h1").Text("Ajax Form"));
     _ajaxPage.Add(createAjaxForm());
     _ajaxPage.Asset("recorder.js");
     _ajaxPage.Add(_ajaxPage.WriteScriptTags());
     return(_ajaxPage);
 }
Exemplo n.º 13
0
 public FubuHtmlDocument <StandardIn> get_standard(StandardIn input)
 {
     _standardPage.Add(new HtmlTag("h1").Text("Standard Form"));
     _standardPage.Add(createStandardForm());
     _standardPage.Asset("recorder.js");
     _standardPage.Add(_standardPage.WriteScriptTags());
     return(_standardPage);
 }
Exemplo n.º 14
0
 public FubuHtmlDocument <AjaxModel> get_ajax(AjaxModel request)
 {
     _page.Add(new HtmlTag("h1").Text("Ajax Form"));
     _page.Asset("ajaxTester.js");
     _page.Add(createForm());
     _page.Add(new LiteralTag(_page.EndForm().ToString()));
     _page.Add(_page.WriteScriptTags());
     return(_page);
 }
 public static void WriteScriptsToBody(this FubuHtmlDocument document)
 {
     document.Body.Append(document.WriteScriptTags());
 }