Migrate to bootstrap 4 in LeafWeb
This commit is contained in:
@@ -2,44 +2,59 @@
|
||||
@model LeafInputDetails
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-3 divider-right detail-actions">
|
||||
<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">
|
||||
|
||||
@Html.Partial("DisplayTemplates/_ChartButton", Model.LeafInputId, new ViewDataDictionary { { "Disabled", !Model.HasLeafChart } })
|
||||
<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("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-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("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-outline-secondary text-left @{if (!Model.HasOutputFiles) {<text> disabled</text>}}" role="button">
|
||||
<span class="fa fa-download"></span> NotToUser
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<h6>Utility</h6>
|
||||
|
||||
<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>
|
||||
<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-default" @{if (!Model.HasOutputFiles) { <text> disabled="disabled" </text> }}>
|
||||
<span class="glyphicon glyphicon-send"></span> Email User Download link
|
||||
</button>
|
||||
}
|
||||
|
||||
@if (Model.IsCancellable)
|
||||
{
|
||||
@CancelLink(Model)
|
||||
}
|
||||
@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">
|
||||
|
||||
@DeleteLink(Model)
|
||||
@if (Model.IsCancellable)
|
||||
{
|
||||
@CancelLink(Model)
|
||||
}
|
||||
|
||||
@DeleteLink(Model)
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-9">
|
||||
@Html.DisplayForModel()
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<div class="input-group">
|
||||
<input name="query" type="text" class="form-control" placeholder="Search for..." value="@Model.Query">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="button">Search</button>
|
||||
<button class="btn btn-outline-secondary" type="button">Search</button>
|
||||
</span>
|
||||
</div><!-- /input-group -->
|
||||
}
|
||||
@@ -38,7 +38,7 @@
|
||||
grid.Column("TimeInProgress", "Statistics", item => Statistics(item.Value)),
|
||||
grid.Column("CurrentStatus", "Status", item => Status(item.Value)),
|
||||
grid.Column("Total Results: " + Model.Items.Count(), format: item => Btns(item.Value))),
|
||||
htmlAttributes: new {@class = "table table-striped table-bordered table-hover table-condensed"}
|
||||
htmlAttributes: new {@class = "table table-sm table-striped table-bordered table-hover"}
|
||||
)
|
||||
@grid.BootstrapPager()
|
||||
</div>
|
||||
@@ -57,9 +57,9 @@ else
|
||||
{
|
||||
<div class="btn-group text-nowrap" role="group">
|
||||
<div class="btn-group" role="group">
|
||||
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Actions
|
||||
<span class="caret"></span>
|
||||
<span class="fa fa-caret-down"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu">
|
||||
<li>@DetailsLink(item)</li>
|
||||
@@ -101,13 +101,13 @@ else
|
||||
@helper DownloadInput(dynamic item)
|
||||
{
|
||||
<a href="@Url.Action("DownloadInput", "Queue", new {id = item.Id})">
|
||||
<span class="glyphicon glyphicon-download"></span> Input
|
||||
<span class="fa fa-download"></span> Input
|
||||
</a>
|
||||
}
|
||||
@helper DownloadOutputToUser(dynamic item)
|
||||
{
|
||||
<a href="@Url.Action("DownloadOutputToUser", "Queue", new {id = item.Id})">
|
||||
<span class="glyphicon glyphicon-download"></span> ToUser
|
||||
<span class="fa fa-download"></span> ToUser
|
||||
</a>
|
||||
}
|
||||
@helper Statistics(LeafInput leafInput)
|
||||
|
||||
Reference in New Issue
Block a user