File tree Expand file tree Collapse file tree 8 files changed +57
-73
lines changed
apps/frontend/src/routes/_auth/administration Expand file tree Collapse file tree 8 files changed +57
-73
lines changed Original file line number Diff line number Diff line change @@ -44,16 +44,14 @@ function AdministrationLanguagesEdit() {
44
44
} , [ isSuccess , data ] ) ;
45
45
46
46
return (
47
- < >
48
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
49
- < TextInput label = "Name" type = "name" { ...f . getInputProps ( "name" ) } />
50
- < TextInput label = "IETF BCP 47" type = "text" { ...f . getInputProps ( "ietfBcp47" ) } />
47
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
48
+ < TextInput label = "Name" type = "name" { ...f . getInputProps ( "name" ) } />
49
+ < TextInput label = "IETF BCP 47" type = "text" { ...f . getInputProps ( "ietfBcp47" ) } />
51
50
52
- < Button type = "submit" fullWidth mt = "xl" loading = { editCarerMutation . isPending } >
53
- Change
54
- </ Button >
55
- </ form >
56
- </ >
51
+ < Button type = "submit" fullWidth mt = "xl" loading = { editCarerMutation . isPending } >
52
+ Change
53
+ </ Button >
54
+ </ form >
57
55
) ;
58
56
}
59
57
Original file line number Diff line number Diff line change @@ -24,16 +24,14 @@ function AdministrationLanguagesNew() {
24
24
} ;
25
25
26
26
return (
27
- < >
28
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
29
- < TextInput label = "Name" type = "text" { ...f . getInputProps ( "name" ) } required />
30
- < TextInput label = "IETF BCP 47" type = "text" { ...f . getInputProps ( "ietfBcp47" ) } />
27
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
28
+ < TextInput label = "Name" type = "text" { ...f . getInputProps ( "name" ) } required />
29
+ < TextInput label = "IETF BCP 47" type = "text" { ...f . getInputProps ( "ietfBcp47" ) } />
31
30
32
- < Button type = "submit" fullWidth mt = "xl" loading = { createLanguageMutation . isPending } >
33
- Create
34
- </ Button >
35
- </ form >
36
- </ >
31
+ < Button type = "submit" fullWidth mt = "xl" loading = { createLanguageMutation . isPending } >
32
+ Create
33
+ </ Button >
34
+ </ form >
37
35
) ;
38
36
}
39
37
Original file line number Diff line number Diff line change @@ -24,16 +24,14 @@ function AdministrationParticipantsNew() {
24
24
} ;
25
25
26
26
return (
27
- < >
28
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
29
- < TextInput label = "Id" type = "number" { ...f . getInputProps ( "id" ) } defaultValue = { undefined } required />
30
- < TextInput label = "Birthday" type = "date" { ...f . getInputProps ( "birthday" ) } required />
27
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
28
+ < TextInput label = "Id" type = "number" { ...f . getInputProps ( "id" ) } defaultValue = { undefined } required />
29
+ < TextInput label = "Birthday" type = "date" { ...f . getInputProps ( "birthday" ) } required />
31
30
32
- < Button type = "submit" fullWidth mt = "xl" loading = { createParticipantMutation . isPending } >
33
- Create
34
- </ Button >
35
- </ form >
36
- </ >
31
+ < Button type = "submit" fullWidth mt = "xl" loading = { createParticipantMutation . isPending } >
32
+ Create
33
+ </ Button >
34
+ </ form >
37
35
) ;
38
36
}
39
37
Original file line number Diff line number Diff line change @@ -40,15 +40,13 @@ function AdministrationQuestionnairesEdit() {
40
40
} , [ isSuccess , data ] ) ;
41
41
42
42
return (
43
- < >
44
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
45
- < TextInput label = "Name" type = "name" { ...f . getInputProps ( "title" ) } />
43
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
44
+ < TextInput label = "Name" type = "name" { ...f . getInputProps ( "title" ) } />
46
45
47
- < Button type = "submit" fullWidth mt = "xl" loading = { editQuestionnaireMutation . isPending } >
48
- Change
49
- </ Button >
50
- </ form >
51
- </ >
46
+ < Button type = "submit" fullWidth mt = "xl" loading = { editQuestionnaireMutation . isPending } >
47
+ Change
48
+ </ Button >
49
+ </ form >
52
50
) ;
53
51
}
54
52
Original file line number Diff line number Diff line change @@ -40,16 +40,14 @@ function AdministrationStudiesEdit() {
40
40
} , [ study . isSuccess , study . data ] ) ;
41
41
42
42
return (
43
- < >
44
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
45
- < TextInput label = "Id" type = "number" { ...f . getInputProps ( "id" ) } required />
46
- < TextInput label = "Title" type = "text" { ...f . getInputProps ( "title" ) } required />
43
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
44
+ < TextInput label = "Id" type = "number" { ...f . getInputProps ( "id" ) } required />
45
+ < TextInput label = "Title" type = "text" { ...f . getInputProps ( "title" ) } required />
47
46
48
- < Button type = "submit" fullWidth mt = "xl" loading = { editStudyMutation . isPending } >
49
- Change
50
- </ Button >
51
- </ form >
52
- </ >
47
+ < Button type = "submit" fullWidth mt = "xl" loading = { editStudyMutation . isPending } >
48
+ Change
49
+ </ Button >
50
+ </ form >
53
51
) ;
54
52
}
55
53
Original file line number Diff line number Diff line change @@ -25,16 +25,14 @@ function AdministrationStudiesNew() {
25
25
} ;
26
26
27
27
return (
28
- < >
29
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
30
- < TextInput label = "Id" type = "number" { ...f . getInputProps ( "id" ) } defaultValue = { undefined } required />
31
- < TextInput label = "Title" type = "text" { ...f . getInputProps ( "title" ) } required />
28
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
29
+ < TextInput label = "Id" type = "number" { ...f . getInputProps ( "id" ) } defaultValue = { undefined } required />
30
+ < TextInput label = "Title" type = "text" { ...f . getInputProps ( "title" ) } required />
32
31
33
- < Button type = "submit" fullWidth mt = "xl" loading = { createStudyMutation . isPending } >
34
- Create
35
- </ Button >
36
- </ form >
37
- </ >
32
+ < Button type = "submit" fullWidth mt = "xl" loading = { createStudyMutation . isPending } >
33
+ Create
34
+ </ Button >
35
+ </ form >
38
36
) ;
39
37
}
40
38
Original file line number Diff line number Diff line change @@ -35,17 +35,15 @@ function AdministrationUsersEdit() {
35
35
} , [ user . isSuccess , user . data ] ) ;
36
36
37
37
return (
38
- < >
39
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
40
- < TextInput label = "Email" type = "email" { ...f . getInputProps ( "email" ) } />
41
- < PasswordInput label = "Password" { ...f . getInputProps ( "password" ) } autoComplete = "new-password" />
42
- < Select label = "Role" data = { userMutationDtoRoleValues } { ...f . getInputProps ( "role" ) } />
38
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
39
+ < TextInput label = "Email" type = "email" { ...f . getInputProps ( "email" ) } />
40
+ < PasswordInput label = "Password" { ...f . getInputProps ( "password" ) } autoComplete = "new-password" />
41
+ < Select label = "Role" data = { userMutationDtoRoleValues } { ...f . getInputProps ( "role" ) } />
43
42
44
- < Button type = "submit" fullWidth mt = "xl" loading = { editUserMutation . isPending } >
45
- Change
46
- </ Button >
47
- </ form >
48
- </ >
43
+ < Button type = "submit" fullWidth mt = "xl" loading = { editUserMutation . isPending } >
44
+ Change
45
+ </ Button >
46
+ </ form >
49
47
) ;
50
48
}
51
49
Original file line number Diff line number Diff line change @@ -24,17 +24,15 @@ function AdministrationUsersNew() {
24
24
} ;
25
25
26
26
return (
27
- < >
28
- < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
29
- < TextInput label = "Email" type = "email" { ...f . getInputProps ( "email" ) } required />
30
- < PasswordInput label = "Password" { ...f . getInputProps ( "password" ) } autoComplete = "new-password" required />
31
- < Select label = "Role" { ...f . getInputProps ( "role" ) } data = { userCreationDtoRoleValues } />
27
+ < form autoComplete = "off" onSubmit = { f . onSubmit ( handleSubmit ) } >
28
+ < TextInput label = "Email" type = "email" { ...f . getInputProps ( "email" ) } required />
29
+ < PasswordInput label = "Password" { ...f . getInputProps ( "password" ) } autoComplete = "new-password" required />
30
+ < Select label = "Role" { ...f . getInputProps ( "role" ) } data = { userCreationDtoRoleValues } />
32
31
33
- < Button type = "submit" fullWidth mt = "xl" loading = { createUserMutation . isPending } >
34
- Create
35
- </ Button >
36
- </ form >
37
- </ >
32
+ < Button type = "submit" fullWidth mt = "xl" loading = { createUserMutation . isPending } >
33
+ Create
34
+ </ Button >
35
+ </ form >
38
36
) ;
39
37
}
40
38
You can’t perform that action at this time.
0 commit comments