add 'required' key to form

This commit is contained in:
Eduardo Quiros 2022-08-04 00:54:36 -06:00
parent 589a56257e
commit a9d851f163
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
2 changed files with 17 additions and 2 deletions

View File

@ -602,6 +602,7 @@ const Inquilinos = () => {
<div className='field col-12 md:col-6'>
<label htmlFor='correo_electronico'>Correo electrónico</label>
<InputText
required
type='email'
className='form-control'
id='correo_electronico'
@ -610,6 +611,7 @@ const Inquilinos = () => {
<div className='field col-12 md:col-6'>
<label htmlFor='numero_vivienda'>Número de Vivienda</label>
<Dropdown
required
id='numero_vivienda'
value={communityId}
options={cList}

View File

@ -71,15 +71,26 @@ const Inquilinos = () => {
<div className='p-fluid formgrid grid'>
<div className='field col-12 md:col-6'>
<label htmlFor='nombre'>Nombre</label>
<InputText type='text' className='form-control' id='nombre' />
<InputText
required
type='text'
className='form-control'
id='nombre'
/>
</div>
<div className='field col-12 md:col-6'>
<label htmlFor='apellidos'>Apellido(s)</label>
<InputText type='text' className='form-control' id='apellidos' />
<InputText
required
type='text'
className='form-control'
id='apellidos'
/>
</div>
<div className='field col-12 md:col-6'>
<label htmlFor='identificacion'>Identificación</label>
<InputText
required
type='text'
className='form-control'
id='identificacion'
@ -88,6 +99,7 @@ const Inquilinos = () => {
<div className='field col-12 md:col-6'>
<label htmlFor='correo_electronico'>Correo electrónico</label>
<InputText
required
type='email'
className='form-control'
id='correo_electronico'
@ -96,6 +108,7 @@ const Inquilinos = () => {
<div className='field col-12 md:col-6'>
<label htmlFor='password'>Password</label>
<InputText
required
type='password'
className='form-control'
id='password'