Add required attribute to input file
This commit is contained in:
parent
6f3e317484
commit
b00f8c80ec
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@
|
|||
data-bs-files-selected=#{filesSelected},
|
||||
data-bs-pdf-prompt=#{pdfPrompt}">
|
||||
<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 required th:classappend="${notRequired ? '' : 'required'}">
|
||||
</div>
|
||||
<div class="selected-files"></div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue