forked from DIGI-UW/OpenELIS-Global-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DIGI-UW#1215 from adityadeshlahre/fix-rewriting-Te…
…stManagementConfigMenu-page Fix rewriting test management config menu page
- Loading branch information
Showing
76 changed files
with
11,847 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
frontend/src/components/admin/testManagementConfigMenu/MethodCreate.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
import React, { useContext, useState, useEffect, useRef } from "react"; | ||
import { | ||
Form, | ||
Heading, | ||
Button, | ||
Loading, | ||
Grid, | ||
Column, | ||
Section, | ||
DataTable, | ||
Table, | ||
TableHead, | ||
TableRow, | ||
TableBody, | ||
TableHeader, | ||
TableCell, | ||
TableSelectRow, | ||
TableSelectAll, | ||
TableContainer, | ||
Pagination, | ||
Search, | ||
Select, | ||
SelectItem, | ||
Stack, | ||
} from "@carbon/react"; | ||
import { | ||
getFromOpenElisServer, | ||
postToOpenElisServer, | ||
postToOpenElisServerFormData, | ||
postToOpenElisServerFullResponse, | ||
postToOpenElisServerJsonResponse, | ||
} from "../../utils/Utils.js"; | ||
import { NotificationContext } from "../../layout/Layout.js"; | ||
import { | ||
AlertDialog, | ||
NotificationKinds, | ||
} from "../../common/CustomNotification.js"; | ||
import { FormattedMessage, injectIntl, useIntl } from "react-intl"; | ||
import PageBreadCrumb from "../../common/PageBreadCrumb.js"; | ||
import CustomCheckBox from "../../common/CustomCheckBox.js"; | ||
import ActionPaginationButtonType from "../../common/ActionPaginationButtonType.js"; | ||
|
||
let breadcrumbs = [ | ||
{ label: "home.label", link: "/" }, | ||
{ label: "breadcrums.admin.managment", link: "/MasterListsPage" }, | ||
{ | ||
label: "master.lists.page.test.management", | ||
link: "/MasterListsPage#testManagementConfigMenu", | ||
}, | ||
{ | ||
label: "configuration.testUnit.manage", | ||
link: "/MasterListsPage#MethodManagement", | ||
}, | ||
{ | ||
label: "configuration.method.create", | ||
link: "/MasterListsPage#MethodCreate", | ||
}, | ||
]; | ||
|
||
function MethodCreate() { | ||
const { notificationVisible, setNotificationVisible, addNotification } = | ||
useContext(NotificationContext); | ||
|
||
const intl = useIntl(); | ||
|
||
const componentMounted = useRef(false); | ||
|
||
return ( | ||
<> | ||
{notificationVisible === true ? <AlertDialog /> : ""} | ||
<div className="adminPageContent"> | ||
<PageBreadCrumb breadcrumbs={breadcrumbs} /> | ||
<Grid fullWidth={true}> | ||
<Column lg={16} md={8} sm={4}> | ||
<Section> | ||
<Heading> | ||
<FormattedMessage id="banner.menu.patientEdit" /> | ||
</Heading> | ||
</Section> | ||
</Column> | ||
</Grid> | ||
<br /> | ||
<hr /> | ||
<br /> | ||
<Grid fullWidth={true}> | ||
<Column lg={16} md={8} sm={4}> | ||
<Section> | ||
<Heading> | ||
<FormattedMessage id="configuration.method.create" /> | ||
</Heading> | ||
</Section> | ||
</Column> | ||
</Grid> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default injectIntl(MethodCreate); |
Oops, something went wrong.