64 lines
2.8 KiB
Plaintext
64 lines
2.8 KiB
Plaintext
@using LeafWeb.WebCms.Controllers
|
|
@model LeafInputDetails
|
|
|
|
<div class="row">
|
|
<div class="col-sm-3 divider-right detail-actions">
|
|
<h3>Actions</h3>
|
|
|
|
@Html.Partial("DisplayTemplates/_ChartButton", Model.LeafInputId, new ViewDataDictionary { { "Disabled", !Model.HasLeafChart } })
|
|
|
|
<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.HasOutputFiles)
|
|
{<text> disabled</text>}}" role="button">
|
|
<span class="glyphicon glyphicon-download"></span> Download ToUser
|
|
</a>
|
|
|
|
<a href="@Url.Action("DownloadOutputNotToUser", "Queue", new {id = Model.LeafInputId})"
|
|
class="btn btn-default@{if (!Model.HasOutputFiles)
|
|
{<text> disabled</text>}}" role="button">
|
|
<span class="glyphicon glyphicon-download"></span> Download NotToUser
|
|
</a>
|
|
|
|
@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-default" @{if (!Model.HasOutputFiles) { <text> disabled="disabled" </text> }}>
|
|
<span class="glyphicon glyphicon-send"></span> Email User Download link
|
|
</button>
|
|
}
|
|
|
|
|
|
@*@using (Html.BeginUmbracoForm<QueueController>(
|
|
"SendUserChartLink", 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-default" @{if (!Model.HasLeafChart) { <text> disabled="disabled" </text> }}>
|
|
<span class="glyphicon glyphicon-send"></span> Email User Chart link
|
|
</button>
|
|
}*@
|
|
@DeleteLink(Model.LeafInputId, Model.Identifier, Model.IsDeletable)
|
|
</div>
|
|
<div class="col-sm-9">
|
|
@Html.DisplayForModel()
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@helper DeleteLink(int id, string identifier, bool deletable)
|
|
{
|
|
using (Html.BeginUmbracoForm<QueueController>(
|
|
"Delete", null, new { @class = "confirm", confirm_msg = "Deletion cannot be undone! Confirm deleting '" + identifier + "'." }))
|
|
{
|
|
<input type="hidden" name="id" value="@id" />
|
|
<button type="submit" class="btn btn-default" @{if (!deletable) { <text> disabled="disabled" </text> }}>
|
|
<span class="glyphicon glyphicon-remove"></span> Delete
|
|
</button>
|
|
}
|
|
}
|