From e46be7ba0a9451069621cac1cc8f486623c15a80 Mon Sep 17 00:00:00 2001 From: "DESKTOP-GENO133\\IvanPlex" Date: Mon, 8 Jan 2024 09:05:09 -0700 Subject: [PATCH 1/6] added ability to rename files on service record page. --- Views/Vehicle/_ServiceRecordModal.cshtml | 9 +------- Views/Vehicle/_ServiceRecords.cshtml | 2 +- Views/Vehicle/_UploadedFiles.cshtml | 16 +++++++++++++ wwwroot/js/servicerecord.js | 4 ---- wwwroot/js/vehicle.js | 29 ++++++++++++++++++++++++ 5 files changed, 47 insertions(+), 13 deletions(-) create mode 100644 Views/Vehicle/_UploadedFiles.cshtml diff --git a/Views/Vehicle/_ServiceRecordModal.cshtml b/Views/Vehicle/_ServiceRecordModal.cshtml index 98d27e52..c37913a6 100644 --- a/Views/Vehicle/_ServiceRecordModal.cshtml +++ b/Views/Vehicle/_ServiceRecordModal.cshtml @@ -30,14 +30,7 @@ @if (Model.Files.Any()) {
- - @foreach (UploadedFiles filesUploaded in Model.Files) - { - - } + @await Html.PartialAsync("_UploadedFiles", Model.Files)
diff --git a/Views/Vehicle/_ServiceRecords.cshtml b/Views/Vehicle/_ServiceRecords.cshtml index db7ff24c..139ef9df 100644 --- a/Views/Vehicle/_ServiceRecords.cshtml +++ b/Views/Vehicle/_ServiceRecords.cshtml @@ -58,7 +58,7 @@ -