Skip to content

Commit

Permalink
Add 'Document Reviewer' Role type
Browse files Browse the repository at this point in the history
  • Loading branch information
kamicut committed Oct 11, 2023
1 parent bd6ca5b commit 3c9fd7d
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const roleTypes = [
'Supervision',
'Investigation',
'Funding acquisition',
'Corresponding Author'
'Corresponding Author',
'Document Reviewer'
];

const emptyAffiliation = '';
Expand Down Expand Up @@ -96,6 +97,21 @@ export default function ContactsFieldset(props) {
))}
</RolesGroup>
</FormGroupStructure>
<FormGroupStructure
id={`${name}-${index}-reviewer`}
name={`${name}.${index}.reviewer`}
label='Reviewer Info'
description={formString(`contact_information.reviewer_info`)}
>
<FormikInputCheckable
type='checkbox'
id={`${name}-${index}-reviewer-checkbox`}
name={`${name}.${index}.reviewer`}
>
Mark contact as reviewer for this document
</FormikInputCheckable>
</FormGroupStructure>

<FieldArray
name={`${name}.${index}.affiliations`} // will be affFieldName
render={({ remove, push, form, name: affFieldName }) => {
Expand Down

0 comments on commit 3c9fd7d

Please sign in to comment.