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

View File

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