From b00233cd3bdc9f5c82a6656207c9a91077879e1c Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Tue, 26 Jul 2022 20:13:47 -0600 Subject: [PATCH 1/4] add extra info to registration --- web-ui/web-react/src/components/Inquilinos.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index 280cf83a..3baa25f9 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -20,8 +20,13 @@ const Inquilinos = () => { }, []); function registrarInquilino() { let data = { + dni: document.getElementById('identificacion').value, + name: document.getElementById('nombre').value, + last_name: document.getElementById('apellidos').value, + phone: document.getElementById('telefono').value, email: document.getElementById('correo_electronico').value, community_id: document.getElementById('numero_vivienda').value, + password: document.getElementById('password').value, user_type: '3', status: '1', }; @@ -48,6 +53,18 @@ const Inquilinos = () => {
Registrar Inquilino
+
+ + +
+
+ + +
+
+ + +
{ options={communitiesList} />
+
+ + +
From af680149bdd5daebcbb5d442f3fd5cb8883c1209 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Tue, 26 Jul 2022 20:14:32 -0600 Subject: [PATCH 2/4] format --- servicio-reportes/src/reports/reports.service.ts | 5 ++--- web-ui/web-react/src/components/Inquilinos.js | 16 ++++++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/servicio-reportes/src/reports/reports.service.ts b/servicio-reportes/src/reports/reports.service.ts index 1197d840..37a68957 100644 --- a/servicio-reportes/src/reports/reports.service.ts +++ b/servicio-reportes/src/reports/reports.service.ts @@ -9,9 +9,8 @@ import { map } from 'rxjs/operators'; export class ReportsService { constructor( @InjectModel(Report.name) - private readonly reportModel: Model, - ) // - {} + private readonly reportModel: Model, // + ) {} async create(report: ReportDocument): Promise { return this.reportModel.create(report); diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index 3baa25f9..3bf4375f 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -55,15 +55,19 @@ const Inquilinos = () => {
- +
- +
- +
@@ -83,7 +87,11 @@ const Inquilinos = () => {
- +
From 66cfa942e71bb37930755a9c18a2cccc8cb1c0bf Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Wed, 27 Jul 2022 21:02:59 -0600 Subject: [PATCH 3/4] use correct class name for input divs --- web-ui/web-react/src/components/Inquilinos.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index 3bf4375f..cecf52c8 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -53,15 +53,15 @@ const Inquilinos = () => {
Registrar Inquilino
-
+
-
+
-
+
{ id="identificacion" />
-
+
{ id="correo_electronico" />
-
+
{ options={communitiesList} />
-
+
Date: Fri, 29 Jul 2022 20:35:08 -0600 Subject: [PATCH 4/4] remove extra newlines --- api-gateway/src/app.controller.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api-gateway/src/app.controller.ts b/api-gateway/src/app.controller.ts index 51a8507a..20a6ee27 100644 --- a/api-gateway/src/app.controller.ts +++ b/api-gateway/src/app.controller.ts @@ -367,8 +367,4 @@ export class AppController { html(@Body('email') email: string, @Body('name') name: string) { return this.appService.html(email, name); } - - - - }