diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index da8aa512..2dae6d77 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -15,6 +15,7 @@ import { faIdCardAlt } from '@fortawesome/free-solid-svg-icons' import { faHashtag } from '@fortawesome/free-solid-svg-icons' import { faCircleQuestion } from '@fortawesome/free-solid-svg-icons' import { useCookies } from 'react-cookie' +import classNames from 'classnames'; const Inquilinos = () => { const emptyTenant = { @@ -603,31 +604,85 @@ const Inquilinos = () => { -
-
-
Registrar Inquilino
-
-
- - onInputChange(e, 'email')} - /> +
+
+
Registro de un administrador de una comunidad de viviendas
+
+
+ +
+
+ + + + onInputChange(e, 'name')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.name === '' })} /> +
+ {submitted && tenant.name === '' && Nombre es requerido.} +
-
- - onInputChange(e, 'community_id')} - /> +
+ +
+
+ + + + onInputChange(e, 'last_name')} required autoFocus className={classNames({ 'p-invalid': submitted && tenant.last_name === '' })} /> +
+ {submitted && tenant.last_name === '' && Apellidos es requerido.} +
-