Browse Source

some features

amenpunk 2 years ago
parent
commit
0ab96748fc
3 changed files with 16 additions and 9 deletions
  1. 12 5
      src/Components/Modal/MostrarPlaza.js
  2. 1 1
      src/Components/Puestos/ListMode.jsx
  3. 3 3
      src/Css/all.css

+ 12 - 5
src/Components/Modal/MostrarPlaza.js

@@ -1,11 +1,14 @@
1 1
 import React from 'react';
2 2
 import { Modal, Col, Row } from 'react-bootstrap'
3
-import NotFound from '../../Images/not_found.png';
4 3
 
5 4
 export default function Mostrar(props) {
6 5
 
7 6
     let { visible, onClose, puesto } = props
8 7
 
8
+    const opciones = { weekday: 'long', year: 'numeric', month: 'short', day: 'numeric' };
9
+
10
+    console.log(puesto)
11
+
9 12
     return(
10 13
         <Modal size="lg" aria-labelledby="contained-modal-title-vcenter" centered  show={visible} onHide={onClose}>
11 14
             <Modal.Header>
@@ -18,13 +21,17 @@ export default function Mostrar(props) {
18 21
                     <Row >
19 22
                         <Col md="4">
20 23
                             <div className="img-container">
21
-                                <img alt='not found cooo' src={NotFound}/>
24
+                                <img alt='not found cooo' src={"https://yt3.ggpht.com/ytc/AKedOLRgmxVvijEuMGpaELK2ukM5QGGZYdnLLt065bh4=s900-c-k-c0x00ffffff-no-rj"}/>
22 25
                             </div>
23 26
                         </Col>
24 27
                         <Col md="8">
25
-                            <input value={puesto.id + " - "+ puesto.nombre} type="text" name="nombre" placeholder="Nombre de la plaza" readOnly/>
26
-                            <input value={puesto.description} type="text" name="descript" placeholder="Descripción" readOnly/>
27
-                            <input value={puesto.salario} type="text" name="sku" placeholder="3500" readOnly/>
28
+                            <input value={puesto.nombre} type="text" name="nombre" placeholder="..." readOnly/>
29
+                            <input value={puesto.description} type="text" name="descript" placeholder="..." readOnly/>
30
+                            <input 
31
+                                value={ new Date( puesto.created ).toLocaleDateString('es-GT',opciones) } 
32
+                                type="text" 
33
+                                placeholder="...." 
34
+                                name="sku" readOnly/>
28 35
                         </Col>
29 36
                     </Row>
30 37
                 </div>

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

@@ -70,7 +70,7 @@ export function ListMode(props) {
70 70
                                         </tr>
71 71
                                     </Zoom>
72 72
                                     )
73
-                            }) : <span></span>
73
+                            }) : undefined
74 74
                         }
75 75
                     </tbody>
76 76
                     <tfoot>

+ 3 - 3
src/Css/all.css

@@ -934,13 +934,13 @@ table.dataTable tbody th, table.dataTable tbody td {
934 934
 }
935 935
 .data_product input {
936 936
     width: 100%;
937
-    float: left;
937
+    float: right;
938 938
     border-radius: 4px;
939 939
     box-shadow: none;
940 940
     border: 1px solid #2ec5d3;
941 941
     padding: 8px 20px;
942
-    font-size: 12px;
943
-    color: #bebebe;
942
+    font-size: 14px;
943
+    /* color: #bebebe; */
944 944
     margin-bottom: 10px;
945 945
     background: transparent;
946 946
 }