generated from bcgov/quickstart-openshift
-
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 #214 from bcgov/ticdi-364
ticdi-364 changes
- Loading branch information
Showing
9 changed files
with
124 additions
and
19 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
49 changes: 49 additions & 0 deletions
49
frontend/src/app/components/modal/manage-doc-types/GlobalProvisionModal.tsx
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,49 @@ | ||
import { FC } from 'react'; | ||
import { Button, Modal } from 'react-bootstrap'; | ||
import { Provision } from '../../../types/types'; | ||
|
||
interface GlobalProvisionModalProps { | ||
provision: Provision | null; | ||
show: boolean; | ||
onHide: () => void; | ||
} | ||
|
||
const GlobalProvisionModal: FC<GlobalProvisionModalProps> = ({ provision, show, onHide }) => { | ||
return ( | ||
<Modal show={show} onHide={onHide} size="lg"> | ||
<Modal.Header closeButton> | ||
<Modal.Title>Global Provision Info</Modal.Title> | ||
</Modal.Header> | ||
<Modal.Body> | ||
<label>Provision ID:</label> | ||
<input className="form-control readonlyInput" readOnly value={provision?.id} /> | ||
<label style={{ marginTop: '5px' }}>Provision Name:</label> | ||
<input className="form-control readonlyInput" readOnly value={provision?.provision_name} /> | ||
<label style={{ marginTop: '5px' }}>Category:</label> | ||
<input className="form-control readonlyInput" readOnly value={provision?.category} /> | ||
<label style={{ marginTop: '5px' }}>Free Text:</label> | ||
<textarea | ||
className="form-control readonlyInput" | ||
readOnly | ||
value={provision?.free_text} | ||
style={{ minHeight: '100px' }} | ||
/> | ||
<label style={{ marginTop: '5px' }}>Help Text:</label> | ||
<textarea | ||
className="form-control readonlyInput" | ||
readOnly | ||
value={provision?.help_text} | ||
style={{ minHeight: '100px' }} | ||
/> | ||
</Modal.Body> | ||
|
||
<Modal.Footer> | ||
<Button variant="secondary" onClick={onHide}> | ||
Close | ||
</Button> | ||
</Modal.Footer> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default GlobalProvisionModal; |
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