Details and queue management

This commit is contained in:
2017-01-06 08:43:22 -05:00
parent d14e40a36b
commit 42ac27e16f
24 changed files with 260 additions and 51 deletions
+32
View File
@@ -1,3 +1,35 @@
@model LeafWeb.WebCms.Models.LeafInputDetails
<div class="btn-group" role="group">
@Html.Partial("DisplayTemplates/_ChartButton", Model.LeafInputId, new ViewDataDictionary { { "Disabled", !Model.HasLeafChart } })
</div>
<div class="btn-group" role="group">
<a href="@Url.Action("DownloadInput", "Queue", new {id = Model.LeafInputId})"
class="btn btn-default" role="button">
<span class="glyphicon glyphicon-download"></span> Download Input
</a>
<a href="@Url.Action("DownloadOutputToUser", "Queue", new {id = Model.LeafInputId})"
class="btn btn-default@{if (!Model.IsComplete){<text> disabled</text>}}" role="button">
<span class="glyphicon glyphicon-download"></span> Download ToUser
</a>
</div>
<div class="btn-group" role="group">
<a href="@Url.Action("SendUserDownloadLink", "Queue", new {id = Model.LeafInputId})"
class="btn btn-default@{if (!Model.IsComplete){<text> disabled</text>}}" role="button">
<span class="glyphicon glyphicon-send"></span> Send download link to User
</a>
<a href="@Url.Action("SendUserChartLink", "Queue", new {id = Model.LeafInputId})"
class="btn btn-default@{if (!Model.HasLeafChart){<text> disabled</text>}}" role="button">
<span class="glyphicon glyphicon-send"></span> Send chart link to User
</a>
</div>
<div class="btn-group" role="group">
<a href="@Url.Action("Delete", "Queue", new {id = Model.LeafInputId})"
class="btn btn-default@{if (!Model.IsDeletable){<text> disabled</text>}}" role="button">
<span class="glyphicon glyphicon-remove"></span> Delete
</a>
</div>
@Html.DisplayForModel()