summaryrefslogtreecommitdiff
path: root/scraper/client/paper/paper.verify.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-22 11:36:58 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-22 11:36:58 +0100
commit14801152b0502d80db0c641edb6ab84f0b16892d (patch)
treef165eaa429eae04bcc343beb0dab2361eeafdef1 /scraper/client/paper/paper.verify.js
parent70ca91332afacff219b51addde89ab9eb5ea7dd2 (diff)
add reference field
Diffstat (limited to 'scraper/client/paper/paper.verify.js')
-rw-r--r--scraper/client/paper/paper.verify.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js
index 015c52bc..5f85a551 100644
--- a/scraper/client/paper/paper.verify.js
+++ b/scraper/client/paper/paper.verify.js
@@ -14,6 +14,7 @@ const initialState = {
doesnt_use_dataset: true,
images_in_paper: false,
verified_by: localStorage.getItem('verify.username') || '',
+ reference: '',
notes: '',
pdf_index: 0,
}
@@ -66,6 +67,7 @@ class PaperVerify extends Component {
doesnt_use_dataset: paper.doesnt_use_dataset === "TRUE",
images_in_paper: paper.images_in_paper === "TRUE",
verified_by: paper.verified_by,
+ reference: paper.reference,
notes: paper.notes,
})
}
@@ -104,6 +106,7 @@ class PaperVerify extends Component {
doesnt_use_dataset: this.state.doesnt_use_dataset,
images_in_paper: this.state.images_in_paper,
verified_by: this.state.verified_by,
+ reference: this.state.reference,
notes: this.state.notes,
date: dateString,
})
@@ -236,9 +239,22 @@ class PaperVerify extends Component {
</div>
<div className='param'>
+ <label>Reference</label>
+ <textarea
+ rows={3}
+ cols={50}
+ type='text'
+ className='notes'
+ value={this.state.notes}
+ placeholder='Notes'
+ onChange={e => this.setState({ notes: e.target.value })}
+ />
+ </div>
+
+ <div className='param'>
<label>Notes</label>
<textarea
- rows={4}
+ rows={3}
cols={50}
type='text'
className='notes'