This commit is contained in:
Eduardo Quiros 2022-07-26 20:14:32 -06:00
parent b00233cd3b
commit af680149bd
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
2 changed files with 14 additions and 7 deletions

View File

@ -9,9 +9,8 @@ import { map } from 'rxjs/operators';
export class ReportsService {
constructor(
@InjectModel(Report.name)
private readonly reportModel: Model<ReportDocument>,
) //
{}
private readonly reportModel: Model<ReportDocument>, //
) {}
async create(report: ReportDocument): Promise<Report> {
return this.reportModel.create(report);

View File

@ -55,15 +55,19 @@ const Inquilinos = () => {
<div className="p-fluid formgrid grid">
<div className="p-field col-12 md:col-6">
<label htmlFor="nombre">Nombre</label>
<InputText type="text" className="form-control" id="nombre"/>
<InputText type="text" className="form-control" id="nombre" />
</div>
<div className="p-field col-12 md:col-6">
<label htmlFor="apellidos">Apellidos</label>
<InputText type="text" className="form-control" id="apellidos"/>
<InputText type="text" className="form-control" id="apellidos" />
</div>
<div className="p-field col-12 md:col-6">
<label htmlFor="identificacion">Identificación</label>
<InputText type="text" className="form-control" id="identificacion"/>
<InputText
type="text"
className="form-control"
id="identificacion"
/>
</div>
<div className="p-field col-12 md:col-6">
<label htmlFor="correo_electronico">Correo electrónico</label>
@ -83,7 +87,11 @@ const Inquilinos = () => {
</div>
<div className="p-field col-12 md:col-6">
<label htmlFor="identificacion">Identificación</label>
<InputText type="password" className="form-control" id="identificacion"/>
<InputText
type="password"
className="form-control"
id="identificacion"
/>
</div>
<Button label="Registrar" onClick={registrarInquilino} />
</div>