diff --git a/components/administrador/admin.js b/components/administrador/admin.js new file mode 100644 index 0000000..24ef5d7 --- /dev/null +++ b/components/administrador/admin.js @@ -0,0 +1,34 @@ + +import React, { useState } from 'react'; +import {Form,Button} from "react-bootstrap"; + + +function fileValidation(){ + var fileInput = document.getElementById('file'); + var filePath = fileInput.value; + var allowedExtensions = /(.csv)$/i; + if(!allowedExtensions.exec(filePath)){ + alert('Please upload file having extensions .csv only.'); + fileInput.value = ''; + return false; + } +} + + + +function SubirArchivo(){ + + return( +
+ + fileValidation()}/> + +

+ +

+
+ ); +} +export default SubirArchivo; \ No newline at end of file diff --git a/components/layouts/header.js b/components/layouts/header.js index 7579773..5cc2282 100644 --- a/components/layouts/header.js +++ b/components/layouts/header.js @@ -10,15 +10,7 @@ function Header() {
- ) } -export default Header; -/* - - - - - - */ \ No newline at end of file +export default Header; \ No newline at end of file diff --git a/components/layouts/layout.js b/components/layouts/layout.js index 28f4957..dc64013 100644 --- a/components/layouts/layout.js +++ b/components/layouts/layout.js @@ -6,7 +6,6 @@ import Footer from "./footer"; const Layout = (props) => (
-
diff --git a/components/layouts/layoutSalir.js b/components/layouts/layoutSalir.js new file mode 100644 index 0000000..75e9007 --- /dev/null +++ b/components/layouts/layoutSalir.js @@ -0,0 +1,19 @@ +import styles from "../../styles/default.module.css"; +import { Container, Row, Col,Stack,Button } from "react-bootstrap"; +function Salir(){ + return( +
+ + +
+ + + +
+
+
+
+ ); +} + +export default Salir; \ No newline at end of file diff --git a/components/login/login.js b/components/login/login.js index c608b91..9383b18 100644 --- a/components/login/login.js +++ b/components/login/login.js @@ -5,12 +5,11 @@ import {FormGroup, Label, Input} from "reactstrap"; import styles from "../../styles/login.module.css"; function App() { - const[radio, setRadio] = useState("profesor"); + const[radio, setRadio] = useState(""); const cambioRadio=e=>{ setRadio(e.target.value); } - return ( @@ -32,7 +31,6 @@ function App() { Profesor/a - - { if(radio==="profesor") return( -

+

@@ -126,7 +123,7 @@ function App() { ) else if(radio==="operador") return( -

+

@@ -134,7 +131,7 @@ function App() { ) else if(radio==="admin") return( -

+

diff --git a/components/profesores_registro/invitado.js b/components/profesores_registro/invitado.js index 7c6583a..5872d38 100644 --- a/components/profesores_registro/invitado.js +++ b/components/profesores_registro/invitado.js @@ -9,9 +9,9 @@ function Invitado(props){ -

Nombre(s):

-

Apellidos:

-

Edad:

+

Nombre(s):

+

Apellidos:

+

Edad:

@@ -31,9 +31,9 @@ function Invitado(props){ -
-
-
+
+
+