Browse Source

Fix invite form validating and field names

master
Joshua Rubingh 7 months ago
parent
commit
3222385035
  1. 5
      locales/en.js
  2. 5
      locales/nl.js
  3. 2
      pages/researchStudies/_studyId/contributors/invite.vue

5
locales/en.js

@ -12,9 +12,10 @@ export default { @@ -12,9 +12,10 @@ export default {
'form.projectCode': 'Project code',
'form.usesHumanSubjectData': 'Uses human subject data',
'form.studyField': 'Study field',
'form.contributorName': 'Contributor name',
'form.contributorFirstName': 'Contributor first name',
'form.contributorLastName': 'Contributor last name',
'form.contributorEmail': 'Contributor email',
'form.role': 'Role',
'form.contributorRole': 'Role',
'form.search': 'Search',
'link.home': 'Home page',
'link.researchStudies': 'Research studies',

5
locales/nl.js

@ -12,9 +12,10 @@ export default { @@ -12,9 +12,10 @@ export default {
'form.projectCode': 'Project code',
'form.usesHumanSubjectData': 'Uses human subject data',
'form.studyField': 'Study field',
'form.contributorName': 'Contributor name',
'form.contributorFirstName': 'Contributor first name',
'form.contributorLastName': 'Contributor last name',
'form.contributorEmail': 'Contributor email',
'form.role': 'Role',
'form.contributorRole': 'Role',
'form.search': 'Search',
'link.home': 'Home page',
'link.researchStudies': 'Research studies',

2
pages/researchStudies/_studyId/contributors/invite.vue

@ -90,7 +90,7 @@ export default { @@ -90,7 +90,7 @@ export default {
format: 'email',
},
role: {
type: 'integer',
type: 'string',
},
},
required: ['first_name', 'last_name', 'email', 'role'],

Loading…
Cancel
Save