|
@@ -1,5 +1,5 @@
|
1
|
1
|
import * as React from 'react';
|
2
|
|
-import { Row, Col, Modal } from 'react-bootstrap'
|
|
2
|
+import { Row, Col, Modal, Button } from 'react-bootstrap'
|
3
|
3
|
|
4
|
4
|
import Box from '@mui/material/Box';
|
5
|
5
|
import ToggleButton from '@mui/material/ToggleButton';
|
|
@@ -41,9 +41,9 @@ for ( var _ of new Array(23) ){
|
41
|
41
|
function ListMode() {
|
42
|
42
|
|
43
|
43
|
let actions = [
|
44
|
|
- <a href="/" className="ver_producto" data-toggle="modal" data-target="#verProducto">Ver</a>,
|
45
|
|
- <a href="/" className="editar_producto" data-toggle="modal" data-target="#editarProducto">Editar</a>,
|
46
|
|
- <a href="/" className="eliminar_producto" data-toggle="modal" data-target="#deleteProducto">Eliminar</a>,
|
|
44
|
+ <Button className="ver_producto">Ver</Button>,
|
|
45
|
+ <Button className="editar_producto">Editar</Button>,
|
|
46
|
+ <Button className="eliminar_producto">Eliminar</Button>,
|
47
|
47
|
]
|
48
|
48
|
|
49
|
49
|
return(
|
|
@@ -94,19 +94,19 @@ function GridMode () {
|
94
|
94
|
|
95
|
95
|
let buttons = [
|
96
|
96
|
<div className="botones_interactivos">
|
97
|
|
- <a href="/" tooltip-location="top" tooltip="Ver plaza" data-toggle="modal" data-target="#verProducto">
|
|
97
|
+ <span tooltip-location="top" tooltip="Ver plaza">
|
98
|
98
|
<RemoveRedEyeIcon className="grid_btn"/>
|
99
|
|
- </a>
|
|
99
|
+ </span>
|
100
|
100
|
</div>,
|
101
|
101
|
<div className="botones_interactivos">
|
102
|
|
- <a href="/" tooltip-location="top" tooltip="Editar plaza" data-toggle="modal" data-target="#editarProducto">
|
|
102
|
+ <span tooltip-location="top" tooltip="Editar plaza">
|
103
|
103
|
<EditIcon className="grid_btn"/>
|
104
|
|
- </a>
|
|
104
|
+ </span>
|
105
|
105
|
</div>,
|
106
|
106
|
<div className="botones_interactivos">
|
107
|
|
- <a href="/" tooltip-location="top" tooltip="Eliminar plaza" data-toggle="modal" data-target="#deleteProducto">
|
|
107
|
+ <span tooltip-location="top" tooltip="Eliminar plaza">
|
108
|
108
|
<HighlightOffIcon className="grid_btn"/>
|
109
|
|
- </a>
|
|
109
|
+ </span>
|
110
|
110
|
</div>
|
111
|
111
|
]
|
112
|
112
|
|
|
@@ -115,8 +115,9 @@ function GridMode () {
|
115
|
115
|
{
|
116
|
116
|
data.length ?
|
117
|
117
|
data.map( ( plaza, i ) => {
|
|
118
|
+ console.log(plaza)
|
118
|
119
|
return(
|
119
|
|
- <Col key={i} md="3">
|
|
120
|
+ <Col key={plaza.id} md="3">
|
120
|
121
|
<div className="panel">
|
121
|
122
|
<Row>
|
122
|
123
|
<Col md="4">
|
|
@@ -174,7 +175,7 @@ function Manual ( props ) {
|
174
|
175
|
</Col>
|
175
|
176
|
<div className="add_producto_confirm">
|
176
|
177
|
<div className="btn_add_producto_confirm">
|
177
|
|
- <a href="/" type="submit">Agregar plaza</a>
|
|
178
|
+ <span style={{ margin : 15 }} type="submit">Agregar plaza</span>
|
178
|
179
|
</div>
|
179
|
180
|
</div>
|
180
|
181
|
</Row>
|
|
@@ -200,7 +201,7 @@ function Express (props) {
|
200
|
201
|
</div>
|
201
|
202
|
<div className="add_producto_confirm">
|
202
|
203
|
<div className="btn_add_producto_confirm">
|
203
|
|
- <a href="/" type="submit">Agregar plaza</a>
|
|
204
|
+ <Button type="submit">Agregar plaza</Button>
|
204
|
205
|
</div>
|
205
|
206
|
</div>
|
206
|
207
|
</div>
|
|
@@ -242,7 +243,7 @@ export function Puestos() {
|
242
|
243
|
<div className="content-section">
|
243
|
244
|
<div className="main">
|
244
|
245
|
<Row>
|
245
|
|
- <Col md="6">
|
|
246
|
+ <Col md="2" sm="2">
|
246
|
247
|
<div className="breadcrumb-header">
|
247
|
248
|
<Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
|
248
|
249
|
<ToggleButtonGroup size="small" {...control}>
|
|
@@ -251,12 +252,12 @@ export function Puestos() {
|
251
|
252
|
</Box>
|
252
|
253
|
</div>
|
253
|
254
|
</Col>
|
254
|
|
- <Col md="6">
|
|
255
|
+ <Col md="10" sm='10'>
|
255
|
256
|
<div className="add_producto">
|
256
|
|
- <div onClick={() => setManual(true) } className="btn_add_producto"> <a href="/">Agregar manual</a> </div>
|
|
257
|
+ <div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
|
257
|
258
|
</div>
|
258
|
259
|
<div onClick={showExpress} className="add_producto">
|
259
|
|
- <div className="btn_add_producto"> <a href="/">Agregar express</a> </div>
|
|
260
|
+ <div className="btn_add_producto"> <span >Agregar express</span> </div>
|
260
|
261
|
</div>
|
261
|
262
|
</Col>
|
262
|
263
|
</Row>
|