amenpunk 3 anni fa
parent
commit
10ed4c5c56
3 ha cambiato i file con 21 aggiunte e 20 eliminazioni
  1. 1 1
      psicoadmin/src/App.css
  2. 2 2
      psicoadmin/src/Css/all.css
  3. 18 17
      psicoadmin/src/Pages/Puestos.js

+ 1 - 1
psicoadmin/src/App.css

@@ -91,7 +91,7 @@
91 91
 .actions_butons_plaza{
92 92
     display: flex;
93 93
     flex-direction: row;
94
-    flex-wrap: wrap;
94
+    flex-wrap: nowrap;
95 95
     align-content: center;
96 96
     justify-content: space-around;
97 97
     align-items: flex-start;

+ 2 - 2
psicoadmin/src/Css/all.css

@@ -287,7 +287,7 @@ li.nav-item {
287 287
     width: 100%;
288 288
     float: left;
289 289
     border: 1px solid #dcdcdc;
290
-    padding : 10px;
290
+    /* padding : 10px; */
291 291
 }
292 292
 .footerinfo p {
293 293
     font-size: 14px;
@@ -805,7 +805,7 @@ table.dataTable tbody th, table.dataTable tbody td {
805 805
     color: #fff;
806 806
     transition: all 0.3s;
807 807
 }
808
-.btn_add_producto a {
808
+.btn_add_producto span {
809 809
     display: block;
810 810
     padding: 10px;
811 811
 }

+ 18 - 17
psicoadmin/src/Pages/Puestos.js

@@ -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>