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