@model Disco.Web.Models.Job.LogInsuranceModel @{ Authorization.RequireAny(Claims.Job.Properties.NonWarrantyProperties.InsuranceClaimFormSent, Claims.Job.Actions.LogInsurance); ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Lodge Insurance Claim"); } @using (Html.BeginForm(MVC.Job.LogInsurance(), FormMethod.Post)) { @Html.AntiForgeryToken() @Html.ValidationSummary(true) @Html.HiddenFor(m => m.JobId) @Html.ValidationMessageFor(m => m.JobId)
| Internal Job Id: | @Model.JobId |
|---|---|
| Device Serial Number: | @Model.Job.Device.SerialNumber |
| Device Model: | @Model.Job.Device.DeviceModel.Manufacturer @Model.Job.Device.DeviceModel.Model |
| Technician: |
@Model.TechUser.DisplayName
Email Address: @Model.TechUser.EmailAddress
Phone Number: @Model.TechUser.PhoneNumber |
| Address: |
@Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, (Model.OrganisationAddress == null))) @Html.ValidationMessageFor(m => m.OrganisationAddressId)
@{
var oa = Model.OrganisationAddress;
if (oa != null)
{
@oa.Address
@oa.Suburb, @oa.Postcode @oa.State, @oa.Country } } |
| Insurance Provider: |
@Html.DropDownListFor(model => model.ProviderId, Model.Providers.ToSelectListItems(Model.ProviderId, AdditionalItems: new Dictionary @Html.ValidationMessageFor(m => m.ProviderId) @if (Model.Providers.Count == 0 && Authorization.Has(Claims.Config.Plugin.Install)) { View the Plugin Catalogue to discover and install provider plugins. |
| Insurer Name: |
@Html.EditorFor(model => model.ManualProviderName) @Html.ValidationMessageFor(m => m.ManualProviderName) |
| Insurer Reference: |
@Html.EditorFor(model => model.ManualProviderReference) @Html.ValidationMessageFor(m => m.ManualProviderReference) |
|
@foreach (var ja in Model.Job.JobAttachments)
{
|