Skip to content

Commit

Permalink
parking-space complete
Browse files Browse the repository at this point in the history
parking-space complete
  • Loading branch information
anirudhp26 committed Oct 6, 2022
2 parents df9a806 + bde2e98 commit c0a734f
Show file tree
Hide file tree
Showing 6 changed files with 1,160 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/scss/_custom.scss
Expand Up @@ -13,7 +13,7 @@
.popup-forms {
width: 50vw;
margin: auto;
height: 60vh;
height: 70vh;
display: flex;
flex-direction: column;
justify-content: space-around;
Expand Down
126 changes: 124 additions & 2 deletions src/views/parkingSpace/cSpaceQtySetting/CspaceQtySetting.js
@@ -1,7 +1,129 @@
import React from 'react'

import {
CTable,
CPagination,
CPaginationItem,
CFormSelect,
CButton,
CButtonGroup,
} from '@coreui/react'
const CspaceQtySetting = () => {
return <div>CspaceQtySetting</div>
const operation = () => {
return (
<CButtonGroup role="group" aria-label="Basic mixed styles example" size="sm">
<CButton color="info">View</CButton>
<CButton color="warning">Edit</CButton>
</CButtonGroup>
)
}

const columns = [
{
key: 'parkingname',
label: 'Parking Name',
_props: { scope: 'col' },
},
{
key: 'zonename',
label: 'Zone Name',
_props: { scope: 'col' },
},
{
key: 'totalspace',
label: 'Total Space',
_props: { scope: 'col' },
},
{
key: 'emptyspace',
label: 'Empty Space',
_props: { scope: 'col' },
},
{
key: 'modifer',
label: 'Modifer',
_props: { scope: 'col' },
},
{
key: 'modifytime',
label: 'Modify Time',
_props: { scope: 'col' },
},
{
key: 'operation',
label: 'Operation',
_props: { scope: 'col' },
},
]
const items = [
{
parkingname: ' ',
zonename: ' ',
totalspace: ' ',
emptyspace: ' ',
modifer: ' ',
modifytime: ' ',
operation: operation(),
_cellProps: { id: { scope: 'row' } },
},
]
return (
<>
<div className="conf-list">
<h1>C-Space Qty. Setting</h1>
<div
style={{
display: 'flex',
flexDirection: 'column',
flexWrap: 'wrap',
justifyContent: 'space-around',
height: 'max-content',
minHeight: '20vh',
borderTop: '1px solid grey',
borderBottom: '1px solid grey',
width: '100%',
}}
>
<div
style={{
display: 'flex',
flexDirection: 'row',
width: '50%',
minHeight: '5vh',
justifyContent: 'space-between',
flexWrap: 'wrap',
}}
>
<CFormSelect aria-label="Default select example" style={{ width: '40%' }}>
<option>Mall</option>
<option value="1">Mall</option>
</CFormSelect>
</div>
</div>
<div style={{ overflow: 'auto' }}>
<CTable
columns={columns}
items={items}
style={{
width: '100vw',
minWidth: '600px',
}}
hover
/>
</div>
<CPagination size="sm" align="end" aria-label="Page navigation example">
<CPaginationItem style={{ color: 'black' }} disabled>
Previous
</CPaginationItem>
<CPaginationItem style={{ color: 'black' }} active="true">
1
</CPaginationItem>
<CPaginationItem style={{ color: 'black' }}>2</CPaginationItem>
<CPaginationItem style={{ color: 'black' }}>3</CPaginationItem>
<CPaginationItem style={{ color: 'black' }}>Next</CPaginationItem>
</CPagination>
</div>
</>
)
}

export default CspaceQtySetting

0 comments on commit c0a734f

Please sign in to comment.