Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
carolineBda committed Oct 12, 2023
1 parent dc7d28c commit ae9e8b1
Showing 1 changed file with 55 additions and 43 deletions.
98 changes: 55 additions & 43 deletions targets/frontend/src/components/documents/SearchFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,74 +122,86 @@ export function SearchFilters({ initialValues, onSearchUpdate }) {
<Inline paddingTop="20px" paddingLeft="20px" paddingBottom="10px">
<Inline>
<FormLabel>Publication :</FormLabel>
<div sx={{ cursor: "pointer" }}>
<FormControlLabel
value="all"
control={
<Radio
{...register("published")}
checked={initialValues.published === "all"}
onChange={triggerUpdateUrl}
/>
}
label="Tous"
/>
</div>
<div sx={{ cursor: "pointer" }}>
<FormControlLabel
value="yes"
control={
<Radio
{...register("published")}
checked={initialValues.published === "yes"}
onChange={triggerUpdateUrl}
/>
}
label="Publié"
/>
</div>
<div sx={{ cursor: "pointer" }}>
<FormControlLabel
value="no"
control={
<Radio
{...register("published")}
checked={initialValues.published === "no"}
onChange={triggerUpdateUrl}
/>
}
label="Non-publié"
/>
</div>
</Inline>
<FormLabel>Status :</FormLabel>
<div sx={{ cursor: "pointer" }}>
<FormControlLabel
value="all"
control={
<Radio
{...register("published")}
checked={initialValues.published === "all"}
{...register("available")}
checked={initialValues.available === "all"}
onChange={triggerUpdateUrl}
/>
}
label="Tous"
/>
</div>
<div sx={{ cursor: "pointer" }}>
<FormControlLabel
value="yes"
control={
<Radio
{...register("published")}
checked={initialValues.published === "yes"}
{...register("available")}
checked={initialValues.available === "yes"}
onChange={triggerUpdateUrl}
/>
}
label="Publié"
label="Disponible"
/>
</div>
<div sx={{ cursor: "pointer" }}>
<FormControlLabel
value="no"
control={
<Radio
{...register("published")}
checked={initialValues.published === "no"}
{...register("available")}
checked={initialValues.available === "no"}
onChange={triggerUpdateUrl}
/>
}
label="Non-publié"
label="Supprimé"
/>
</Inline>
<FormLabel>Status :</FormLabel>
<FormControlLabel
value="all"
control={
<Radio
{...register("available")}
checked={initialValues.available === "all"}
onChange={triggerUpdateUrl}
/>
}
label="Tous"
/>
<FormControlLabel
value="yes"
control={
<Radio
{...register("available")}
checked={initialValues.available === "yes"}
onChange={triggerUpdateUrl}
/>
}
label="Disponible"
/>
<FormControlLabel
value="no"
control={
<Radio
{...register("available")}
checked={initialValues.available === "no"}
onChange={triggerUpdateUrl}
/>
}
label="Supprimé"
/>
</div>
</Inline>
</form>
);
Expand Down

0 comments on commit ae9e8b1

Please sign in to comment.