Beispiel #1
0
        private static HtmlTag toTag(ValueSourceReport report)
        {
            var table = new DetailsTableTag();

            foreach (var key in report.Values.GetAllKeys().OrderBy(x => x))
            {
                table.AddDetail(key, string.Join("; ", report.Values[key]));
            }

            var tag = new CollapsibleTag(report.ElementId(), report.Header());

            tag.AppendContent(table);

            return(tag.PrependAnchor());
        }
Beispiel #2
0
 public static string ElementId(this ValueSourceReport report)
 {
     return("request-data-" + report.Name);
 }
Beispiel #3
0
 public static string Header(this ValueSourceReport report)
 {
     return(report.Name.SplitPascalCase());
 }