amenpunk преди 2 години
родител
ревизия
2b4f361249

+ 15 - 0
src/App.css

@@ -478,3 +478,18 @@
 .lodingSpinner{
   place-self: center;
 }
+
+
+.text_underline:hover {
+  cursor: pointer;
+  text-decoration: underline;
+  text-decoration-color: blue;
+}
+
+/* CSS */
+.text_underline {
+  transition: color 0.3s ease; /* Transición suave del color durante 0.3 segundos */
+  animation: fadeIn 1s ease; /* Aplicar la animación de fade-in */
+}
+
+

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

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

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

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

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

@@ -2,10 +2,13 @@ import React from "react";
 import { Grow } from '@mui/material';
 import { Col } from 'react-bootstrap'
 import { PuestoCard } from './Card';
+import {SinPuestos} from './SinPuestos'
 
 export function GridMode(props) {
 
-  let { data, index, showing, toggle } = props;
+  let { data, index, showing, toggle, new_puesto } = props;
+  
+  console.log(data)
 
   return (
     <React.Fragment>
@@ -21,7 +24,7 @@ export function GridMode(props) {
                 </Col>
               </Grow>
             )
-          }) : <div></div>
+          }) : <SinPuestos toggle={new_puesto}/>
       }
     </React.Fragment>
   )

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

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

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

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

+ 2 - 2
src/Css/all.css

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

+ 2 - 0
src/Pages/Puestos.jsx

@@ -130,6 +130,7 @@ export function Puestos() {
                   {isLoading && <Loading />}
                   { !error ?
                     <GridMode
+                      new_puesto={() => setManual(true) }
                       toggle={toggle}
                       showing={alignment}
                       data={filter ? Divide(filter) : Divide(result ? result.data  : [])}
@@ -144,6 +145,7 @@ export function Puestos() {
                   {isLoading && <Loading />}
                   { !error ?
                     <ListMode
+                      new_puesto={() => setManual(true) }
                       toggle={toggle}
                       showing={alignment}
                       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 {
     WebElement telefono_dos = driver.findElement(By.xpath("//*[@id=\"mui-13\"]"));
 
     nit.sendKeys("121212");
-    cui.sendKeys("7373982749832");
+    cui.sendKeys("1111111111111111111111111111");
     direccion.sendKeys(faker.address().streetName());
     nacimiento.sendKeys("10/12/1995");
     telefono_dos.sendKeys("42405339");