Browse Source

some fixes

amenpunk 1 year ago
parent
commit
2b4f361249

+ 15 - 0
src/App.css

@@ -478,3 +478,18 @@
478 478
 .lodingSpinner{
479 479
   place-self: center;
480 480
 }
481
+
482
+
483
+.text_underline:hover {
484
+  cursor: pointer;
485
+  text-decoration: underline;
486
+  text-decoration-color: blue;
487
+}
488
+
489
+/* CSS */
490
+.text_underline {
491
+  transition: color 0.3s ease; /* Transición suave del color durante 0.3 segundos */
492
+  animation: fadeIn 1s ease; /* Aplicar la animación de fade-in */
493
+}
494
+
495
+

+ 1 - 0
src/Components/Home/Candidato.jsx

@@ -186,6 +186,7 @@ function SinAsignRealizadas() {
186 186
 }
187 187
 
188 188
 export function Preview() {
189
+  console.log('preview')
189 190
   return (
190 191
     <Box sx={{ width: '100%' }}>
191 192
       <Skeleton height={big_as} animation="wave" />

+ 3 - 1
src/Components/Password/Steps/TypePwd.jsx

@@ -321,7 +321,9 @@ export function TypePwd(props) {
321 321
         </div>
322 322
 
323 323
         <div className="typepwdlist">
324
-          <FormLabel className="demo-radio-buttons-group-label">Selecciona los privilegios</FormLabel>
324
+          <FormLabel className="demo-radio-buttons-group-label">
325
+            Selecciona los privilegios
326
+          </FormLabel>
325 327
           {
326 328
             recursos &&
327 329
             Object.keys(recursos).map((k) =>

+ 5 - 2
src/Components/Puestos/GridMode.jsx

@@ -2,10 +2,13 @@ import React from "react";
2 2
 import { Grow } from '@mui/material';
3 3
 import { Col } from 'react-bootstrap'
4 4
 import { PuestoCard } from './Card';
5
+import {SinPuestos} from './SinPuestos'
5 6
 
6 7
 export function GridMode(props) {
7 8
 
8
-  let { data, index, showing, toggle } = props;
9
+  let { data, index, showing, toggle, new_puesto } = props;
10
+  
11
+  console.log(data)
9 12
 
10 13
   return (
11 14
     <React.Fragment>
@@ -21,7 +24,7 @@ export function GridMode(props) {
21 24
                 </Col>
22 25
               </Grow>
23 26
             )
24
-          }) : <div></div>
27
+          }) : <SinPuestos toggle={new_puesto}/>
25 28
       }
26 29
     </React.Fragment>
27 30
   )

+ 2 - 1
src/Components/Puestos/ListMode.jsx

@@ -4,6 +4,7 @@ import { Zoom, useMediaQuery as Size, TableCell  } from '@mui/material'
4 4
 import ShowI from '@mui/icons-material/Grading';
5 5
 import EditI from '@mui/icons-material/Edit';
6 6
 import Deletei from '@mui/icons-material/Delete';
7
+import {SinPuestos} from './SinPuestos'
7 8
 
8 9
 export function ListMode(props) {
9 10
 
@@ -63,7 +64,7 @@ export function ListMode(props) {
63 64
                       </tr>
64 65
                     </Zoom>
65 66
                   )
66
-                }) : undefined
67
+                }) : <SinPuestos toggle={props.new_puesto}/>
67 68
             }
68 69
           </tbody>
69 70
           <tfoot>

+ 9 - 0
src/Components/Puestos/SinPuestos.jsx

@@ -0,0 +1,9 @@
1
+
2
+export function SinPuestos({ toggle}) {
3
+  return (
4
+    <div style={{ paddingTop: 25  }}>
5
+      <h1>Aun no tienes puestos creados</h1>
6
+      <h1>Crea tu primer puesto haciendo click <i onClick={() => toggle()} className="text_underline">aquí</i> </h1>
7
+    </div>
8
+  )
9
+}

+ 2 - 2
src/Css/all.css

@@ -337,11 +337,11 @@ li.nav-item {
337 337
 .body-table th {
338 338
     font-size: 14px;
339 339
     /* color: #fff; */
340
-    font-weight: 300!important;
341
-    border-top: none!important;
340
+    font-weight: bold;
342 341
     border-left: none!important;
343 342
     border-right: none!important;
344 343
     border-bottom: 1px solid #2e3f5b!important;
344
+    border-top: 1px solid #2e3f5b!important;
345 345
     /* color: rgba(225,235,245,.8); */
346 346
 }
347 347
 .body-table tr {

+ 2 - 0
src/Pages/Puestos.jsx

@@ -130,6 +130,7 @@ export function Puestos() {
130 130
                   {isLoading && <Loading />}
131 131
                   { !error ?
132 132
                     <GridMode
133
+                      new_puesto={() => setManual(true) }
133 134
                       toggle={toggle}
134 135
                       showing={alignment}
135 136
                       data={filter ? Divide(filter) : Divide(result ? result.data  : [])}
@@ -144,6 +145,7 @@ export function Puestos() {
144 145
                   {isLoading && <Loading />}
145 146
                   { !error ?
146 147
                     <ListMode
148
+                      new_puesto={() => setManual(true) }
147 149
                       toggle={toggle}
148 150
                       showing={alignment}
149 151
                       data={filter ? Divide(filter) : Divide(result ? result.data : [])}

+ 1 - 1
test/src/test/java/com/psicoweb/test/AppTest.java

@@ -64,7 +64,7 @@ public class AppTest {
64 64
     WebElement telefono_dos = driver.findElement(By.xpath("//*[@id=\"mui-13\"]"));
65 65
 
66 66
     nit.sendKeys("121212");
67
-    cui.sendKeys("7373982749832");
67
+    cui.sendKeys("1111111111111111111111111111");
68 68
     direccion.sendKeys(faker.address().streetName());
69 69
     nacimiento.sendKeys("10/12/1995");
70 70
     telefono_dos.sendKeys("42405339");