71 lines
2.8 KiB
Plaintext
71 lines
2.8 KiB
Plaintext
@using LeafWeb.WebCms.Controllers
|
|
@model LeafInputDetails
|
|
|
|
<div class="row">
|
|
<div class="col divider-right">
|
|
<h3>Actions</h3>
|
|
<div>
|
|
<div class="btn-group-vertical" role="group" aria-label="">
|
|
@Html.Partial("DisplayTemplates/_ChartButton", Model.LeafInputId, new ViewDataDictionary { { "Disabled", !Model.HasLeafChart } })
|
|
</div>
|
|
|
|
<h6>Download</h6>
|
|
<div class="btn-group-vertical" role="group" aria-label="Download">
|
|
|
|
<a href="@Url.Action("DownloadInput", "Queue", new {id = Model.LeafInputId})"
|
|
class="btn btn-outline-secondary text-left" role="button">
|
|
<span class="fa fa-download"></span> Input
|
|
</a>
|
|
|
|
<a href="@Url.Action("DownloadOutputToUser", "Queue", new {id = Model.LeafInputId})"
|
|
class="btn btn-outline-secondary text-left @{if (!Model.HasOutputFiles) {<text> disabled</text>}}" role="button">
|
|
<span class="fa fa-download text-left"></span> ToUser
|
|
</a>
|
|
|
|
<a href="@Url.Action("DownloadOutputNotToUser", "Queue", new {id = Model.LeafInputId})"
|
|
class="btn btn-outline-secondary text-left @{if (!Model.HasOutputFiles) {<text> disabled</text>}}" role="button">
|
|
<span class="fa fa-download"></span> NotToUser
|
|
</a>
|
|
</div>
|
|
|
|
<h6>Utility</h6>
|
|
|
|
<div class="btn-group-vertical" role="group" aria-label="Send User Download">
|
|
|
|
@using (Html.BeginUmbracoForm<QueueController>(
|
|
"SendUserDownloadLink", null, new { @class = "confirm", confirm_msg = "Confirm sending email to user" }))
|
|
{
|
|
<input type="hidden" name="id" value="@Model.LeafInputId" />
|
|
<button type="submit" class="btn btn-outline-secondary text-left"
|
|
@{if (!Model.HasOutputFiles) { <text> disabled="disabled" </text> }}>
|
|
<span class="fa fa-send"></span> Email User Download link
|
|
</button>
|
|
}
|
|
</div>
|
|
|
|
<div class="btn-group-vertical" role="group" aria-label="Control">
|
|
|
|
@if (Model.IsCancellable)
|
|
{
|
|
@CancelLink(Model)
|
|
}
|
|
|
|
@DeleteLink(Model)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-sm-9">
|
|
@Html.DisplayForModel()
|
|
</div>
|
|
</div>
|
|
|
|
@helper DeleteLink(LeafInputDetails item)
|
|
{
|
|
@Html.Partial("DisplayTemplates/_DeleteForm", Tuple.Create(item.LeafInputId, item.Identifier, item.IsDeletable, false))
|
|
}
|
|
|
|
@helper CancelLink(LeafInputDetails item)
|
|
{
|
|
@Html.Partial("DisplayTemplates/_CancelForm", Tuple.Create(item.LeafInputId, item.Identifier, false))
|
|
} |