Reformat details links into dropdown
This commit is contained in:
@@ -2,60 +2,58 @@
|
||||
@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>
|
||||
@Html.Partial("DisplayTemplates/_ChartButton", Model.LeafInputId, new ViewDataDictionary {{"Disabled", !Model.HasLeafChart}})
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-outline-secondary dropdown-toggle" id="downloadButton"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Download
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="downloadButton">
|
||||
<a href="@Url.Action("DownloadInput", "Queue", new {id = Model.LeafInputId})"
|
||||
class="dropdown-item">
|
||||
<span class="fa fa-download"></span> Input
|
||||
</a>
|
||||
<a href="@Url.Action("DownloadOutputToUser", "Queue", new {id = Model.LeafInputId})"
|
||||
class="dropdown-item @if (!Model.HasOutputFiles) {<text> disabled</text>}" >
|
||||
<span class="fa fa-download"></span> ToUser
|
||||
</a>
|
||||
|
||||
<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>
|
||||
<a href="@Url.Action("DownloadOutputNotToUser", "Queue", new {id = Model.LeafInputId})"
|
||||
class="dropdown-item @if (!Model.HasOutputFiles) {<text> disabled</text>}" >
|
||||
<span class="fa fa-download"></span> NotToUser
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-outline-secondary dropdown-toggle" id="utilityButton"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Utility
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="utilityButton">
|
||||
@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="dropdown-item text-left"
|
||||
@{if (!Model.HasOutputFiles) { <text> disabled="disabled" </text> }}>
|
||||
<span class="fa fa-send"></span> Email User Download link
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-9">
|
||||
@if (Model.IsCancellable)
|
||||
{
|
||||
@CancelLink(Model)
|
||||
}
|
||||
|
||||
@DeleteLink(Model)
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="container">
|
||||
@Html.DisplayForModel()
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -6,14 +6,15 @@
|
||||
string.IsNullOrEmpty(ViewData.ModelMetadata.DisplayName)
|
||||
? ViewData.ModelMetadata.PropertyName.SplitCamelCase()
|
||||
: ViewData.ModelMetadata.DisplayName;
|
||||
|
||||
// string units = (string)ViewData.ModelMetadata.AdditionalValues.ContainsKey("Units") ? ["Units"];
|
||||
}
|
||||
|
||||
<dl class="row @lowerPropertyName">
|
||||
<dt class="col-sm-3">
|
||||
<div class="row @lowerPropertyName @if (ViewData.Model == null){<text>d-none</text> }">
|
||||
<div class="col-sm-3 text-truncate">
|
||||
@displayName
|
||||
</dt>
|
||||
<dd class="col-sm-9">
|
||||
@RenderBody()
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
@RenderBody()
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user