formatear correctamente el formulario de registro de inquilinos

This commit is contained in:
Eduardo Quiros 2022-07-19 19:23:36 -06:00
parent 4c812dce5d
commit 6a69546f21
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 13 additions and 14 deletions

View File

@ -1,3 +1,4 @@
import { Dropdown } from 'primereact/dropdown';
import { InputText } from 'primereact/inputtext' import { InputText } from 'primereact/inputtext'
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
@ -41,22 +42,20 @@ const Inquilinos = () => {
<div className="grid"> <div className="grid">
<div className="col-12"> <div className="col-12">
<div className="card"> <div className="card">
<h5 className="card-header">Registrar inquilino</h5> <h5 className="card-header">Registrar Inquilino</h5>
<div className="card-body"> <div className="p-fluid formgrid grid">
<div className="p-fluid formgrid grid"> <div className="p-field col-12 md:col-6">
<div className="p-field col-12 md:col-6"> <label htmlFor="correo_electronico">Correo electrónico</label>
<label htmlFor="correo_electronico">Correo electrónico</label> <InputText type="email" className="form-control" id="correo_electronico" />
<InputText type="email" className="form-control" id="correo_electronico" /> </div>
</div> <div className="p-field col-12 md:col-6">
<div className="p-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 id="numero_vivienda" value={communityIdList[0]} options={communitiesList} />
<InputText type="text" className="form-control" id="numero_vivienda" />
</div>
</div> </div>
<button type="button" className="btn btn-primary" onClick={registrarInquilino}>
Registrar
</button>
</div> </div>
<button type="button" className="btn btn-primary" onClick={registrarInquilino}>
Registrar
</button>
</div> </div>
</div> </div>
</div> </div>