summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotationForms
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-10-21 18:19:21 +0200
committerJules Laplace <julescarbon@gmail.com>2020-10-21 18:19:21 +0200
commit3f76b12c0f822d2d47dfbdd745f80ee803d95d98 (patch)
treefe758d570a84775e7941905c8859ded21c36876a /animism-align/frontend/app/views/align/components/annotations/annotationForms
parent07cfcc049e8d7bf437b732808397d7b41be9f841 (diff)
form field for actual ts of note
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotationForms')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js16
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js2
2 files changed, 18 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js
index aeebc55..82a0d6e 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/annotationForm.text.js
@@ -83,3 +83,19 @@ export const AnnotationFormTextPlate = ({ annotation, handleSettingsSelect, hand
</div>
)
}
+
+
+export const AnnotationFormFootnote = ({ annotation, handleSettingsSelect, handleSettingsChange }) => {
+ return (
+ <div className='options'>
+ <TextInput
+ title="Actual Timestamp"
+ name="actual_ts"
+ placeholder="0:00"
+ data={annotation.settings}
+ onChange={handleSettingsChange}
+ autoComplete="off"
+ />
+ </div>
+ )
+}
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
index 4f91354..9a3b386 100644
--- a/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
+++ b/animism-align/frontend/app/views/align/components/annotations/annotationForms/index.js
@@ -1,6 +1,7 @@
import {
AnnotationFormSectionHeading,
AnnotationFormTextPlate,
+ AnnotationFormFootnote,
} from './annotationForm.text'
import {
@@ -24,6 +25,7 @@ import {
export const annotationFormLookup = {
section_heading: AnnotationFormSectionHeading,
text_plate: AnnotationFormTextPlate,
+ footnote: AnnotationFormFootnote,
image: AnnotationFormImage,
video: AnnotationFormVideo,