Commit 2e0ee039 authored by PDuarte's avatar PDuarte

layout detail project

parent 69f213a4
// ** React Imports // ** React Imports
import { Fragment } from 'react' import { Fragment } from 'react'
import { Link } from 'react-router-dom'
// ** Custom Components // ** Custom Components
import Breadcrumbs from '@components/breadcrumbs' import Breadcrumbs from '@components/breadcrumbs'
...@@ -15,10 +16,23 @@ import '@styles/react/libs/tables/react-dataTable-component.scss' ...@@ -15,10 +16,23 @@ import '@styles/react/libs/tables/react-dataTable-component.scss'
const Tables = () => { const Tables = () => {
return ( return (
<Fragment> <Fragment>
<Breadcrumbs breadCrumbTitle='Settings' breadCrumbParent='Settings' breadCrumbActive='Projects' /> <Breadcrumbs breadCrumbTitle='Settings' breadCrumbParent='Settings' breadCrumbActive='Projects' />
<Row> <Row>
<Col sm='12'> <Col sm='12'>
<ProjectsEdit /> <Link to="/settings/projects">Back to Projects</Link>
</Col>
</Row>
<Row>
<Col sm='12'>
<div class="card">
<div class="card-header">
<h4 class="card-title">Project</h4>
</div>
<div class="card-body">
<ProjectsEdit />
</div>
</div>
</Col> </Col>
</Row> </Row>
</Fragment> </Fragment>
......
...@@ -37,7 +37,7 @@ const ProjectsEdit = () => { ...@@ -37,7 +37,7 @@ const ProjectsEdit = () => {
<Alert color='info'> <Alert color='info'>
<h4 className='alert-heading'>Loading Project</h4> <h4 className='alert-heading'>Loading Project</h4>
<div className='alert-body'> <div className='alert-body'>
User with id: {id} doesn't exist. Check list of all Projects: <Link to='/settings/projects'>Projects List</Link> If Project with id: {id} doesn't exist. Check list of all Projects: <Link to='/settings/projects'>Projects List</Link>
</div> </div>
</Alert> </Alert>
......
...@@ -12,7 +12,7 @@ import { Bell, Check, X, AlertTriangle, Info } from 'react-feather' ...@@ -12,7 +12,7 @@ import { Bell, Check, X, AlertTriangle, Info } from 'react-feather'
// ** Store & Actions // ** Store & Actions
import { updateProject, resetResults } from '../../store/actions' import { updateProject, resetResults, getProject } from '../../store/actions'
import { useForm } from 'react-hook-form' import { useForm } from 'react-hook-form'
import classnames from 'classnames' import classnames from 'classnames'
...@@ -169,9 +169,9 @@ return ( ...@@ -169,9 +169,9 @@ return (
<Button.Ripple className='mb-1 mb-sm-0 mr-0 mr-sm-1' type='submit' color='primary'> <Button.Ripple className='mb-1 mb-sm-0 mr-0 mr-sm-1' type='submit' color='primary'>
Save Changes Save Changes
</Button.Ripple> </Button.Ripple>
<Button.Ripple color='secondary' outline> {/* <Button.Ripple color='secondary' outline onClick={() => dispatch(getProject(selectedProject.id))} >
Reset Reset
</Button.Ripple> </Button.Ripple> */}
</Col> </Col>
</Row> </Row>
</Form> </Form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment