This repository has been archived by the owner on Sep 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
137 additions
and
8 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
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,29 @@ | ||
extends ../layout | ||
|
||
block content | ||
.pb-2.mt-2.mb-4.border-bottom | ||
h2 | ||
i.fas.fa-upload.fa-sm | ||
| Multiple entity image upload | ||
|
||
//h3 File Upload Form | ||
.row | ||
.col-md-6 | ||
p All files will be uploaded | ||
form(action='/image/multi_upload' role='form', method='POST') | ||
input(type='hidden', name='_csrf', value=_csrf) | ||
.form-group | ||
for entry in entities | ||
label.col-form-label.font-weight-bold | ||
a(href=entry.link)=entry.label | ||
.col-md-12 | ||
//input(type='hidden', name='wikidataEntityId' id='wikidataEntity_id', value=entry.id) | ||
if entry.images | ||
span Image already present on Wikidata | ||
else if entry.existing.length > 0 | ||
span Image already present in Database | ||
else | ||
input(type='text', name='sourceUrl['+entry.id+']') | ||
span(style='margin-left:20px') | ||
a(target='_blank' href='https://www.google.com/search?tbm=isch&as_q='+entry.label) google | ||
button.btn.btn-primary(type='submit') Submit |