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