Search for both LeafInput and LeafInputData
This commit is contained in:
@@ -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>
|
||||
}
|
||||
Reference in New Issue
Block a user