more
This commit is contained in:
@@ -22,6 +22,7 @@ import { createCaseAdditionalFields as fields } from "../../Constants/Fields/Cre
|
|||||||
import { objectMap } from "../../Utils/Object";
|
import { objectMap } from "../../Utils/Object";
|
||||||
import { Typeahead } from "react-bootstrap-typeahead";
|
import { Typeahead } from "react-bootstrap-typeahead";
|
||||||
import { caseTags } from "../../Constants/Tags/CaseTags";
|
import { caseTags } from "../../Constants/Tags/CaseTags";
|
||||||
|
import "../../styles/casetype-page.scss";
|
||||||
|
|
||||||
const CaseTypePage = ({ caseData }) => {
|
const CaseTypePage = ({ caseData }) => {
|
||||||
const { caseId } = useParams();
|
const { caseId } = useParams();
|
||||||
@@ -110,15 +111,14 @@ const CaseTypePage = ({ caseData }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="casetype-container">
|
<div className="casetype-container">
|
||||||
<div className="casetype-heading-container">
|
<Form className="casetype-form">
|
||||||
<div>Additional Case Details</div>
|
<Row>
|
||||||
<div></div>
|
<Col className="mb-3">
|
||||||
<Form>
|
{isEditing ? (
|
||||||
<Row className="modal-caption-row">
|
<div className="edit-modal-label">Case Type</div>
|
||||||
<Col>
|
) : (
|
||||||
<div className="foo-bar-row">
|
<></>
|
||||||
<div className="typeahead-box">
|
)}
|
||||||
<div className="edit-modal-label">Case type</div>
|
|
||||||
<Typeahead
|
<Typeahead
|
||||||
className="flex-grow-1 create-case-taginput"
|
className="flex-grow-1 create-case-taginput"
|
||||||
id="case-type-search"
|
id="case-type-search"
|
||||||
@@ -148,18 +148,13 @@ const CaseTypePage = ({ caseData }) => {
|
|||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</Col>
|
||||||
|
<Col className="mb-3">
|
||||||
<div className="radio-group-wrapper">
|
{isEditing ? (
|
||||||
<Radiogroup
|
<div className="edit-modal-label">Position</div>
|
||||||
title="Client position"
|
) : (
|
||||||
options={radioOptions}
|
<></>
|
||||||
value={data.clientPosition.value}
|
)}
|
||||||
disabled={isBusy}
|
|
||||||
onClick={(e) => handleChangeInput(e, "clientPosition")}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
@@ -260,8 +255,50 @@ const CaseTypePage = ({ caseData }) => {
|
|||||||
</Row>
|
</Row>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default CaseTypePage;
|
export default CaseTypePage;
|
||||||
|
|
||||||
|
/*
|
||||||
|
<Typeahead
|
||||||
|
className="flex-grow-1 create-case-taginput"
|
||||||
|
id="case-type-search"
|
||||||
|
labelKey="tagName"
|
||||||
|
options={parsedTags}
|
||||||
|
minLength={1}
|
||||||
|
ref={typeaheadRef}
|
||||||
|
placeholder="Case Type - start typing"
|
||||||
|
onChange={(selected) => {
|
||||||
|
let item = null;
|
||||||
|
for (const currentItem of selected) {
|
||||||
|
item = { ...currentItem };
|
||||||
|
}
|
||||||
|
setSelectedTag(item);
|
||||||
|
typeaheadRef.current.clear();
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<div className="case-tag-container">
|
||||||
|
{selectedCaseTags.map((tag, i) => (
|
||||||
|
<div className="tag-container">
|
||||||
|
<div className="tag-box">
|
||||||
|
<div className="tag-ex-box">
|
||||||
|
<div className="tag-ex"> x</div>
|
||||||
|
</div>
|
||||||
|
<div className="casetag-name">{tag}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Radiogroup
|
||||||
|
title="Client position"
|
||||||
|
options={radioOptions}
|
||||||
|
value={data.clientPosition.value}
|
||||||
|
disabled={isBusy}
|
||||||
|
onClick={(e) => handleChangeInput(e, "clientPosition")}
|
||||||
|
/>
|
||||||
|
|
||||||
|
*/
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
.casetype-container {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
margin-right: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
14
src/styles/casetype-page.scss
Normal file
14
src/styles/casetype-page.scss
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
.casetype-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.casetype-form {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.case-tag-container {
|
||||||
|
display: flex;
|
||||||
|
background-color: red;
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user