Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Commit

Permalink
PASS id and label from Get #21
Browse files Browse the repository at this point in the history
  • Loading branch information
mshd committed Sep 26, 2020
1 parent 5bfc9aa commit 1e5a69c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion controllers/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ exports.handleMultiUrlUpload = async (req, res, next) => {
exports.getFileUpload = (req, res) => {
res.render('image/upload', {
title: 'File Upload',
// query: req.query
query: req.query
});
};

Expand Down
6 changes: 3 additions & 3 deletions views/image/upload.pug
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ block content
input(type='text', name='name')
label.col-form-label.font-weight-bold Wikidata ID
.col-md-6
input(type='text', name='wikidataEntity', class='wikidata-searchbox', required)
input(type='text', name='wikidataEntity', class='wikidata-searchbox', value=query.qLabel, required)
.col-md-6
input(type='hidden', name='wikidataEntityId' id='wikidataEntity_id')
label.col-form-label.font-weight-bold File Input
input(type='text', name='wikidataEntityId' id='wikidataEntity_id', value=query.qId, required, readonly)
label.col-form-label.font-weight-bold File Input (optional)
.col-md-6
input(type='file', name='myFile', accept='image/*')
label.col-form-label.font-weight-bold File URL
Expand Down

0 comments on commit 1e5a69c

Please sign in to comment.