diff --git a/assets/src/scripts/components/CodelistBuilder.jsx b/assets/src/scripts/components/CodelistBuilder.jsx
index 895bdc07..d4ad2852 100644
--- a/assets/src/scripts/components/CodelistBuilder.jsx
+++ b/assets/src/scripts/components/CodelistBuilder.jsx
@@ -1,5 +1,15 @@
import PropTypes from "prop-types";
import React, { useRef } from "react";
+import {
+ Button,
+ ButtonGroup,
+ Col,
+ Form,
+ ListGroup,
+ OverlayTrigger,
+ Row,
+ Tooltip,
+} from "react-bootstrap";
import Modal from "react-bootstrap/Modal";
import { getCookie } from "../_utils";
import Filter from "./Filter";
@@ -150,8 +160,8 @@ class CodelistBuilder extends React.Component {
return (
<>
-
-
+
+
{this.props.isEditable && (
<>
@@ -159,34 +169,35 @@ class CodelistBuilder extends React.Component {
>
)}
- Summary
+ Summary
{this.props.searches.length > 0 && (
<>
- Searches
-
+
Searches
+
{this.props.searches.map((search) => (
))}
{this.props.searches.some((search) => search.active) ? (
-
show all
-
+
) : null}
-
+
>
)}
{this.props.isEditable && (
<>
- New search
+ New search
- Versions
+ Versions
{this.props.versions.map((version) => (
))}
-
+
-
-
{this.props.resultsHeading}
+
+ {this.props.resultsHeading}
-
-
+
+
{moreInfoModal}
>
@@ -267,54 +278,65 @@ class CodelistBuilder extends React.Component {
return (
<>
-
-
-
+
+
{complete ? (
-
+
) : (
-
+ <>
+
+ You cannot save for review until all search results are
+ included or excluded
+
+ }
+ >
+
+
+ >
)}
-
-
-
+
+
+
{confirmDiscardModal}
>
);
diff --git a/assets/src/scripts/components/MoreInfoButton.jsx b/assets/src/scripts/components/MoreInfoButton.jsx
index ac7bc314..24b1648e 100644
--- a/assets/src/scripts/components/MoreInfoButton.jsx
+++ b/assets/src/scripts/components/MoreInfoButton.jsx
@@ -4,15 +4,13 @@ import { Button } from "react-bootstrap";
function MoreInfoButton({ code, showMoreInfoModal }) {
return (
-
-
- ...
-
-
+
+ …
+
);
}
diff --git a/assets/src/scripts/components/Search.jsx b/assets/src/scripts/components/Search.jsx
index aa6fe84d..80c570a5 100644
--- a/assets/src/scripts/components/Search.jsx
+++ b/assets/src/scripts/components/Search.jsx
@@ -1,11 +1,12 @@
import PropTypes from "prop-types";
import React from "react";
+import { Button, Form } from "react-bootstrap";
import { getCookie } from "../_utils";
function Search({ search }) {
return search.delete_url ? (
-
{search.term_or_code}
-
- x
-
+ ×
+
-
+
) : (
-
-
+
+
-
-
-
-
+
+
+
Search
-
-
-
-
+
+
+
+
{codingSystemName === "ICD-10" ? (
To search by code, prefix your search with code:
. For
@@ -52,9 +50,9 @@ function SearchForm({ codingSystemName, searchURL }) {
We plan to support boolean search operators (eg{" "}
ambulatory AND blood pressure
) in future.
-
-
-
+
+
+
);
}
diff --git a/assets/src/scripts/components/StatusToggle.jsx b/assets/src/scripts/components/StatusToggle.jsx
index 72f4ba58..62bc4d06 100644
--- a/assets/src/scripts/components/StatusToggle.jsx
+++ b/assets/src/scripts/components/StatusToggle.jsx
@@ -1,25 +1,24 @@
import PropTypes from "prop-types";
import React from "react";
+import { Button } from "react-bootstrap";
function StatusToggle({ code, status, symbol, updateStatus }) {
- let buttonClasses = ["btn"];
- if (status === symbol) {
- buttonClasses.push("btn-primary");
- } else if (status === `(${symbol})`) {
- buttonClasses.push("btn-secondary");
- } else {
- buttonClasses.push("btn-outline-secondary");
- }
- buttonClasses.push("py-0");
return (
-
{symbol}
-
+
);
}
diff --git a/assets/src/scripts/components/Version.jsx b/assets/src/scripts/components/Version.jsx
index 33b0ab16..6de898d3 100644
--- a/assets/src/scripts/components/Version.jsx
+++ b/assets/src/scripts/components/Version.jsx
@@ -1,5 +1,6 @@
import PropTypes from "prop-types";
import React from "react";
+import { Badge } from "react-bootstrap";
function Version({ version }) {
return (
@@ -11,17 +12,15 @@ function Version({ version }) {
)}
{version.status === "draft" ? (
- <>
- {" "}
- Draft
- >
+
+ Draft
+
) : null}
{version.status === "under review" ? (
- <>
- {" "}
- Review
- >
+
+ Review
+
) : null}
);