From 70174ad5df71ee2de362b9ce9724fd3b395792c4 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Sat, 20 Aug 2022 20:25:55 -0600 Subject: [PATCH] request complete info on tenant for registration it's too complex to handle it as a two-step process, plus it makes sense to get all this information when registering a new tenant into an apartment anyway --- web-ui/web-react/src/components/Inquilinos.js | 101 ++++++++++++++---- 1 file changed, 78 insertions(+), 23 deletions(-) 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.} +
-