Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DFG Study
UI
Commits
7ea58345
Commit
7ea58345
authored
Nov 15, 2021
by
v.mattfeld
Browse files
add I do not know option to question one
parent
3f68f600
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/Form.tsx
View file @
7ea58345
...
...
@@ -10,6 +10,7 @@ import { attentionCheckState, Check } from 'pages/annotate';
import
{
logger
}
from
'
utils/logger
'
;
import
{
fetcher
}
from
'
utils/utils
'
;
import
{
STUDY_SIZE
}
from
'
db/db
'
;
import
_
from
'
lodash
'
;
const
validateSchema
=
Yup
.
object
({
sensitivity
:
Yup
.
string
().
required
(),
...
...
@@ -203,35 +204,21 @@ const Form: FC<FormProps> = ({ pageNumber, uid, imageID, refetch, isCheck }) =>
<
Table
variant
=
'simple'
>
<
Thead
>
<
Tr
>
<
Th
>
{
t
(
'
a11
'
)
}
</
Th
>
<
Th
>
{
t
(
'
a12
'
)
}
</
Th
>
<
Th
>
{
t
(
'
a13
'
)
}
</
Th
>
<
Th
>
{
t
(
'
a14
'
)
}
</
Th
>
{
_
.
range
(
1
,
6
).
map
((
val
,
index
)
=>
(
<
Th
key
=
{
index
}
>
{
t
(
`a1
${
val
}
`
)
}
</
Th
>
))
}
</
Tr
>
</
Thead
>
<
Tbody
>
<
Tr
>
<
Td
>
<
Radio
value
=
"1"
/>
</
Td
>
<
Td
>
<
Radio
value
=
"2"
/>
</
Td
>
<
Td
>
<
Radio
value
=
"3"
/>
</
Td
>
<
Td
>
<
Radio
value
=
"4"
/>
</
Td
>
{
_
.
range
(
1
,
6
).
map
((
val
,
index
)
=>
(
<
Td
key
=
{
index
}
>
<
Radio
value
=
{
`
${
val
}
`
}
/>
</
Td
>
))
}
</
Tr
>
</
Tbody
>
</
Table
>
{
/* <Stack spacing="1">
<Radio value="1">{t('a11')}</Radio>
<Radio value="3">{t('a12')}</Radio>
<Radio value="2">{t('a13')}</Radio>
<Radio value="4">{t('a14')}</Radio>
</Stack> */
}
</
RadioGroupControl
>
<
CheckboxContainer
mt
=
{
4
}
name
=
"targetDemographic"
label
=
{
!
isQuestionOne
&&
isCheck
?
t
(
'
checkTwo
'
)
:
t
(
'
questionTwo
'
)
...
...
i18n/resources.ts
View file @
7ea58345
...
...
@@ -17,6 +17,7 @@ export const resources = {
a12
:
"
agree
"
,
a13
:
"
disagree
"
,
a14
:
"
strongly disagree
"
,
a15
:
"
I do not know
"
,
a21
:
"
Friends
"
,
a22
:
"
Family
"
,
a23
:
"
Colleagues
"
,
...
...
@@ -55,6 +56,7 @@ export const resources = {
a12
:
"
stimme zu
"
,
a13
:
"
stimme nicht zu
"
,
a14
:
"
stimme absolut nicht zu
"
,
a15
:
"
Ich weiß es nicht
"
,
a21
:
"
Freunde
"
,
a22
:
"
Familie
"
,
a23
:
"
Arbeit / Kollegen
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment