Skip to content

Commit

Permalink
fix: update "upload img" init & remove unused css
Browse files Browse the repository at this point in the history
Refs: #150
  • Loading branch information
kunfang98927 committed Sep 17, 2024
1 parent aa13e25 commit eaca2c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 102 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ uploadImagesModal.addEventListener('show.bs.modal', function (event) {
instrumentNameInModal.textContent = instrumentName;

var instrumentWikidataIdInModal = uploadImagesModal.querySelector(
'#instrumentWikidataId'
'#instrumentWikidataIdInModal'
);
instrumentWikidataIdInModal.textContent = instrumentWikidataId;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ <h5 class="modal-title" id="uploadImagesModalLabel">Upload Images</h5>
<form id="imageUploadForm" enctype="multipart/form-data">
{% csrf_token %}
<input type="hidden"
id="instrumentWikidataId"
id="instrumentWikidataIdInModal"
name="wikidata_id"
value="{{ wikidata_id }}" />
<div class="mb-3">
<label for="imageFiles" class="form-label">
Select Images for <span id="instrumentNameInModal"></span>
Select Images for
<span id="instrumentNameInModal"></span>
(wikidata ID:<span id="instrumentWikidataIdInModal"></span>)
</label>
<input class="form-control"
type="file"
Expand Down

0 comments on commit eaca2c1

Please sign in to comment.