Add cancel
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</a>
|
||||
|
||||
<a href="@Url.Action("DownloadOutputToUser", "Queue", new {id = Model.LeafInputId})"
|
||||
class="btn btn-default@{if (!Model.IsComplete)
|
||||
class="btn btn-default@{if (!Model.HasOutputFiles)
|
||||
{<text> disabled</text>}}" role="button">
|
||||
<span class="glyphicon glyphicon-download"></span> Download ToUser
|
||||
</a>
|
||||
@@ -22,7 +22,7 @@
|
||||
"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.IsComplete) { <text> disabled="disabled" </text> }}>
|
||||
<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>
|
||||
}
|
||||
|
||||
@@ -32,6 +32,11 @@
|
||||
<ul class="dropdown-menu">
|
||||
<li>@DetailsLink(item)</li>
|
||||
<li @DisableItem(!item.HasLeafChart)>@ChartLink(item)</li>
|
||||
@if (item.IsCancellable)
|
||||
{
|
||||
<li role="separator" class="divider"></li>
|
||||
<li>@CancelLink(item)</li>
|
||||
}
|
||||
@*<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Priority</li>
|
||||
<li>@SetPriorityHigh(item, "Set High")</li>
|
||||
@@ -39,7 +44,7 @@
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="dropdown-header">Download</li>
|
||||
<li>@DownloadInput(item)</li>
|
||||
<li @DisableItem(!item.IsComplete)>@DownloadOutputToUser(item)</li>
|
||||
<li @DisableItem(!item.HasOutputFiles)>@DownloadOutputToUser(item)</li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li @DisableItem(!item.IsDeletable)>@DeleteLink(item)</li>
|
||||
</ul>
|
||||
@@ -87,6 +92,11 @@
|
||||
@Html.Partial("DisplayTemplates/_DeleteForm", (Tuple<int, string, bool>)Tuple.Create(item.LeafInputId, item.LeafInputIdentifier, item.IsDeletable))
|
||||
}
|
||||
|
||||
@helper CancelLink(dynamic item)
|
||||
{
|
||||
@Html.Partial("DisplayTemplates/_CancelForm", (Tuple<int, string>)Tuple.Create(item.LeafInputId, item.LeafInputIdentifier))
|
||||
}
|
||||
|
||||
@helper DisableItem(bool disabled)
|
||||
{
|
||||
if (disabled) {<text>class="disabled"</text>}
|
||||
|
||||
Reference in New Issue
Block a user