remove device custom details
this plugin functionality has never been used
This commit is contained in:
@@ -35,7 +35,6 @@ namespace Disco.Web.Models.Device
|
||||
HandlersPresent = Plugins.GetPluginFeatures(typeof(DocumentHandlerProviderFeature)).Any(),
|
||||
};
|
||||
|
||||
public DetailsResult DeviceDetails { get; set; }
|
||||
public DetailsResult AssignedUserDetails { get; set; }
|
||||
public bool HasAssignedUserPhoto { get; set; }
|
||||
}
|
||||
|
||||
@@ -36,6 +36,5 @@ namespace Disco.Web.Models.Job
|
||||
|
||||
public DetailsResult UserDetails { get; set; }
|
||||
public bool HasUserPhoto { get; set; }
|
||||
public DetailsResult DeviceDetails { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,6 @@ namespace Disco.Web.Models.User
|
||||
|
||||
public DetailsResult UserDetails { get; set; }
|
||||
public bool HasUserPhoto { get; set; }
|
||||
public Dictionary<string, DetailsResult> AssignedDevicesDetails { get; set; }
|
||||
|
||||
public FancyTreeNode[] ClaimNavigatorFancyTreeNodes
|
||||
{
|
||||
|
||||
@@ -187,37 +187,6 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@if (Model.DeviceDetails != null && Model.DeviceDetails.Details.Count(d => !d.Key.EndsWith("&")) > 0)
|
||||
{
|
||||
<div id="Device_Show_CustomDetails" class="status clearfix">
|
||||
@foreach (var detail in Model.DeviceDetails.Details.Where(d => !d.Key.EndsWith("&")))
|
||||
{
|
||||
<div>
|
||||
<strong>@detail.Key.TrimEnd('*'):</strong>
|
||||
@if (detail.Key.EndsWith("*"))
|
||||
{
|
||||
<a href="" class="reveal smallMessage">[reveal]</a>
|
||||
<span class="reveal hidden">@Html.Partial(MVC.Shared.Views._CustomDetailValueRender, detail)</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.Partial(MVC.Shared.Views._CustomDetailValueRender, detail)
|
||||
}
|
||||
</div>
|
||||
}
|
||||
<script type="text/javascript">
|
||||
$(() => {
|
||||
$('#Device_Show_CustomDetails').on('click', 'a.reveal', e => {
|
||||
e.preventDefault();
|
||||
const t = $(e.currentTarget);
|
||||
t.next('span.reveal').removeClass('hidden');
|
||||
t.remove();
|
||||
return false;
|
||||
})
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
}
|
||||
<div class="status">
|
||||
@{
|
||||
var assignedUser = Model.Device.AssignedUser;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -254,17 +254,6 @@
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@if (Model.DeviceDetails != null && Model.DeviceDetails.Details.Count > 0)
|
||||
{
|
||||
<div id="Job_Show_Device_CustomDetails" class="status clearfix">
|
||||
@foreach (var detail in Model.DeviceDetails.Details)
|
||||
{
|
||||
<div>
|
||||
<strong>@detail.Key:</strong> @Html.Partial(MVC.Shared.Views._CustomDetailValueRender, detail)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if (Model.Job.DeviceHeld.HasValue)
|
||||
{
|
||||
var canEditLocation = Authorization.Has(Claims.Job.Properties.DeviceHeldLocation);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,6 @@
|
||||
Authorization.Require(Claims.User.Show);
|
||||
|
||||
var currentDeviceAssignments = Model.User.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue).OrderByDescending(dua => dua.AssignedDate).ToList();
|
||||
Disco.Models.Services.Plugins.Details.DetailsResult deviceDetails;
|
||||
}
|
||||
<table id="User_Show_Subjects">
|
||||
<tbody>
|
||||
@@ -419,16 +418,6 @@
|
||||
<span class="User_Show_AssignedDevices_CurrentAssignment_Assigned">@CommonHelpers.FriendlyDate(assignment.AssignedDate)</span>
|
||||
</td>
|
||||
</tr>
|
||||
@if (Model.AssignedDevicesDetails != null && Model.AssignedDevicesDetails.TryGetValue(assignment.DeviceSerialNumber, out deviceDetails) && deviceDetails.Details.Count > 0)
|
||||
{
|
||||
foreach (var detail in deviceDetails.Details)
|
||||
{
|
||||
<tr>
|
||||
<td>@detail.Key:</td>
|
||||
<td>@Html.Partial(MVC.Shared.Views._CustomDetailValueRender, detail)</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user