Update Charting to use fancybox
This commit is contained in:
@@ -1,23 +1,42 @@
|
||||
@using ClientDependency.Core.Mvc
|
||||
@model LeafWeb.WebCms.Models.ChartViewModel
|
||||
@{
|
||||
var selectText = "Select CurveId";
|
||||
Html.RequiresCss("~/Content/glyphicon_animate.css");
|
||||
Html.RequiresJs("~/scripts/Chart.js");
|
||||
}
|
||||
|
||||
Html.RequiresCss("~/Content/jquery.fancybox.min.css");
|
||||
Html.RequiresJs("~/scripts/jquery.fancybox.min.js");
|
||||
}
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div>Identifier: <strong>@Model.LeafInputIdentifier</strong>
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
Identifier: <strong>@Model.LeafInputIdentifier</strong>
|
||||
</div>
|
||||
<div class="panel text-center">
|
||||
@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-default">
|
||||
<i class="glyphicon glyphicon-picture"></i>
|
||||
@cId Chart
|
||||
</a>
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<span>CurveId:</span>
|
||||
@Html.DropDownList("CurveId", new SelectList(Model.AvailableCurveId, Model.CurveId), selectText)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<img id="chart"/>
|
||||
@section Scripts {
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
}
|
||||
|
||||
@*<img id="chart" />
|
||||
<span class="help-block">
|
||||
<span id="chart-error"></span>
|
||||
</span>
|
||||
</span>*@
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<div class="row panel">
|
||||
<div class="col-lg-8">
|
||||
Service description: @Model.ServerDescription<br/>
|
||||
Est. processing time by LeafInput size -
|
||||
@*Est. processing time by LeafInput size -
|
||||
<i class="fa fa-file-o"></i> 1: <strong>@Model.TimeInProgressEstimater.EstimateTimeInProgress(1).ToRoundedReadableString()</strong>
|
||||
<i class="fa fa-file-o"></i> 10: <strong>@Model.TimeInProgressEstimater.EstimateTimeInProgress(10).ToRoundedReadableString()</strong>
|
||||
<i class="fa fa-file-o"></i> 100: <strong>@Model.TimeInProgressEstimater.EstimateTimeInProgress(100).ToRoundedReadableString()</strong>
|
||||
<i class="fa fa-file-o"></i> 100: <strong>@Model.TimeInProgressEstimater.EstimateTimeInProgress(100).ToRoundedReadableString()</strong>*@
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
@using (Html.BeginUmbracoForm<QueueController>("Search", FormMethod.Post))
|
||||
|
||||
Reference in New Issue
Block a user