Skip to content

Commit

Permalink
fix search order translation
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Sep 25, 2023
1 parent e616bec commit 416a636
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 14 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/modifyOrder/ModifyOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const ModifyOrder = () => {
{intl.formatMessage({ id: "home.label" })}
</BreadcrumbItem>
<BreadcrumbItem href="/FindOrder">
{intl.formatMessage({ id: "label.search.patient" })}
{intl.formatMessage({ id: "sample.label.search.Order" })}
</BreadcrumbItem>
</Breadcrumb>

Expand Down
26 changes: 18 additions & 8 deletions frontend/src/components/modifyOrder/SearchOrder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState, useEffect, useRef } from "react";
import SearchPatientForm from "../patient/SearchPatientForm";
import { Button, Column, TextInput ,Grid ,Form} from "@carbon/react";
import { Button, Column, TextInput, Grid, Form } from "@carbon/react";
import { FormattedMessage } from "react-intl";

function SearchOrder() {
const [selectedPatient, setSelectedPatient] = useState({});
Expand Down Expand Up @@ -37,8 +38,8 @@ function SearchOrder() {
<div className="orderLegendBody">
<Form onSubmit={handleSearch}>
<Grid>
<Column lg={16}>
<h4>Search By Accesion</h4>
<Column lg={16}>
<h4> <FormattedMessage id="sample.label.search.labnumber" /></h4>
</Column>
<Column lg={4}>
<TextInput
Expand All @@ -48,16 +49,25 @@ function SearchOrder() {
/>
</Column>
<Column lg={2}>
<Button type="submit">Search</Button>
<Button type="submit"> <FormattedMessage id="label.button.submit" /></Button>
</Column>
</Grid>
</Form>
</div>
<div className="orderLegendBody">
<h4>Search By Patient</h4>
<SearchPatientForm
getSelectedPatient={getSelectedPatient}
></SearchPatientForm>
<Grid>
<Column lg={16}>
<h4>
{" "}
<FormattedMessage id="sample.label.search.patient" />
</h4>
</Column>
<Column lg={16}>
<SearchPatientForm
getSelectedPatient={getSelectedPatient}
></SearchPatientForm>
</Column>
</Grid>
</div>
</>
);
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/pathology/PathologyDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function PathologyDashboard() {
assignCurrentUserAsTechnician(e, pathologySampleId);
}}
>
<FormattedMessage id="label.button.start"/>
<FormattedMessage id="label.button.start" />
</Button>
</TableCell>
);
Expand All @@ -105,8 +105,8 @@ function PathologyDashboard() {
onClick={(e) => {
assignCurrentUserAsPathologist(e, pathologySampleId);
}}
>
<FormattedMessage id="label.button.start"/>
>
<FormattedMessage id="label.button.start" />
</Button>
</TableCell>
);
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,9 @@
"patient.natioanalid":"National ID",
"sample.label.orderpanel":"Order Panels",
"sample.label.noorder":"Order Doesnt Exist",
"sample.label.labnumber.new" : "New Lab Number"
"sample.label.labnumber.new" : "New Lab Number" ,
"sample.label.search.labnumber" : "Search By Accesion Number" ,
"sample.label.search.patient" : "Search By Patient" ,
"sample.label.search.Order" : "Search Order"

}
5 changes: 4 additions & 1 deletion frontend/src/languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,8 @@
"patient.nationalid": "Identifiant National",
"sample.label.orderpanel": "Panels de commande",
"sample.label.noorder": "La commande n'existe pas" ,
"sample.label.labnumber.new": "Nouveau numéro de laboratoire"
"sample.label.labnumber.new": "Nouveau numéro de laboratoire" ,
"sample.label.search.labnumber": "Rechercher par numéro d'accès",
"sample.label.search.patient": "Rechercher par patient",
"sample.label.search.Order": "Rechercher une commande"
}

0 comments on commit 416a636

Please sign in to comment.