diff --git a/Controllers/VehicleController.cs b/Controllers/VehicleController.cs index 4b9f38e..1a32697 100644 --- a/Controllers/VehicleController.cs +++ b/Controllers/VehicleController.cs @@ -1795,6 +1795,7 @@ namespace CarCareTracker.Controllers [HttpPost] public IActionResult SaveNoteToVehicleId(Note note) { + note.Files = note.Files.Select(x => { return new UploadedFiles { Name = x.Name, Location = _fileHelper.MoveFileFromTemp(x.Location, "documents/") }; }).ToList(); var result = _noteDataAccess.SaveNoteToVehicle(note); if (result) { @@ -2391,6 +2392,12 @@ namespace CarCareTracker.Controllers #endregion #region "Shared Methods" [HttpPost] + public IActionResult GetFilesPendingUpload(List uploadedFiles) + { + var filesPendingUpload = uploadedFiles.Where(x => x.Location.StartsWith("/temp/")).ToList(); + return PartialView("_FilesToUpload", filesPendingUpload); + } + [HttpPost] [TypeFilter(typeof(CollaboratorFilter))] public IActionResult SearchRecords(int vehicleId, string searchQuery) { diff --git a/Views/Vehicle/_CollisionRecordModal.cshtml b/Views/Vehicle/_CollisionRecordModal.cshtml index 2722648..7e16212 100644 --- a/Views/Vehicle/_CollisionRecordModal.cshtml +++ b/Views/Vehicle/_CollisionRecordModal.cshtml @@ -89,10 +89,9 @@ } -
- - @translator.Translate(userLanguage, "Max File Size: 28.6MB") +
@translator.Translate(userLanguage, "Max File Size: 28.6MB") } +
diff --git a/Views/Vehicle/_CollisionRecords.cshtml b/Views/Vehicle/_CollisionRecords.cshtml index 1a02ea3..e195712 100644 --- a/Views/Vehicle/_CollisionRecords.cshtml +++ b/Views/Vehicle/_CollisionRecords.cshtml @@ -151,7 +151,7 @@ - - diff --git a/Views/Vehicle/_PlanRecordTemplateEditModal.cshtml b/Views/Vehicle/_PlanRecordTemplateEditModal.cshtml index acd1d7e..be37799 100644 --- a/Views/Vehicle/_PlanRecordTemplateEditModal.cshtml +++ b/Views/Vehicle/_PlanRecordTemplateEditModal.cshtml @@ -65,10 +65,9 @@ { -
- - @translator.Translate(userLanguage, "Max File Size: 28.6MB") +
@translator.Translate(userLanguage, "Max File Size: 28.6MB") } +
diff --git a/Views/Vehicle/_PlanRecords.cshtml b/Views/Vehicle/_PlanRecords.cshtml index 2e52c2d..a2baba0 100644 --- a/Views/Vehicle/_PlanRecords.cshtml +++ b/Views/Vehicle/_PlanRecords.cshtml @@ -97,14 +97,14 @@ - - diff --git a/Views/Vehicle/_SupplyRecords.cshtml b/Views/Vehicle/_SupplyRecords.cshtml index 716d725..0f47cdc 100644 --- a/Views/Vehicle/_SupplyRecords.cshtml +++ b/Views/Vehicle/_SupplyRecords.cshtml @@ -167,7 +167,7 @@ - diff --git a/Views/Vehicle/_TaxRecords.cshtml b/Views/Vehicle/_TaxRecords.cshtml index 101400d..1cab09a 100644 --- a/Views/Vehicle/_TaxRecords.cshtml +++ b/Views/Vehicle/_TaxRecords.cshtml @@ -143,7 +143,7 @@ - diff --git a/Views/Vehicle/_UpgradeRecords.cshtml b/Views/Vehicle/_UpgradeRecords.cshtml index f9a8d21..5c931aa 100644 --- a/Views/Vehicle/_UpgradeRecords.cshtml +++ b/Views/Vehicle/_UpgradeRecords.cshtml @@ -150,7 +150,7 @@ -