Using the flag logic

This commit is contained in:
ProvaTeams 2024-01-31 14:09:16 +00:00
parent b00f8c80ec
commit 55020d45f8

View file

@ -120,7 +120,7 @@
data-bs-files-selected=#{filesSelected}, data-bs-files-selected=#{filesSelected},
data-bs-pdf-prompt=#{pdfPrompt}"> data-bs-pdf-prompt=#{pdfPrompt}">
<div class="mb-3"> <div class="mb-3">
<input type="file" class="form-control" th:name="${name}" th:id="${name}+'-input'" th:accept="${accept}" multiple required th:classappend="${notRequired ? '' : 'required'}"> <input type="file" class="form-control" th:name="${name}" th:id="${name}+'-input'" th:accept="${accept}" multiple th:required="${notRequired} ? null : 'required'">
</div> </div>
<div class="selected-files"></div> <div class="selected-files"></div>
</div> </div>