f4394fe2a0
Logging Repair for Non-Warranty jobs has been brought into line with Logging Warranty. RepairProviderFeature implemented which allows plugins to be used in submitting jobs to third-parties for repair.
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
@model Disco.Web.Models.Job.ProviderJobDetailsModel
|
|
@{ Layout = null;
|
|
|
|
Authorization.Require(Claims.Job.Properties.WarrantyProperties.ProviderDetails);
|
|
|
|
if (Model.JobDetailsException != null)
|
|
{
|
|
<h3>
|
|
Error:</h3>
|
|
<div>
|
|
<strong>@Model.JobDetailsException.Message</strong>
|
|
</div>
|
|
<a href="#" id="warrantyJobDetailsErrorShow" class="smallMessage">(show more)</a>
|
|
<div id="warrantyJobDetailsErrorMore" style="display: none">
|
|
<br />
|
|
<strong>Error Type: </strong>@Model.JobDetailsException.GetType().Name
|
|
<br />
|
|
<strong>Stack Trace:</strong>
|
|
<div class="code">
|
|
@Model.JobDetailsException.StackTrace.ToMultilineString()
|
|
</div>
|
|
@if (Model.JobDetailsException.InnerException != null)
|
|
{
|
|
<hr />
|
|
<div>
|
|
<strong>Inner Exception:</strong> @Model.JobDetailsException.InnerException.Message<br />
|
|
<strong>Error Type:</strong> @Model.JobDetailsException.GetType().Name<br />
|
|
<strong>Stack Trace:</strong>
|
|
<div class="code">
|
|
@Model.JobDetailsException.InnerException.StackTrace
|
|
</div>
|
|
</div>
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#warrantyJobDetailsErrorShow').click(function () {
|
|
$(this).hide();
|
|
$('#warrantyJobDetailsErrorMore').slideDown();
|
|
});
|
|
});
|
|
</script>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
if (Model.JobDetailsSupported)
|
|
{
|
|
@Html.PartialCompiled(Model.ViewType, Model.ViewModel)
|
|
}
|
|
else
|
|
{
|
|
<span class="smallMessage">@Model.JobDetailsNotSupportedMessage</span>
|
|
}
|
|
}
|
|
} |