@model Disco.Web.Models.Job.ShowModel
@using Disco.Models.Repository;
@{
    Authorization.Require(Claims.Job.Show);
    
    Html.BundleDeferred("~/ClientScripts/Modules/Disco-PropertyChangeHelpers");
}
@switch (Model.Job.JobTypeId)
{
    case JobType.JobTypeIds.HWar:
        if (Authorization.Has(Claims.Job.ShowWarranty))
        {    
            @Html.Partial(MVC.Job.Views.JobParts.Warranty);
        }
        break;
    case JobType.JobTypeIds.HNWar:
        @Html.Partial(MVC.Job.Views.JobParts.NonWarranty);
        break;
    case JobType.JobTypeIds.UMgmt:
        if (Authorization.Has(Claims.Job.ShowFlags))
        {    
            @Html.Partial(MVC.Job.Views.JobParts.Flags);
        }
        break;
    default:
        break;
}