public static System.Web.WebPages.HelperResult Grid(string id, SelectList choices, SelectList prompts, Grid<string> values, string label, string summary, bool readOnly = false) {
return new System.Web.WebPages.HelperResult(__razor_helper_writer => {



#line 196 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                                                                                                                                           
    var cellClass = readOnly ? "readonlyTd" : "textTd";

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "    <table summary=\"");



#line 198 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, summary);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" id=\"");



#line 198 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, id);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\">\r\n        <tr>\r\n            <td>&nbsp;</td>\r\n");



#line 201 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
             foreach(var choice in choices) {

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "                <th scope=\"col\">");



#line 202 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, choice.Text);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "</th>\r\n");



#line 203 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
            }

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "        </tr>\r\n");



#line 205 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
         foreach(var prompt in prompts) {
            var printRow = !readOnly
                || !string.IsNullOrWhiteSpace(prompt.Text)
                || choices.Any(choice => !string.IsNullOrWhiteSpace(values.Cell(prompt.Value, choice.Value)));
            if (printRow) {

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "                <tr>\r\n                    <th scope=\"row\">");



#line 211 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, prompt.Text);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "</th>\r\n");



#line 212 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                     foreach(var choice in choices) {
                        var cellId = string.Format("{0}.{1}.{2}", id, prompt.Value, choice.Value);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "                        <td class=\"");



#line 214 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, cellClass);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\">");



#line 214 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
     WebViewPage.WriteTo(@__razor_helper_writer, new MvcHtmlString(readOnly ? "" : "<label>"));

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "<span class=\"reader\">");



#line 214 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                                                                         WebViewPage.WriteTo(@__razor_helper_writer, label.Replace("%prompt%", prompt.Text).Replace("%choice%", choice.Text));

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "</span>\r\n");



#line 215 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                         if (readOnly)
                        {
                            
#line default
#line hidden


#line 217 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, values.Cell(prompt.Value, choice.Value));

#line default
#line hidden


#line 217 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                                                                    
                        }
                        else
                        {

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "                            <input type=\"text\" id=\"");



#line 221 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
         WebViewPage.WriteTo(@__razor_helper_writer, cellId.Replace(".", "_"));

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" name=\"");



#line 221 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                                           WebViewPage.WriteTo(@__razor_helper_writer, cellId);

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" value=\"");



#line 221 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                                                           WebViewPage.WriteTo(@__razor_helper_writer, values.Cell(prompt.Value, choice.Value));

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "\" />\r\n");



#line 222 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                        }

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "                        ");



#line 223 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
WebViewPage.WriteTo(@__razor_helper_writer, new MvcHtmlString(readOnly ? "" : "</label>"));

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "</td>\r\n");



#line 224 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
                    }

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "                </tr>\r\n");



#line 226 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"
            }
        }

#line default
#line hidden

WebViewPage.WriteLiteralTo(@__razor_helper_writer, "    </table>\r\n");



#line 229 "..\..\FlowForms\Helpers\HelperDefinitions.cshtml"

#line default
#line hidden

});

}