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( +
+ +
+ + ); +} +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() {+
@@ -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: