|
@@ -1,14 +1,32 @@
|
1
|
|
-import * as React from 'react'
|
|
1
|
+import React, { useState } from 'react'
|
2
|
2
|
import FlightTakeoffIcon from '@mui/icons-material/FlightTakeoff';
|
3
|
3
|
import TextField from '@mui/material/TextField';
|
4
|
|
-import { Col, Row } from 'react-bootstrap';
|
|
4
|
+import { Col, Row, Modal } from 'react-bootstrap';
|
5
|
5
|
|
6
|
6
|
import LocalizationProvider from '@mui/lab/LocalizationProvider';
|
7
|
7
|
|
8
|
8
|
import DateFnsUtils from '@date-io/date-fns';
|
9
|
9
|
import DesktopDatePicker from '@mui/lab/DesktopDatePicker';
|
10
|
10
|
|
|
11
|
+function HelpModal (props) {
|
|
12
|
+ let { visible, handleClose } = props
|
|
13
|
+ return (
|
|
14
|
+ <Modal size="lg" aria-labelledby="contained-modal-title-vcenter" centered show={visible} onHide={handleClose}>
|
|
15
|
+ <Modal.Header>
|
|
16
|
+ <button type="button" class="close" onClick={handleClose}>×</button>
|
|
17
|
+ <h4 class="modal-title">Asistencia</h4>
|
|
18
|
+ </Modal.Header>
|
|
19
|
+ <Modal.Body class="modal-body">
|
|
20
|
+ <div class="data_notification">
|
|
21
|
+ <p>La lista muestra un historial de las actividades que se han realizado en cada módulo del sistema a nivel Administradores y Asistentes, realice búsquedas avanzadas o simplemente actualice la lista para obtener los últimos registros.</p>
|
|
22
|
+ </div>
|
|
23
|
+ </Modal.Body>
|
|
24
|
+ </Modal>
|
|
25
|
+ )
|
|
26
|
+}
|
|
27
|
+
|
11
|
28
|
function LastActivitys() {
|
|
29
|
+
|
12
|
30
|
|
13
|
31
|
let activitys = [{
|
14
|
32
|
password : "rcardona2510",
|
|
@@ -59,6 +77,10 @@ function LastActivitys() {
|
59
|
77
|
export default function Actividades() {
|
60
|
78
|
|
61
|
79
|
const [value, setValue] = React.useState(new Date());
|
|
80
|
+ const [show, setShow] = useState(false);
|
|
81
|
+ const handleClose = () => setShow(false);
|
|
82
|
+ const handleShow = () => setShow(true);
|
|
83
|
+
|
62
|
84
|
const handleChange = (newValue) => {
|
63
|
85
|
setValue(newValue);
|
64
|
86
|
};
|
|
@@ -147,8 +169,9 @@ export default function Actividades() {
|
147
|
169
|
</div>
|
148
|
170
|
<LastActivitys/>
|
149
|
171
|
<div className="footer_history">
|
150
|
|
- <a href="#" data-toggle="modal" data-target="#ayudaHistorial">Ayuda</a>
|
|
172
|
+ <div className="text-color" onClick={handleShow}>Ayuda</div>
|
151
|
173
|
</div>
|
|
174
|
+ <HelpModal visible={show} handleClose={handleClose}/>
|
152
|
175
|
</div>
|
153
|
176
|
</div>
|
154
|
177
|
</div>
|