diff --git a/backend/src/modules/documents/repositories/document-contract-list-view.repository.ts b/backend/src/modules/documents/repositories/document-contract-list-view.repository.ts index a5556d2e..d63cbddc 100644 --- a/backend/src/modules/documents/repositories/document-contract-list-view.repository.ts +++ b/backend/src/modules/documents/repositories/document-contract-list-view.repository.ts @@ -91,7 +91,10 @@ export class DocumentContractListViewRepository extends RepositoryWithPagination if (search) { query.andWhere( this.buildBracketSearchQuery( - ['documentContractListView.documentNumber', 'user.name'], + [ + 'documentContractListView.documentNumber', + 'documentContractListView.volunteerName', + ], search, ), ); diff --git a/frontend/src/components/AutoFillContractCard.tsx b/frontend/src/components/AutoFillContractCard.tsx index a6b24e79..ef69cea6 100644 --- a/frontend/src/components/AutoFillContractCard.tsx +++ b/frontend/src/components/AutoFillContractCard.tsx @@ -64,57 +64,63 @@ export const AutoFillContractCard = ({ onSubmit }: AutoFillContractCardProps) =>

{t('title')}

{t('description')}

-
- { - return ( - - ); - }} - /> - ( -
- +
+ { + return ( + + ); + }} + /> + +
+
+ ( +
+ +
+ )} + /> +
+
+ ( + -
- )} - /> - - ( - - )} - /> + )} + /> +
-
+ ); }; diff --git a/frontend/src/components/Input.tsx b/frontend/src/components/Input.tsx index b952fd18..1963575d 100644 --- a/frontend/src/components/Input.tsx +++ b/frontend/src/components/Input.tsx @@ -9,7 +9,7 @@ export interface InputProps extends ComponentPropsWithoutRef<'input'> { const Input = ({ label, helper, wrapperClassname, ...props }: InputProps) => { return (
- {label && } + {label && } {helper}