Favicons, page improvements
This commit is contained in:
@@ -28,15 +28,15 @@
|
||||
}
|
||||
|
||||
|
||||
@using (Html.BeginUmbracoForm<QueueController>(
|
||||
@*@using (Html.BeginUmbracoForm<QueueController>(
|
||||
"SendUserChartLink", 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.HasLeafChart) { <text> disabled="disabled" </text> }}>
|
||||
<span class="glyphicon glyphicon-send"></span> Email User Chart link
|
||||
</button>
|
||||
}
|
||||
@DeleteLink(Model.LeafInputId, Model.IsDeletable)
|
||||
}*@
|
||||
@DeleteLink(Model.LeafInputId, Model.Identifier, Model.IsDeletable)
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
@Html.DisplayForModel()
|
||||
@@ -44,11 +44,11 @@
|
||||
</div>
|
||||
|
||||
|
||||
@helper DeleteLink(int id, bool deletable)
|
||||
@helper DeleteLink(int id, string identifier, bool deletable)
|
||||
{
|
||||
using (Html.BeginUmbracoForm<QueueController>(
|
||||
"Delete", null, new { @class = "confirm", confirm_msg = "Deletion cannot be undone! Confirm deleting '" + identifier + "'." }))
|
||||
{
|
||||
using (Html.BeginUmbracoForm<QueueController>(
|
||||
"Delete", null, new { @class = "confirm", confirm_msg = "Deletion cannot be undone!" }))
|
||||
{
|
||||
<input type="hidden" name="id" value="@id" />
|
||||
<button type="submit" class="btn btn-default" @{if (!deletable) { <text> disabled="disabled" </text> }}>
|
||||
<span class="glyphicon glyphicon-remove"></span> Delete
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
@model IEnumerable<ResultStatusViewModel>
|
||||
@model QueueViewModel
|
||||
|
||||
@{
|
||||
var grid = new WebGrid(Model, rowsPerPage: 45);
|
||||
var grid = new WebGrid(Model.Items, rowsPerPage: 45);
|
||||
}
|
||||
|
||||
<dl>
|
||||
<dt>Service description</dt>
|
||||
<dd>@Model.ServerDescription</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@grid.Table(columns:
|
||||
grid.Columns(
|
||||
grid.Column("LeafInputIdentifier", "Identifier"),
|
||||
grid.Column("LeafInputSiteId", "Site Id"),
|
||||
grid.Column("LeafInputName", "Submitted By"),
|
||||
grid.Column("CurrentStatus", "Status", item => Html.Partial("DisplayTemplates/_LeafInputStatus", (string)item.CurrentStatus)),
|
||||
grid.Column("Total Results: " + Model.Count(), format: item => Btns(item))),
|
||||
grid.Column("Total Results: " + Model.Items.Count(), format: item => Btns(item))),
|
||||
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
|
||||
)
|
||||
@grid.BootstrapPager()
|
||||
@@ -78,7 +84,7 @@
|
||||
}
|
||||
@helper DeleteLink(dynamic item)
|
||||
{
|
||||
@Html.Partial("DisplayTemplates/_DeleteForm", (Tuple<int, bool>)Tuple.Create(item.LeafInputId, item.IsDeletable))
|
||||
@Html.Partial("DisplayTemplates/_DeleteForm", (Tuple<int, string, bool>)Tuple.Create(item.LeafInputId, item.LeafInputIdentifier, item.IsDeletable))
|
||||
}
|
||||
|
||||
@helper DisableItem(bool disabled)
|
||||
|
||||
Reference in New Issue
Block a user