mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2024-11-17 12:40:11 +01:00
Merge pull request #755 from ProvaTeams/Add-required-attribute-to-input-file
Add required attribute to input file
This commit is contained in:
commit
c2aaa65228
@ -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 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user