|
@@ -1,5 +1,5 @@
|
1
|
1
|
import * as React from 'react';
|
2
|
|
-import { Row, Col, Modal, Button } from 'react-bootstrap'
|
|
2
|
+import { Row, Col, Modal, Button, Table } from 'react-bootstrap'
|
3
|
3
|
|
4
|
4
|
import Box from '@mui/material/Box';
|
5
|
5
|
import ToggleButton from '@mui/material/ToggleButton';
|
|
@@ -15,8 +15,8 @@ import HighlightOffIcon from '@mui/icons-material/HighlightOff';
|
15
|
15
|
import NotFound from '../Images/not_found.png';
|
16
|
16
|
|
17
|
17
|
let data = [{
|
18
|
|
- nombre : 'Nombre puesto',
|
19
|
|
- description : 'MingMecca',
|
|
18
|
+ nombre : 'The standard Lorem Ipsum passage, used since the 1500s',
|
|
19
|
+ description : '"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."',
|
20
|
20
|
salario : 'Q 10,000',
|
21
|
21
|
id : 0,
|
22
|
22
|
}]
|
|
@@ -28,7 +28,6 @@ function* idMaker() {
|
28
|
28
|
}
|
29
|
29
|
|
30
|
30
|
var ID = idMaker(); // "Generator { }"
|
31
|
|
-// let i = 0;
|
32
|
31
|
|
33
|
32
|
for ( var _ of new Array(23) ){
|
34
|
33
|
data.push({
|
|
@@ -49,13 +48,13 @@ function ListMode() {
|
49
|
48
|
return(
|
50
|
49
|
<Col md="12">
|
51
|
50
|
<div className="body-table">
|
52
|
|
- <table id="tablaproductos" className="display" style={{ width : "100%" }}>
|
|
51
|
+ <Table responsive borderless id="tablaproductos">
|
53
|
52
|
<thead>
|
54
|
|
- <tr>
|
55
|
|
- <th>Nombre de la plaza</th>
|
56
|
|
- <th>Descripción</th>
|
57
|
|
- <th>Salario</th>
|
58
|
|
- <th>Acciones</th>
|
|
53
|
+ <tr >
|
|
54
|
+ <th className="text-center">Nombre de la plaza</th>
|
|
55
|
+ <th className="text-center">Descripción</th>
|
|
56
|
+ <th className="text-center">Salario</th>
|
|
57
|
+ <th className="text-center">Acciones</th>
|
59
|
58
|
</tr>
|
60
|
59
|
</thead>
|
61
|
60
|
<tbody>
|
|
@@ -65,9 +64,9 @@ function ListMode() {
|
65
|
64
|
data.map( (plaza, i) => {
|
66
|
65
|
return (
|
67
|
66
|
<tr key={plaza.id}>
|
68
|
|
- <td>{ plaza.nombre }</td>
|
69
|
|
- <td>{ plaza.description }</td>
|
70
|
|
- <td>{ plaza.salario }</td>
|
|
67
|
+ <td className="text-center">{ plaza.nombre }</td>
|
|
68
|
+ <td className="text-center">{ plaza.description }</td>
|
|
69
|
+ <td className="text-center">{ plaza.salario }</td>
|
71
|
70
|
<td className="actions_butons_plaza"> { actions } </td>
|
72
|
71
|
</tr>
|
73
|
72
|
)
|
|
@@ -83,7 +82,7 @@ function ListMode() {
|
83
|
82
|
<th>Acciones</th>
|
84
|
83
|
</tr>
|
85
|
84
|
</tfoot>
|
86
|
|
- </table>
|
|
85
|
+ </Table>
|
87
|
86
|
</div>
|
88
|
87
|
</Col>
|
89
|
88
|
)
|
|
@@ -114,10 +113,9 @@ function GridMode () {
|
114
|
113
|
<React.Fragment>
|
115
|
114
|
{
|
116
|
115
|
data.length ?
|
117
|
|
- data.map( ( plaza, i ) => {
|
118
|
|
- console.log(plaza)
|
|
116
|
+ data.map( plaza => {
|
119
|
117
|
return(
|
120
|
|
- <Col key={plaza.id} md="3">
|
|
118
|
+ <Col key={plaza.id} lg="3" md="6" sm="6" xs="12" >
|
121
|
119
|
<div className="panel">
|
122
|
120
|
<Row>
|
123
|
121
|
<Col md="4">
|
|
@@ -130,6 +128,8 @@ function GridMode () {
|
130
|
128
|
<p>{ plaza.nombre }</p>
|
131
|
129
|
<p>{ plaza.description }</p>
|
132
|
130
|
<p>{ plaza.salario }</p>
|
|
131
|
+ </div>
|
|
132
|
+ <div class="btn_interactivos">
|
133
|
133
|
{ buttons }
|
134
|
134
|
</div>
|
135
|
135
|
</Col>
|
|
@@ -243,7 +243,7 @@ export function Puestos() {
|
243
|
243
|
<div className="content-section">
|
244
|
244
|
<div className="main">
|
245
|
245
|
<Row>
|
246
|
|
- <Col md="2" sm="2">
|
|
246
|
+ <Col md="2" sm="2" xs="2">
|
247
|
247
|
<div className="breadcrumb-header">
|
248
|
248
|
<Box sx={{ float : 'left',display: 'flex', flexDirection: 'column', alignItems: 'center', '& > :not(style) + :not(style)': { mt: 2 }, }} >
|
249
|
249
|
<ToggleButtonGroup size="small" {...control}>
|
|
@@ -252,7 +252,7 @@ export function Puestos() {
|
252
|
252
|
</Box>
|
253
|
253
|
</div>
|
254
|
254
|
</Col>
|
255
|
|
- <Col md="10" sm='10'>
|
|
255
|
+ <Col md="10" sm='10' xs="10">
|
256
|
256
|
<div className="add_producto">
|
257
|
257
|
<div onClick={() => setManual(true) } className="btn_add_producto"> <span >Agregar manual</span> </div>
|
258
|
258
|
</div>
|