public static Nancy.ViewEngines.Razor.HelperResult BeginField(Nancy.ViewEngines.Razor.IHtmlString labelHtml, Nancy.ViewEngines.Razor.IHtmlString elementHtml, Nancy.ViewEngines.Razor.IHtmlString validationHtml, ModelMetadata fieldMetadata, IReadonlyFieldConfiguration fieldConfiguration) { #line default #line hidden return new Nancy.ViewEngines.Razor.HelperResult(__razor_helper_writer => { #line 68 "..\..\Templates\HtmlHelpers.cshtml" #line default #line hidden #line 69 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, BeginFieldInternal(labelHtml, elementHtml, validationHtml, fieldConfiguration, fieldMetadata)); #line default #line hidden #line 69 "..\..\Templates\HtmlHelpers.cshtml" #line default #line hidden WriteLiteralTo(__razor_helper_writer, " <dl>\r\n"); #line 71 "..\..\Templates\HtmlHelpers.cshtml" #line default #line hidden }); #line 71 "..\..\Templates\HtmlHelpers.cshtml" }
public virtual Nancy.ViewEngines.Razor.IHtmlString BeginField(Nancy.ViewEngines.Razor.IHtmlString labelHtml, Nancy.ViewEngines.Razor.IHtmlString elementHtml, Nancy.ViewEngines.Razor.IHtmlString validationHtml, ModelMetadata fieldMetadata, IReadonlyFieldConfiguration fieldConfiguration, bool isValid) { return HtmlHelpers.BeginField(labelHtml, elementHtml, validationHtml, fieldMetadata, fieldConfiguration); }
public static Nancy.ViewEngines.Razor.HelperResult BeginFieldInternal(Nancy.ViewEngines.Razor.IHtmlString labelHtml, Nancy.ViewEngines.Razor.IHtmlString elementHtml, Nancy.ViewEngines.Razor.IHtmlString validationHtml, IReadonlyFieldConfiguration fieldConfiguration, ModelMetadata fieldMetadata) { #line default #line hidden return new Nancy.ViewEngines.Razor.HelperResult(__razor_helper_writer => { #line 56 "..\..\Templates\HtmlHelpers.cshtml" #line default #line hidden WriteLiteralTo(__razor_helper_writer, " <dt>"); #line 57 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, labelHtml); #line default #line hidden #line 57 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, new HtmlString(fieldMetadata != null && fieldMetadata.IsRequired ? " <em class=\"required\">*</em>" : "")); #line default #line hidden WriteLiteralTo(__razor_helper_writer, "</dt>\r\n"); WriteLiteralTo(__razor_helper_writer, " <dd>\r\n"); WriteLiteralTo(__razor_helper_writer, " "); #line 59 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, GetPrependedHtml(fieldConfiguration)); #line default #line hidden #line 59 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, elementHtml); #line default #line hidden #line 59 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, GetAppendedHtml(fieldConfiguration)); #line default #line hidden #line 59 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, GetHint(fieldConfiguration)); #line default #line hidden WriteLiteralTo(__razor_helper_writer, " "); #line 59 "..\..\Templates\HtmlHelpers.cshtml" WriteTo(__razor_helper_writer, validationHtml); #line default #line hidden WriteLiteralTo(__razor_helper_writer, "\r\n"); #line 60 "..\..\Templates\HtmlHelpers.cshtml" #line default #line hidden }); #line 60 "..\..\Templates\HtmlHelpers.cshtml" }