public override void Execute() { WriteLiteral("\r\n"); #line 6 "..\..\UserQueries\Views\QueryFilter.cshtml" using (var e = Html.TypeContext <QueryFilterEmbedded>()) { e.FormGroupStyle = FormGroupStyle.None; #line default #line hidden #line 9 "..\..\UserQueries\Views\QueryFilter.cshtml" Write(Html.QueryTokenDNBuilder(e.SubContext(a => a.Token), SearchControlHelper.GetQueryTokenBuilderSettings( (QueryDescription)ViewData[ViewDataKeys.QueryDescription], SubTokensOptions.CanAnyAll | SubTokensOptions.CanElement))); #line default #line hidden #line 10 "..\..\UserQueries\Views\QueryFilter.cshtml" #line default #line hidden #line 12 "..\..\UserQueries\Views\QueryFilter.cshtml" Write(Html.ValueLine(e, f => f.Operation)); #line default #line hidden #line 12 "..\..\UserQueries\Views\QueryFilter.cshtml" #line default #line hidden #line 13 "..\..\UserQueries\Views\QueryFilter.cshtml" Write(Html.ValueLine(e, f => f.ValueString, vl => vl.ValueHtmlProps["size"] = 20)); #line default #line hidden #line 13 "..\..\UserQueries\Views\QueryFilter.cshtml" } #line default #line hidden }
public override void Execute() { #line 5 "..\..\UserQueries\Views\QueryColumn.cshtml" using (var e = Html.TypeContext <QueryColumnEmbedded>()) { e.FormGroupStyle = FormGroupStyle.None; #line default #line hidden #line 8 "..\..\UserQueries\Views\QueryColumn.cshtml" Write(Html.ValueLine(e, f => f.DisplayName, vl => vl.ValueHtmlProps["size"] = 20)); #line default #line hidden #line 8 "..\..\UserQueries\Views\QueryColumn.cshtml" #line default #line hidden #line 10 "..\..\UserQueries\Views\QueryColumn.cshtml" Write(Html.QueryTokenDNBuilder(e.SubContext(a => a.Token), SearchControlHelper.GetQueryTokenBuilderSettings((QueryDescription)ViewData[ViewDataKeys.QueryDescription], SubTokensOptions.CanElement))); #line default #line hidden #line 11 "..\..\UserQueries\Views\QueryColumn.cshtml" } #line default #line hidden }
public override void Execute() { WriteLiteral("\r\n"); #line 5 "..\..\Mailing\Views\EmailTemplateRecipient.cshtml" using (var tc = Html.TypeContext <EmailTemplateRecipientEntity>()) { using (var sc = tc.SubContext()) { sc.LabelColumns = new BsColumn(4); #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"row\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"col-sm-2\""); WriteLiteral(" style=\"text-align: right;\""); WriteLiteral(">\r\n <label>\r\n"); WriteLiteral(" "); #line 13 "..\..\Mailing\Views\EmailTemplateRecipient.cshtml" Write(Html.ValueLine(tc, c => c.Kind, vl => vl.FormGroupStyle = FormGroupStyle.None)); #line default #line hidden WriteLiteral("\r\n </label>\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-sm-5\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 17 "..\..\Mailing\Views\EmailTemplateRecipient.cshtml" Write(Html.ValueLine(sc, c => c.EmailAddress)); #line default #line hidden WriteLiteral("\r\n </div>\r\n <div"); WriteLiteral(" class=\"col-sm-5\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 20 "..\..\Mailing\Views\EmailTemplateRecipient.cshtml" Write(Html.ValueLine(sc, c => c.DisplayName)); #line default #line hidden WriteLiteral("\r\n </div>\r\n </div>\r\n"); #line 23 "..\..\Mailing\Views\EmailTemplateRecipient.cshtml" } using (var qtTc = tc.SubContext(etTc => etTc.Token)) { #line default #line hidden #line 27 "..\..\Mailing\Views\EmailTemplateRecipient.cshtml" Write(Html.FormGroup(tc, null, "Email Owner", Html.QueryTokenDNBuilder(qtTc, SearchControlHelper.GetQueryTokenBuilderSettings( (QueryDescription)ViewData[ViewDataKeys.QueryDescription], SubTokensOptions.CanElement)))); #line default #line hidden #line 28 "..\..\Mailing\Views\EmailTemplateRecipient.cshtml" } } #line default #line hidden }
public ContentResult NewSubTokensCombo(string webQueryName, string tokenName, string prefix, int options) { object queryName = Finder.ResolveQueryName(webQueryName); QueryDescription qd = DynamicQueryManager.Current.QueryDescription(queryName); var token = QueryUtils.Parse(tokenName, qd, (SubTokensOptions)options); var combo = CreateHtmlHelper(this).QueryTokenBuilderOptions(token, new Context(null, prefix), SearchControlHelper.GetQueryTokenBuilderSettings(qd, (SubTokensOptions)options)); return(Content(combo.ToHtmlString())); }
public override void Execute() { #line 5 "..\..\Signum\Views\FilterBuilder.cshtml" List <FilterOption> filterOptions = (List <FilterOption>)ViewData[ViewDataKeys.FilterOptions]; QueryDescription queryDescription = (QueryDescription)ViewData[ViewDataKeys.QueryDescription]; bool filtersVisible = (bool?)ViewData[ViewDataKeys.FiltersVisible] ?? true; bool showAddColumn = (bool?)ViewData[ViewDataKeys.ShowAddColumn] ?? false; if (filterOptions.HasItems()) { FilterOption.SetFilterTokens(filterOptions, queryDescription, canAggregate: false); } #line default #line hidden WriteLiteral("\r\n\r\n<div"); WriteAttribute("id", Tuple.Create(" id=\"", 636), Tuple.Create("\"", 675) #line 16 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 641), Tuple.Create <System.Object, System.Int32>(Model.Compose("tblFilterBuilder") #line default #line hidden , 641), false) ); WriteLiteral(" class=\"panel panel-default sf-filters form-xs\""); WriteLiteral(" "); #line 16 "..\..\Signum\Views\FilterBuilder.cshtml" Write(filtersVisible ? "" : "style=display:none"); #line default #line hidden WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"panel-heading sf-filters-body\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 18 "..\..\Signum\Views\FilterBuilder.cshtml" Write(Html.QueryTokenBuilder(null, new Context(Model, "tokenBuilder"), (QueryTokenBuilderSettings)ViewData[ViewDataKeys.QueryTokenSettings] ?? SearchControlHelper.GetQueryTokenBuilderSettings(queryDescription, SubTokensOptions.CanAnyAll | SubTokensOptions.CanElement))); #line default #line hidden WriteLiteral("\r\n\r\n <div"); WriteLiteral(" class=\"btn-group\""); WriteLiteral(">\r\n <a"); WriteAttribute("id", Tuple.Create(" id=\"", 1152), Tuple.Create("\"", 1187) #line 22 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 1157), Tuple.Create <System.Object, System.Int32>(Model.Compose("btnAddFilter") #line default #line hidden , 1157), false) ); WriteLiteral(" class=\"sf-query-button sf-add-filter btn btn-default btn-sm\""); WriteAttribute("title", Tuple.Create(" title=\"", 1249), Tuple.Create("\"", 1296) #line 22 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 1257), Tuple.Create <System.Object, System.Int32>(SearchMessage.AddFilter.NiceToString() #line default #line hidden , 1257), false) ); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"glyphicon glyphicon-arrow-down\""); WriteLiteral("></span>\r\n"); WriteLiteral(" "); #line 24 "..\..\Signum\Views\FilterBuilder.cshtml" Write(SearchMessage.AddFilter.NiceToString()); #line default #line hidden WriteLiteral("\r\n </a>\r\n </div>\r\n\r\n"); #line 28 "..\..\Signum\Views\FilterBuilder.cshtml" #line default #line hidden #line 28 "..\..\Signum\Views\FilterBuilder.cshtml" if (showAddColumn) { #line default #line hidden WriteLiteral(" <div"); WriteLiteral(" class=\"btn-group\""); WriteLiteral(">\r\n <a"); WriteAttribute("id", Tuple.Create(" id=\"", 1558), Tuple.Create("\"", 1593) #line 31 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 1563), Tuple.Create <System.Object, System.Int32>(Model.Compose("btnAddColumn") #line default #line hidden , 1563), false) ); WriteLiteral(" class=\"sf-query-button sf-add-column btn btn-default btn-sm\""); WriteAttribute("title", Tuple.Create(" title=\"", 1655), Tuple.Create("\"", 1702) #line 31 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 1663), Tuple.Create <System.Object, System.Int32>(SearchMessage.AddColumn.NiceToString() #line default #line hidden , 1663), false) ); WriteLiteral(">\r\n <span"); WriteLiteral(" class=\"glyphicon glyphicon-arrow-right\""); WriteLiteral("></span>\r\n"); WriteLiteral(" "); #line 33 "..\..\Signum\Views\FilterBuilder.cshtml" Write(SearchMessage.AddColumn.NiceToString()); #line default #line hidden WriteLiteral("\r\n </a>\r\n </div>\r\n"); #line 36 "..\..\Signum\Views\FilterBuilder.cshtml" } #line default #line hidden WriteLiteral(" </div>\r\n\r\n <div"); WriteLiteral(" class=\"panel-body sf-filters-list table-responsive\""); WriteLiteral(" style=\"overflow-x: visible;\""); WriteLiteral(">\r\n <div"); WriteLiteral(" class=\"sf-explanation\""); WriteAttribute("style", Tuple.Create(" style=\"", 2036), Tuple.Create("\"", 2121) #line 40 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 2044), Tuple.Create <System.Object, System.Int32>((filterOptions == null || filterOptions.Count == 0) ? "" : "display:none;" #line default #line hidden , 2044), false) ); WriteLiteral(">"); #line 40 "..\..\Signum\Views\FilterBuilder.cshtml" Write(SearchMessage.NoFiltersSpecified.NiceToString()); #line default #line hidden WriteLiteral("</div>\r\n <table"); WriteAttribute("id", Tuple.Create(" id=\"", 2193), Tuple.Create("\"", 2226) #line 41 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 2198), Tuple.Create <System.Object, System.Int32>(Model.Compose("tblFilters") #line default #line hidden , 2198), false) ); WriteAttribute("style", Tuple.Create(" style=\"", 2227), Tuple.Create("\"", 2313) #line 41 "..\..\Signum\Views\FilterBuilder.cshtml" , Tuple.Create(Tuple.Create("", 2235), Tuple.Create <System.Object, System.Int32>((filterOptions == null || filterOptions.Count == 0) ? "display:none" : null #line default #line hidden , 2235), false) ); WriteLiteral(" class=\"table\""); WriteLiteral(">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n " + " <th"); WriteLiteral(" class=\"sf-filter-field-header\""); WriteLiteral(">\r\n"); WriteLiteral(" "); #line 46 "..\..\Signum\Views\FilterBuilder.cshtml" Write(SearchMessage.Field.NiceToString()); #line default #line hidden WriteLiteral("\r\n </th>\r\n <th>\r\n"); WriteLiteral(" "); #line 49 "..\..\Signum\Views\FilterBuilder.cshtml" Write(SearchMessage.Operation.NiceToString()); #line default #line hidden WriteLiteral("\r\n </th>\r\n <th>\r\n"); WriteLiteral(" "); #line 52 "..\..\Signum\Views\FilterBuilder.cshtml" Write(SearchMessage.Value.NiceToString()); #line default #line hidden WriteLiteral("\r\n </th>\r\n </tr>\r\n </thead>\r\n " + " <tbody>\r\n"); WriteLiteral(" "); #line 57 "..\..\Signum\Views\FilterBuilder.cshtml" Write(Html.Partial(Finder.Manager.FilterRowsView, Model)); #line default #line hidden WriteLiteral("\r\n </tbody>\r\n </table>\r\n </div>\r\n\r\n</div>\r\n"); }