Skip to content

Commit

Permalink
fix: attempt 3 to add multiple files support
Browse files Browse the repository at this point in the history
  • Loading branch information
fivan999 committed Nov 28, 2024
1 parent 3f9989a commit 09b3ec6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adminpage/sport/forms/medical.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class MedicalGroupReferenceForm(forms.Form):
references = forms.ImageField(widget=forms.FileInput(attrs={"multiple": True}))
references = forms.ImageField()
student_comment = forms.CharField(
widget=forms.Textarea,
max_length=1024,
Expand Down
6 changes: 5 additions & 1 deletion adminpage/sport/templates/med_group_reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ <h5 class="modal-title">
Based on the reference you will be assigned a health group.
</p>
{% csrf_token %}
{{ forms.medical_group_reference.as_p }}
<input type="file" name="references" multiple="" accept="image/*" required="" id="id_references">
<p>
{{ forms.medical_group_reference.student_comment.label }}
{{ forms.medical_group_reference.student_comment }}
</p>
</div>
<div class="modal-footer">
<div class="container">
Expand Down

0 comments on commit 09b3ec6

Please sign in to comment.