Merge pull request #949 from iamdabe/main

Updated _NoteModal.cshtml label to correctly target file input 'noteFiles'
This commit is contained in:
Hargata Softworks 2025-05-16 14:25:11 -06:00 committed by GitHub
commit 15e4181aff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,14 +33,14 @@
{
<div>
@await Html.PartialAsync("_UploadedFiles", Model.Files)
<label for="serviceRecordFiles">@translator.Translate(userLanguage, "Upload more documents")</label>
<label for="noteFiles">@translator.Translate(userLanguage, "Upload more documents")</label>
<input onChange="uploadVehicleFilesAsync(this)" type="file" multiple accept="@config.GetAllowedFileUploadExtensions()" class="form-control-file" id="noteFiles">
<br /><small class="text-body-secondary">@translator.Translate(userLanguage, "Max File Size: 28.6MB")</small>
</div>
}
else
{
<label for="serviceRecordFiles">@translator.Translate(userLanguage, "Upload documents(optional)")</label>
<label for="noteFiles">@translator.Translate(userLanguage, "Upload documents(optional)")</label>
<input onChange="uploadVehicleFilesAsync(this)" type="file" multiple accept="@config.GetAllowedFileUploadExtensions()" class="form-control-file" id="noteFiles">
<br />
<small class="text-body-secondary">@translator.Translate(userLanguage, "Max File Size: 28.6MB")</small>
@ -87,4 +87,4 @@
function getNoteModelData(){
return { id: @Model.Id}
}
</script>
</script>