@model Disco.Web.Models.Job.LogWarrantyModel @{ ViewBag.Title = Html.ToBreadcrumb("Jobs", MVC.Job.Index(), string.Format("Job: {0}", Model.Job.Id), MVC.Job.Show(Model.Job.Id), "Log Warranty"); } @using (Html.BeginForm(MVC.Job.LogWarranty(), FormMethod.Post)) { @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
Repair Address: @Html.DropDownListFor(model => model.OrganisationAddressId, Model.OrganisationAddresses.ToSelectListItems(Model.OrganisationAddressId, true))
@Html.ValidationMessageFor(m => m.OrganisationAddressId)
Warranty Provider: @Html.DropDownListFor(model => model.WarrantyProviderId, Model.WarrantyProviders.ToSelectListItems(Model.WarrantyProviderId, true))
@Html.ValidationMessageFor(m => m.WarrantyProviderId)

Fault Description

@Html.EditorFor(model => model.FaultDescription)
@Html.ValidationMessageFor(m => m.FaultDescription)
if (Model.WarrantyProvider != null && Model.WarrantyProviderSubmitJobViewType != null) {
@Html.PartialCompiled(Model.WarrantyProviderSubmitJobViewType, Model.WarrantyProviderSubmitJobModel)
}
}