Search for both LeafInput and LeafInputData

This commit is contained in:
2023-02-02 09:35:22 -05:00
parent 8e16510ad9
commit 680f139aa5
24 changed files with 808 additions and 281 deletions
+12 -8
View File
@@ -2,7 +2,6 @@
@model LeafWeb.WebCms.Models.ChartViewModel
@{
Html.RequiresJs("~/scripts/Chart.js");
Html.RequiresCss("~/Content/jquery.fancybox.min.css");
Html.RequiresJs("~/scripts/jquery.fancybox.min.js");
}
@@ -16,16 +15,21 @@
@foreach (var cId in Model.AvailableCurveId)
{
<p>
<a href="@Url.Action("ChartCurve", new {leafInputId = Model.LeafInputId, curveId = cId})"
data-fancybox
data-options='{"buttons" : ["zoom", "download", "close"]}'
class="btn btn-outline-secondary">
<i class="fa fa-picture-o"></i>
@cId Chart
</a>
@ChartLink(Model.LeafInputId, cId)
</p>
}
</div>
</div>
</div>
</div>
@helper ChartLink(int leafInputId, string curveId)
{
<a href="@Url.Action("ChartCurve", new { leafInputId, curveId})"
data-fancybox
data-options='{"buttons" : ["zoom", "download", "close"]}'
class="btn btn-outline-secondary">
<i class="fa fa-picture-o"></i>
@curveId Chart
</a>
}