|
@@ -1,17 +1,16 @@
|
|
|
import { Modal } from 'react-bootstrap'
|
|
import { Modal } from 'react-bootstrap'
|
|
|
import * as React from 'react';
|
|
import * as React from 'react';
|
|
|
|
|
|
|
|
-import {
|
|
|
|
|
|
|
+import {
|
|
|
Box, Stepper, Step,
|
|
Box, Stepper, Step,
|
|
|
- StepLabel, Button , Typography
|
|
|
|
|
|
|
+ StepLabel, Button, Typography
|
|
|
} from '@mui/material'
|
|
} from '@mui/material'
|
|
|
|
|
|
|
|
-import { StepOne } from '../Password/Steps/one'
|
|
|
|
|
-import { StepTwo } from '../Password/Steps/two'
|
|
|
|
|
-import { StepTree } from '../Password/Steps/tree'
|
|
|
|
|
|
|
+import { Puesto } from '../Password/Steps/puesto'
|
|
|
|
|
+import { Password } from '../Password/Steps/password'
|
|
|
import { StepFour } from '../Password/Steps/four'
|
|
import { StepFour } from '../Password/Steps/four'
|
|
|
|
|
|
|
|
-export function HelpModal (props) {
|
|
|
|
|
|
|
+export function HelpModal(props) {
|
|
|
|
|
|
|
|
let { visible, handleClose } = props
|
|
let { visible, handleClose } = props
|
|
|
|
|
|
|
@@ -52,54 +51,54 @@ export function HelpModal (props) {
|
|
|
|
|
|
|
|
const steps = [
|
|
const steps = [
|
|
|
{
|
|
{
|
|
|
- label : 'Información del candidato',
|
|
|
|
|
- operation:
|
|
|
|
|
- <StepOne
|
|
|
|
|
- handleNext={handleNext}
|
|
|
|
|
- handleBack={handleBack}
|
|
|
|
|
- password={password}
|
|
|
|
|
- setPassword={setPassword}
|
|
|
|
|
|
|
+ label: 'Selecciona un Puesto',
|
|
|
|
|
+ operation:
|
|
|
|
|
+ <Puesto
|
|
|
|
|
+ handleNext={handleNext}
|
|
|
|
|
+ handleBack={handleBack}
|
|
|
|
|
+ password={password}
|
|
|
|
|
+ setPassword={setPassword}
|
|
|
/>
|
|
/>
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label : 'Seleccionar plaza',
|
|
|
|
|
|
|
+ label: 'Contraseña',
|
|
|
operation:
|
|
operation:
|
|
|
- <StepTwo
|
|
|
|
|
- handleNext={handleNext}
|
|
|
|
|
- handleBack={handleBack}
|
|
|
|
|
- password={password}
|
|
|
|
|
- setPassword={setPassword}
|
|
|
|
|
|
|
+ <Password
|
|
|
|
|
+ handleNext={handleNext}
|
|
|
|
|
+ handleBack={handleBack}
|
|
|
|
|
+ password={password}
|
|
|
|
|
+ setPassword={setPassword}
|
|
|
/>
|
|
/>
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label : 'Seleccionar pruebas',
|
|
|
|
|
|
|
+ label: 'Seleccionar pruebas',
|
|
|
operation:
|
|
operation:
|
|
|
- <StepTree
|
|
|
|
|
- handleNext={handleNext}
|
|
|
|
|
- handleBack={handleBack}
|
|
|
|
|
- password={password}
|
|
|
|
|
- setPassword={setPassword}
|
|
|
|
|
|
|
+ <Puesto
|
|
|
|
|
+ handleNext={handleNext}
|
|
|
|
|
+ handleBack={handleBack}
|
|
|
|
|
+ password={password}
|
|
|
|
|
+ setPassword={setPassword}
|
|
|
/>
|
|
/>
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label : 'Confirmar',
|
|
|
|
|
- operation:
|
|
|
|
|
|
|
+ label: 'Confirmar',
|
|
|
|
|
+ operation:
|
|
|
<StepFour
|
|
<StepFour
|
|
|
- handleNext={handleNext}
|
|
|
|
|
- handleBack={handleBack}
|
|
|
|
|
- password={password}
|
|
|
|
|
- setPassword={setPassword}
|
|
|
|
|
|
|
+ handleNext={handleNext}
|
|
|
|
|
+ handleBack={handleBack}
|
|
|
|
|
+ password={password}
|
|
|
|
|
+ setPassword={setPassword}
|
|
|
/>
|
|
/>
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <Modal size="lg"
|
|
|
|
|
- aria-labelledby="contained-modal-title-vcenter"
|
|
|
|
|
- centered show={visible}
|
|
|
|
|
|
|
+ <Modal size="lg"
|
|
|
|
|
+ aria-labelledby="contained-modal-title-vcenter"
|
|
|
|
|
+ centered show={visible}
|
|
|
onHide={handleClose}
|
|
onHide={handleClose}
|
|
|
- >
|
|
|
|
|
|
|
+ >
|
|
|
<Modal.Header>
|
|
<Modal.Header>
|
|
|
<button type="button" className="close" onClick={handleClose}>×</button>
|
|
<button type="button" className="close" onClick={handleClose}>×</button>
|
|
|
<h4 className="modal-title">Crear Contraseña</h4>
|
|
<h4 className="modal-title">Crear Contraseña</h4>
|
|
@@ -107,7 +106,11 @@ export function HelpModal (props) {
|
|
|
<Modal.Body className="modal-body">
|
|
<Modal.Body className="modal-body">
|
|
|
|
|
|
|
|
<Box sx={{ width: '100%' }}>
|
|
<Box sx={{ width: '100%' }}>
|
|
|
- <Stepper activeStep={activeStep}>
|
|
|
|
|
|
|
+ <Stepper
|
|
|
|
|
+ sx={{
|
|
|
|
|
+ flexWrap :'wrap'
|
|
|
|
|
+ }}
|
|
|
|
|
+ activeStep={activeStep}>
|
|
|
{steps.map((step, index) => {
|
|
{steps.map((step, index) => {
|
|
|
const stepProps = {};
|
|
const stepProps = {};
|
|
|
const labelProps = {};
|
|
const labelProps = {};
|
|
@@ -116,7 +119,9 @@ export function HelpModal (props) {
|
|
|
}
|
|
}
|
|
|
return (
|
|
return (
|
|
|
<Step key={step.label} {...stepProps}>
|
|
<Step key={step.label} {...stepProps}>
|
|
|
- <StepLabel {...labelProps}>{step.label}</StepLabel>
|
|
|
|
|
|
|
+ <StepLabel
|
|
|
|
|
+ sx={{ margin:1}}
|
|
|
|
|
+ {...labelProps}>{step.label}</StepLabel>
|
|
|
</Step>
|
|
</Step>
|
|
|
);
|
|
);
|
|
|
})}
|
|
})}
|
|
@@ -132,14 +137,14 @@ export function HelpModal (props) {
|
|
|
</Box>
|
|
</Box>
|
|
|
</React.Fragment>
|
|
</React.Fragment>
|
|
|
) : (
|
|
) : (
|
|
|
- <React.Fragment>
|
|
|
|
|
|
|
+ <React.Fragment>
|
|
|
|
|
|
|
|
- <Box style={{ padding : 25, marginTop : 25}}>
|
|
|
|
|
- {steps[activeStep].operation}
|
|
|
|
|
- </Box>
|
|
|
|
|
|
|
+ <Box style={{ padding: 25, marginTop: 25 }}>
|
|
|
|
|
+ {steps[activeStep].operation}
|
|
|
|
|
+ </Box>
|
|
|
|
|
|
|
|
- </React.Fragment>
|
|
|
|
|
- )}
|
|
|
|
|
|
|
+ </React.Fragment>
|
|
|
|
|
+ )}
|
|
|
</Box>
|
|
</Box>
|
|
|
|
|
|
|
|
</Modal.Body>
|
|
</Modal.Body>
|