feature: lodge insurance
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
@model Disco.Web.Models.Job.ProviderJobDetailsModel
|
||||
@{ Layout = null;
|
||||
|
||||
Authorization.Require(Claims.Job.Properties.NonWarrantyProperties.InsuranceDetails);
|
||||
|
||||
if (Model.JobDetailsException != null)
|
||||
{
|
||||
<h3>
|
||||
Error:</h3>
|
||||
<div>
|
||||
<strong>@Model.JobDetailsException.Message</strong>
|
||||
</div>
|
||||
<a href="#" id="errorShow" class="smallMessage">(show more)</a>
|
||||
<div id="errorMore" 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 () {
|
||||
$('#errorShow').click(function () {
|
||||
$(this).hide();
|
||||
$('#errorMore').slideDown();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Model.JobDetailsSupported)
|
||||
{
|
||||
@Html.PartialCompiled(Model.ViewType, Model.ViewModel)
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="smallMessage">@Model.JobDetailsNotSupportedMessage</span>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user