nuevas vistas
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
<table class="table" *ngIf="restaurante" border="1">
|
||||
|
||||
<table class="table table-bordered table-hover" *ngIf="restaurante" border="1">
|
||||
<thead>
|
||||
<tr >
|
||||
<th>id</th><th>nombre</th>
|
||||
<th scope="col">id</th><th scope="col">nombre</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr *ngFor="let r of restaurante.data">
|
||||
<td>{{r.id}}</td>
|
||||
<tr *ngFor="let r of restaurante.data" data-bs-toggle="modal" data-bs-target="#modificarRes" (click)="modificarResModal(r.id,r.nombre)">
|
||||
<td scope="row">{{r.id}}</td>
|
||||
<td>{{r.nombre}}</td>
|
||||
<td><p><button class="btn btn-primary" (click)="eliminarRes('6205091c-f172-424e-908c-f3c4bde39a9b')">eliminar</button></p></td>
|
||||
<td><p><button class="btn btn-danger" (click)="modificarRes('59323ad5-b0e5-45a2-8a2b-696f275ef209')">modificar</button></p></td>
|
||||
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@@ -21,16 +19,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
<p>
|
||||
nombre:<input type="text" [(ngModel)]="agre.nombre">
|
||||
</p>
|
||||
<p><button class="btn btn-primary" (click)="agregarRes()">agregar</button></p>
|
||||
<p><button class="btn btn-primary" (click)="eliminarRes('6205091c-f172-424e-908c-f3c4bde39a9b')">elimiminar</button></p>
|
||||
<p><button class="btn btn-danger" (click)="modificarRes('59323ad5-b0e5-45a2-8a2b-696f275ef209')">modificar</button></p>
|
||||
|
||||
</div>
|
||||
|
||||
<app-modal [idModalRes]="idSelect" [nombreSelect]="nombreSelect"></app-modal>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user