-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from rpuigm/F019_B019_Funcionalicades_Pendient…
…es_Y_Aspecto_Visual F019 b019 funcionalicades pendientes y aspecto visual
- Loading branch information
Showing
57 changed files
with
1,044 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
131 changes: 68 additions & 63 deletions
131
clientes-app/src/app/altapersona/altapersona.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,76 @@ | ||
<app-header></app-header> | ||
<div class="row"> | ||
<div class="container"> | ||
<p></p> | ||
<p></p> | ||
<p></p> | ||
<p></p> | ||
</div> | ||
<form> | ||
<div class="form-row"> | ||
<div class="col-md-4 mb-3"> | ||
<label>Username</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Nombre Usuario" | ||
[(ngModel)]="getUsuario().username" | ||
name="username" | ||
id="username" | ||
/> | ||
</div> | ||
<div class="col-md-4 mb-3"> | ||
<label>Contraseña</label> | ||
<input | ||
type="password" | ||
class="form-control" | ||
placeholder="Password" | ||
(input) = 'setUsuarioPass($event)' | ||
name="password" | ||
id="password" | ||
/> | ||
</div> | ||
|
||
<div class="col-md-4 mb-3"> | ||
<label>Nombre</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Nombre" | ||
[(ngModel)]="usuario.nombre" | ||
name="nombre" | ||
id="nombre" | ||
/> | ||
</div> | ||
<div class="row card "> | ||
<div class="col-0 col-sm-4"></div> | ||
<div class="card-body "> | ||
<form class="p-3"> | ||
<div class="form-row"> | ||
<div class="col-md-4 mb-3"> | ||
<label>Username</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Nombre Usuario" | ||
[(ngModel)]="getUsuario().username" | ||
name="username" | ||
id="username" | ||
/> | ||
</div> | ||
<div class="col-md-4 mb-3"> | ||
<label>Contraseña</label> | ||
<input | ||
type="password" | ||
class="form-control" | ||
placeholder="Password" | ||
(input)="setUsuarioPass($event)" | ||
name="password" | ||
id="password" | ||
/> | ||
</div> | ||
|
||
<div class="col-md-4 mb-3"> | ||
<label>Nombre</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Nombre" | ||
[(ngModel)]="usuario.nombre" | ||
name="nombre" | ||
id="nombre" | ||
/> | ||
</div> | ||
|
||
<div class="col-md-4 mb-3"> | ||
<label>Apellidos</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Apellidos" | ||
[(ngModel)]="usuario.apellidos" | ||
name="apellido" | ||
id="apellido" | ||
/> | ||
</div> | ||
<div class="col-md-4 mb-3"> | ||
<label>Edad</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Edad" | ||
[(ngModel)]="usuario.edad" | ||
name="edad" | ||
id="edad" | ||
/> | ||
</div> | ||
<div class="col-md-4 mb-3"> | ||
<label>Apellidos</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Apellidos" | ||
[(ngModel)]="usuario.apellidos" | ||
name="apellido" | ||
id="apellido" | ||
/> | ||
</div> | ||
<div class="col-md-4 mb-3"> | ||
<label>Edad</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
placeholder="Edad" | ||
[(ngModel)]="usuario.edad" | ||
name="edad" | ||
id="edad" | ||
/> | ||
</div> | ||
</div> | ||
<button (click)="altaCliente()" class="btn btn-primary" type="submit"> | ||
Guardar | ||
</button> | ||
</form> | ||
</div> | ||
<button (click)="altaCliente()" class="btn btn-primary" type="submit"> | ||
Guardar | ||
</button> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
183 changes: 103 additions & 80 deletions
183
clientes-app/src/app/altaproducto/altaproducto.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,121 @@ | ||
<app-header></app-header> | ||
<div class="container"> | ||
<div class="row"> | ||
<p></p> | ||
<p></p> | ||
<p></p> | ||
<p></p> | ||
</div> | ||
<form > | ||
<div class="row card"> | ||
|
||
<div class="form-group row"> | ||
<div class="col-2"> | ||
<label>Nombre</label> | ||
</div> | ||
<div class="col-7"> | ||
<input type="text" class="form-control" (input) = 'setProductoNombre($event)' > | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<div class="col-7"> | ||
<label>Categoria</label> | ||
<input type="text" class="form-control" (input) = 'setProductoCategoria($event)' > | ||
<form> | ||
<div class="form-group row"> | ||
<label>Nombre</label> | ||
<div class="col-7"> | ||
<input | ||
type="text" | ||
class="form-control" | ||
(input)="setProductoNombre($event)" | ||
/> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<div class="col-7"> | ||
<label>Categoria</label> | ||
<input | ||
type="text" | ||
class="form-control" | ||
(input)="setProductoCategoria($event)" | ||
/> | ||
</div> | ||
|
||
<label>Precio</label> | ||
<div class="col-sm-2"> | ||
<input type="text" class="form-control" (input) = 'setProductoPrecio($event)' > | ||
<div class="col-12"></div> | ||
<label>Precio</label> | ||
<div class="col-sm-2"> | ||
<input | ||
type="text" | ||
class="form-control" | ||
(input)="setProductoPrecio($event)" | ||
/> | ||
<div class="col-12"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group row"> | ||
<label>Descripción del Producto</label> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" (input) = 'setProductoCaracteristicasDescripcion($event)' > | ||
<div class="col-12"></div> | ||
<div class="form-group row"> | ||
<label>Descripción del Producto</label> | ||
<div class="col-sm-10"> | ||
<input | ||
type="text" | ||
class="form-control" | ||
(input)="setProductoCaracteristicasDescripcion($event)" | ||
/> | ||
<div class="col-12"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="form-group row"> | ||
<label>Clave de Especificacion</label> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" (input) = 'setProductoClaveEspecificacion($event)' > | ||
<div class="col-12"></div> | ||
<div class="form-group row"> | ||
<label>Clave de Especificacion</label> | ||
<div class="col-sm-10"> | ||
<input | ||
type="text" | ||
class="form-control" | ||
(input)="setProductoClaveEspecificacion($event)" | ||
/> | ||
<div class="col-12"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label>Especificacion</label> | ||
<div class="col-sm-10"> | ||
<input type="text" class="form-control" (input) = 'setProductoEspecificacion($event)' > | ||
<div class="col-12"></div> | ||
<div class="form-group row"> | ||
<label>Especificacion</label> | ||
<div class="col-sm-10"> | ||
<input | ||
type="text" | ||
class="form-control" | ||
(input)="setProductoEspecificacion($event)" | ||
/> | ||
<div class="col-12"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<div class="col-sm-10 offset-sm-2"> | ||
<button type="submit" class="btn btn-primary" | ||
(click)="agregarEspecificacion()">Agregar Especificacion</button> | ||
<div class="form-group row"> | ||
<div class="col-sm-10 offset-sm-2 p-3"> | ||
<button | ||
type="submit" | ||
class="btn btn-primary" | ||
(click)="agregarEspecificacion()" | ||
> | ||
Agregar Especificacion | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<div class="col-sm-10 offset-sm-2"> | ||
<button type="submit" class="btn btn-primary" | ||
(click)="agregarProducto()">Guardar</button> | ||
<div class="form-group row"> | ||
<div class="col-sm-10 offset-sm-2"> | ||
<button | ||
type="submit" | ||
class="btn btn-primary" | ||
(click)="agregarProducto()" | ||
> | ||
Guardar | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
|
||
</form> | ||
|
||
<div class="col-6"> | ||
<div class="row"> | ||
|
||
<div *ngIf="getProducto()?.productoCaracteristicas"> | ||
<table class="table table-responsive"> | ||
<thead> | ||
<tr> | ||
<th class="col-2">Espicificación</th> | ||
<th class="col-10">Descripción</th> | ||
</tr> | ||
</thead> | ||
<tbody | ||
*ngFor=" | ||
let especificacion of producto.productoCaracteristicas | ||
.productoEspecificaciones"> | ||
<tr> | ||
<td>{{ especificacion.claveEspecificacion }}</td> | ||
<td>{{ especificacion.descripcionEspecificacion }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="col-6"> | ||
<div class="row"> | ||
<div *ngIf="getProducto()?.productoCaracteristicas"> | ||
<table class="table table-responsive"> | ||
<thead> | ||
<tr> | ||
<th class="col-2">Espicificación</th> | ||
<th class="col-10">Descripción</th> | ||
</tr> | ||
</thead> | ||
<tbody | ||
*ngFor=" | ||
let especificacion of producto.productoCaracteristicas | ||
.productoEspecificaciones | ||
" | ||
> | ||
<tr> | ||
<td>{{ especificacion.claveEspecificacion }}</td> | ||
<td>{{ especificacion.descripcionEspecificacion }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
<app-footer></app-footer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.