Skip to content

Commit

Permalink
move service unit filter next to basic search in leases view
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrytovuori committed May 3, 2024
1 parent a72e31c commit fa4f9de
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions src/leases/components/search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,27 @@ class Search extends PureComponent<Props, State> {
/>
</Column>
</Row>
<SearchRow>
<SearchLabelColumn>
<SearchLabel>Palvelukokonaisuus</SearchLabel>
</SearchLabelColumn>
<SearchInputColumn>
<FormField
autoBlur
disableDirty
fieldAttributes={{
label: 'Palvelukokonaisuus',
type: FieldTypes.CHOICE,
read_only: false,
}}
invisibleLabel
name='service_unit'
overrideValues={{
options: serviceUnitOptions,
}}
/>
</SearchInputColumn>
</SearchRow>
{!isBasicSearch &&
<Fragment>
<Row>
Expand Down Expand Up @@ -737,28 +758,6 @@ class Search extends PureComponent<Props, State> {
/>
</SearchInputColumn>
</SearchRow>

<SearchRow>
<SearchLabelColumn>
<SearchLabel>Palvelukokonaisuus</SearchLabel>
</SearchLabelColumn>
<SearchInputColumn>
<FormField
autoBlur
disableDirty
fieldAttributes={{
label: 'Palvelukokonaisuus',
type: FieldTypes.CHOICE,
read_only: false,
}}
invisibleLabel
name='service_unit'
overrideValues={{
options: serviceUnitOptions,
}}
/>
</SearchInputColumn>
</SearchRow>
</Column>
</Row>
</Fragment>
Expand Down

0 comments on commit fa4f9de

Please sign in to comment.