@ -136,27 +136,27 @@ const FilterByText = ({ setFilter, reload, ...props }) => {
return < Box mb = 'x16' is = 'form' onSubmit = { onSubmit } display = 'flex' flexDirection = 'column' { ... props } >
< Box display = 'flex' flexDirection = 'row' flexWrap = 'wrap' { ... props } >
< Box display = 'flex' mie = 'x8' flexGrow = { 1 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'Guest' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'Guest' ) } < / L a b e l >
< TextInput flexShrink = { 0 } placeholder = { t ( 'Guest' ) } onChange = { handleGuest } value = { guest } / >
< / B o x >
< Box display = 'flex' mie = 'x8' flexGrow = { 1 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'Served_By' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'Served_By' ) } < / L a b e l >
< AutoCompleteAgent value = { servedBy } onChange = { handleServedBy } / >
< / B o x >
< Box display = 'flex' mie = 'x8' flexGrow = { 1 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'Department' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'Department' ) } < / L a b e l >
< AutoCompleteDepartment value = { department } onChange = { handleDepartment } / >
< / B o x >
< Box display = 'flex' mie = 'x8' flexGrow = { 1 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'Status' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'Status' ) } < / L a b e l >
< Select flexShrink = { 0 } options = { statusOptions } value = { status } onChange = { handleStatus } placeholder = { t ( 'Status' ) } / >
< / B o x >
< Box display = 'flex' mie = 'x8' flexGrow = { 0 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'From' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'From' ) } < / L a b e l >
< InputBox type = 'date' flexShrink = { 0 } placeholder = { t ( 'From' ) } onChange = { handleFrom } value = { from } / >
< / B o x >
< Box display = 'flex' mie = 'x8' flexGrow = { 0 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'To' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'To' ) } < / L a b e l >
< InputBox type = 'date' flexShrink = { 0 } placeholder = { t ( 'To' ) } onChange = { handleTo } value = { to } / >
< / B o x >
@ -164,13 +164,13 @@ const FilterByText = ({ setFilter, reload, ...props }) => {
< / B o x >
{ Tags && < Box display = 'flex' flexDirection = 'row' marginBlockStart = 'x8' { ... props } >
< Box display = 'flex' mie = 'x8' flexGrow = { 1 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'Tags' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'Tags' ) } < / L a b e l >
< Tags value = { tags } handler = { handleTags } / >
< / B o x >
< / B o x > }
{ allCustomFields && < Box display = 'flex' flexDirection = 'row' marginBlockStart = 'x8' { ... props } >
< Box display = 'flex' mie = 'x8' flexGrow = { 1 } flexDirection = 'column' >
< Label mb = 'x4' > { t ( 'Custom_Fields' ) } : < / L a b e l >
< Label mb = 'x4' > { t ( 'Custom_Fields' ) } < / L a b e l >
< MultiSelect options = { customFieldsOptions } value = { customFields } onChange = { handleCustomFields } flexGrow = { 1 } { ... props } / >
< / B o x >
< / B o x > }