|
@@ -0,0 +1,190 @@
|
|
|
|
|
+import React, {useEffect} from 'react'
|
|
|
|
|
+import { Col, Row, Container } from 'react-bootstrap';
|
|
|
|
|
+import * as Yup from 'yup';
|
|
|
|
|
+import { Formik, Field, Form } from 'formik';
|
|
|
|
|
+import $ from 'jquery';
|
|
|
|
|
+
|
|
|
|
|
+import Logo from '../Images/logo.png'
|
|
|
|
|
+
|
|
|
|
|
+import HeaderPruebas from '../Components/HeaderPruebas'
|
|
|
|
|
+import ImagenPrueba from '../Images/prueba.png'
|
|
|
|
|
+
|
|
|
|
|
+import Respuesta1 from '../Images/respuesta.png'
|
|
|
|
|
+import Respuesta2 from '../Images/respuesta2.png'
|
|
|
|
|
+import Respuesta3 from '../Images/respuesta3.png'
|
|
|
|
|
+
|
|
|
|
|
+export function PruebaNueva() {
|
|
|
|
|
+
|
|
|
|
|
+ useEffect(() => {
|
|
|
|
|
+ $('#sites input:radio').addClass('input_hidden');
|
|
|
|
|
+ $('#sites label').click(function() {
|
|
|
|
|
+ $(this).addClass('selected').siblings().removeClass('selected');
|
|
|
|
|
+ });
|
|
|
|
|
+ },[])
|
|
|
|
|
+
|
|
|
|
|
+ return(
|
|
|
|
|
+ <section>
|
|
|
|
|
+ <div className="content-section">
|
|
|
|
|
+ <div className="main">
|
|
|
|
|
+ <Container>
|
|
|
|
|
+ <h1>Crear pruebas</h1>
|
|
|
|
|
+ <div className="asignar_usuario">
|
|
|
|
|
+ <Row>
|
|
|
|
|
+ <Col md="4">
|
|
|
|
|
+ <div className="datos_candidato">
|
|
|
|
|
+ <label>Tipo de prueba</label>
|
|
|
|
|
+ <select>
|
|
|
|
|
+ <option selected disabled>Selecciona el tipo de prueba que deseas añadir</option>
|
|
|
|
|
+ <option>Comportamiento</option>
|
|
|
|
|
+ <option>Personalidad</option>
|
|
|
|
|
+ <option>Inteligencia</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col md="4">
|
|
|
|
|
+ <div className="datos_candidato">
|
|
|
|
|
+ <label>Nombre</label>
|
|
|
|
|
+ <input type="text" name="nombre" placeholder="Nombre de la prueba"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col md="4">
|
|
|
|
|
+ <div className="datos_candidato">
|
|
|
|
|
+ <label>Duración de prueba</label>
|
|
|
|
|
+ <select>
|
|
|
|
|
+ <option selected disabled>Selecciona el tiempo de duración de la prueba</option>
|
|
|
|
|
+ <option>10</option>
|
|
|
|
|
+ <option>15</option>
|
|
|
|
|
+ <option>30</option>
|
|
|
|
|
+ <option>45</option>
|
|
|
|
|
+ <option>60</option>
|
|
|
|
|
+ <option>90</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ </Row>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="body_preguntas">
|
|
|
|
|
+ <div className="botones_preguntas">
|
|
|
|
|
+ <label>Tipo de pregunta</label>
|
|
|
|
|
+ <Row>
|
|
|
|
|
+ <Col md="6">
|
|
|
|
|
+ <div className="datos_candidato">
|
|
|
|
|
+ <select>
|
|
|
|
|
+ <option selected disabled>Selecciona el tipo de pregunta que deseas añadir</option>
|
|
|
|
|
+ <option>Selección múltiple</option>
|
|
|
|
|
+ <option>Falso y verdadero</option>
|
|
|
|
|
+ <option>Preguntas directas</option>
|
|
|
|
|
+ <option>Relaciones de conceptos</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col md="6">
|
|
|
|
|
+ <button className="btn_agregar_pregunta">Añadir pregunta</button>
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ </Row>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="body_prueba_nueva">
|
|
|
|
|
+ <div className="contenedor_pruebas">
|
|
|
|
|
+ <HeaderPruebas/>
|
|
|
|
|
+ <h1>Preguntas</h1>
|
|
|
|
|
+ <div className="body_preg_indi">
|
|
|
|
|
+ <div className="titulo_pregunta">
|
|
|
|
|
+ <span>Pregunta 1</span><input type="text" name="pregunta" placeholder="Escribe tu pregunta directa aquí" className="input_pregunta"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="respuesta_pregunta">
|
|
|
|
|
+ <input type="text" name="respuesta" placeholder="Escribe tu respuesta aquí"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="body_preg_indi">
|
|
|
|
|
+ <div className="titulo_pregunta">
|
|
|
|
|
+ <span>Pregunta 2</span><input type="text" name="pregunta" placeholder="Escribe tu pregunta verdadero y falso" className="input_pregunta"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="respuesta_pregunta">
|
|
|
|
|
+ <div className="radio">
|
|
|
|
|
+ <form>
|
|
|
|
|
+ <input onChange={(event)=> console.log(event.target.value)} id="true" type="radio" name="gender" value="true" checked="checked"/>
|
|
|
|
|
+ <label for="true">Verdadero</label>
|
|
|
|
|
+ <input id="false" type="radio" name="gender" value="false"/>
|
|
|
|
|
+ <label for="false">Falso</label>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="body_preg_indi">
|
|
|
|
|
+ <div className="titulo_pregunta">
|
|
|
|
|
+ <span>Pregunta 3</span><input type="text" name="pregunta" placeholder="Escribe tu pregunta selección múltiple" className="input_pregunta"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="respuesta_pregunta">
|
|
|
|
|
+ <div className="radio">
|
|
|
|
|
+ <form>
|
|
|
|
|
+ <input id="opcion1" type="radio" name="gender" value="opcion1"/>
|
|
|
|
|
+ <label for="opcion1">Opción 1</label>
|
|
|
|
|
+ <input id="opcion2" type="radio" name="gender" value="opcion2" checked="checked"/>
|
|
|
|
|
+ <label for="opcion2">Opción 2</label>
|
|
|
|
|
+ <input id="opcion3" type="radio" name="gender" value="opcion3"/>
|
|
|
|
|
+ <label for="opcion3">Opción 3</label>
|
|
|
|
|
+ <input id="opcion4" type="radio" name="gender" value="opcion4"/>
|
|
|
|
|
+ <label for="opcion4">Opción 4</label>
|
|
|
|
|
+ <input id="opcion5" type="radio" name="gender" value="opcion5"/>
|
|
|
|
|
+ <label for="opcion5">Opción 5</label>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="body_preg_indi">
|
|
|
|
|
+ <div className="titulo_pregunta">
|
|
|
|
|
+ <span>Pregunta 4</span><input type="text" name="pregunta" placeholder="Ve la siguiente imagen y encuentra la faltante" className="input_pregunta"/>
|
|
|
|
|
+ <div className="button_subir_foto_pregunta">
|
|
|
|
|
+ <form action="">
|
|
|
|
|
+ <div className="form-group">
|
|
|
|
|
+ <label style={{ color : 'white' }} for="upload" className="btn d-inline-block btn-info">Subir imagen</label>
|
|
|
|
|
+ <input type="file" name="" id="upload" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="img_relaciones">
|
|
|
|
|
+ <img alt="imagen de prueba" src={ImagenPrueba}/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="respuesta_pregunta">
|
|
|
|
|
+ <div className="button_subir_foto_pregunta">
|
|
|
|
|
+ <form action="">
|
|
|
|
|
+ <div className="form-group">
|
|
|
|
|
+ <label style={{ color : 'white' }} for="upload" className="btn d-inline-block btn-info">Añadir respuesta</label>
|
|
|
|
|
+ <input type="file" name="" id="upload" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <form>
|
|
|
|
|
+ <div id="sites">
|
|
|
|
|
+ <input type="radio" name="site" id="option1" value="option1" />A.<label for="option1"><img src={Respuesta1} alt="Opción 1" /></label>
|
|
|
|
|
+ <input type="radio" name="site" id="option2" value="option2" />B.<label for="option2"><img src={Respuesta2} alt="Opción 2" /></label>
|
|
|
|
|
+ <input type="radio" name="site" id="option3" value="option3" />C.<label for="option3"><img src={Respuesta3} alt="Opción 3" /></label>
|
|
|
|
|
+ <input type="radio" name="site" id="option1" value="option1" />D.<label for="option1"><img src={Respuesta1} alt="Opción 1" /></label>
|
|
|
|
|
+ <input type="radio" name="site" id="option2" value="option2" />E.<label for="option2"><img src={Respuesta2} alt="Opción 2" /></label>
|
|
|
|
|
+ <input type="radio" name="site" id="option3" value="option3" />F.<label for="option3"><img src={Respuesta3} alt="Opción 3" /></label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="form-group-guardar-prueba">
|
|
|
|
|
+ <input style={{ color : 'white' }} type="button" className="btn d-inline-block btn-info" value="Guardar prueba"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div style={{ paddingTop : 15 }} class="header_prueba">
|
|
|
|
|
+ <img alt="logo pruebas" src={Logo}/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="allrights_footer_prueba">
|
|
|
|
|
+ <p>Esta prueba fue realizada con PruebasPsico</p>
|
|
|
|
|
+ <p>Todos los derechos reservados</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Container>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </section>
|
|
|
|
|
+ )
|
|
|
|
|
+}
|