-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initialize image uploading & name edting
Refs: #128
- Loading branch information
1 parent
e81edd4
commit a72bb0c
Showing
3 changed files
with
85 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
web-app/django/VIM/apps/instruments/templates/instruments/includes/imageUploadModal.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<div class="modal fade" | ||
id="uploadImageModal" | ||
tabindex="-1" | ||
aria-labelledby="uploadImageModalLabel" | ||
aria-hidden="true"> | ||
<div class="modal-dialog"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h4 class="modal-title" id="uploadImageModalLabel">Upload New Images</h4> | ||
<button type="button" | ||
class="btn-close" | ||
data-bs-dismiss="modal" | ||
aria-label="Close"></button> | ||
</div> | ||
<div class="modal-body"> | ||
<form method="post" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
<div class="mb-3"> | ||
<label for="imageUpload" class="form-label">Choose images to upload</label> | ||
<input class="form-control" | ||
type="file" | ||
id="imageUpload" | ||
name="images" | ||
multiple /> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Upload</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |