Migrate to bootstrap 4 in LeafWeb

This commit is contained in:
2019-12-06 22:29:15 -05:00
parent f9a452045f
commit 88469b19be
248 changed files with 20293 additions and 21639 deletions
+45 -30
View File
@@ -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>