diff --git a/web-app/django/VIM/apps/instruments/static/instruments/css/detail.css b/web-app/django/VIM/apps/instruments/static/instruments/css/detail.css deleted file mode 100644 index 7cb5e4f..0000000 --- a/web-app/django/VIM/apps/instruments/static/instruments/css/detail.css +++ /dev/null @@ -1,99 +0,0 @@ -.instrument-detail { - display: flex; - flex-wrap: nowrap; - align-items: center; - flex-direction: column; - padding: 50px; -} -.detail-header { - display: flex; - flex-direction: row; - justify-content: flex-start; - flex-wrap: wrap; - width: 100%; -} -.detail-header hr { - width: 100%; -} -.detail-body { - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: space-evenly; - align-items: flex-start; - width: 100%; -} -.detail-image { - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: flex-start; -} -.instrument-image { - max-width: 50%; - margin-right: 10px; -} -.detail-image-caption { - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: flex-start; - align-items: flex-start; -} -.instrument-forms { - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; - width: 100%; -} -.name-form-item { - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-between; - align-items: center; -} -.name-field { - width: 90%; -} -input.edit-field { - width: inherit; -} -th[scope='col'] { - width: 30%; -} -th[scope='row'] { - width: 20%; -} -.button-group { - display: flex; - flex-direction: row; -} -.edit-field, -.btn.cancel, -.btn.publish { - display: none; -} -.btn { - display: inline-block; - padding: 5px 10px; - cursor: pointer; - text-align: center; - text-decoration: none; - outline: none; - color: #fff; - border: none; - border-radius: 3px; - margin-right: 5px; -} -.btn.edit { - background-color: #ffc107; -} -.btn.cancel { - background-color: #dc3545; -} -.btn.publish { - background-color: #28a745; -} diff --git a/web-app/django/VIM/apps/instruments/static/instruments/js/ImageUpload.js b/web-app/django/VIM/apps/instruments/static/instruments/js/ImageUpload.js index 87b9b52..6c9e8cb 100644 --- a/web-app/django/VIM/apps/instruments/static/instruments/js/ImageUpload.js +++ b/web-app/django/VIM/apps/instruments/static/instruments/js/ImageUpload.js @@ -26,7 +26,7 @@ uploadImagesModal.addEventListener('show.bs.modal', function (event) { instrumentNameInModal.textContent = instrumentName; var instrumentWikidataIdInModal = uploadImagesModal.querySelector( - '#instrumentWikidataId' + '#instrumentWikidataIdInModal' ); instrumentWikidataIdInModal.textContent = instrumentWikidataId; }); diff --git a/web-app/django/VIM/apps/instruments/templates/instruments/includes/uploadImgModal.html b/web-app/django/VIM/apps/instruments/templates/instruments/includes/uploadImgModal.html index caab7aa..ecac235 100644 --- a/web-app/django/VIM/apps/instruments/templates/instruments/includes/uploadImgModal.html +++ b/web-app/django/VIM/apps/instruments/templates/instruments/includes/uploadImgModal.html @@ -19,12 +19,14 @@