|
1 |
| -<filter-panel (filterValues) = "searchFilters($event)"> |
2 |
| - <label> Number </label> |
3 |
| - <input type ="number" class="form-control"> |
4 |
| - <label> State </label> |
5 |
| - <input type ="text" class="form-control"> |
6 |
| - <label> Waiter </label> |
7 |
| - <input type ="text" class="form-control"> |
8 |
| -</filter-panel> |
| 1 | +<div> |
| 2 | + <filter-panel (filterValues) = "searchFilters($event)"> |
| 3 | + <label> Number </label> |
| 4 | + <input type ="number" class="form-control"> |
| 5 | + <label> State </label> |
| 6 | + <input type ="text" class="form-control"> |
| 7 | + <label> Waiter </label> |
| 8 | + <input type ="text" class="form-control"> |
| 9 | + </filter-panel> |
9 | 10 |
|
10 |
| -<grid-table |
11 |
| - [headers] ="headers" |
12 |
| - [attributeNames] = "attributeNames" |
13 |
| - [dataInput] = "showTables" |
14 |
| - (objSelected) = "rowSelected($event)"> |
15 |
| -</grid-table> |
| 11 | + <grid-table |
| 12 | + [headers] ="headers" |
| 13 | + [attributeNames] = "attributeNames" |
| 14 | + [dataInput] = "showTables" |
| 15 | + (objSelected) = "rowSelected($event)"> |
| 16 | + </grid-table> |
16 | 17 |
|
17 |
| -<div style="text-align:center"> |
18 |
| - <button type="button" class="btn btn-pagination" data-toggle="modal" [disabled] = "myState === -1" data-target = "#myModal">Edit</button> |
19 |
| - <button type="button" class="btn btn-pagination" (click)="reserve()" [disabled] = "myState === 3 || myState === 2 || myState === -1">Reserve</button> |
20 |
| - <button type="button" class="btn btn-pagination" (click)="cancelReservation()" [disabled] = "myState === 0 || myState === 1 || myState === 2 || myState === -1">Cancel Reservation</button> |
21 |
| - <button type="button" class="btn btn-pagination" (click)="occupy()" [disabled] = "myState === 2 || myState === 0 || myState === 1 || myState === -1">Occupy</button> |
22 |
| - <button type="button" class="btn btn-pagination" (click)="free()" [disabled] = "myState === 1 || myState === -1">Free</button> |
23 |
| - |
24 |
| - <div class="container"> |
25 |
| - <div class="modal" id="myModal" role="dialog"> |
26 |
| - <div class="modal-dialog modal-lm"> |
27 |
| - <div class="modal-content"> |
28 |
| - <div class="modal-header"> |
29 |
| - <button type="button" class="close" data-dismiss="modal">×</button> |
30 |
| - <h3 class="modal-title" style="float:left;">Details for Table #{{selectedTable.number}}</h3> |
31 |
| - </div> |
32 |
| - <div class="modal-body"> |
33 |
| - <tableDetails [parentTable]="selectedTable" (parentTableEvent)="selectedTable = $event" (resultEvent)="rowSelected($event)" [_commands]="_commands"></tableDetails> |
34 |
| - </div> |
35 |
| - </div> |
36 |
| - </div> |
37 |
| - </div> |
38 |
| - </div> |
39 |
| -</div> |
| 18 | + <div style="text-align:center"> |
| 19 | + <button type="button" class="btn btn-pagination" [disabled] = "myState === -1" data-toggle="modal" data-target="prueba" (click)="openEditModal()">Edit</button> |
| 20 | + <button type="button" class="btn btn-pagination" (click)="reserve()" [disabled] = "myState === 3 || myState === 2 || myState === -1">Reserve</button> |
| 21 | + <button type="button" class="btn btn-pagination" (click)="cancelReservation()" [disabled] = "myState === 0 || myState === 1 || myState === 2 || myState === -1">Cancel Reservation</button> |
| 22 | + <button type="button" class="btn btn-pagination" (click)="occupy()" [disabled] = "myState === 2 || myState === 0 || myState === 1 || myState === -1">Occupy</button> |
| 23 | + <button type="button" class="btn btn-pagination" (click)="free()" [disabled] = "myState === 1 || myState === -1">Free</button> |
| 24 | + </div> |
40 | 25 |
|
41 |
| -<div style="text-align:right"> |
42 |
| - <pagination |
43 |
| - [list] = "tables" |
44 |
| - [rowsPerPage] = "tablesPerPage" |
45 |
| - (paginationList) = "pagination($event)"> |
46 |
| - </pagination> |
| 26 | + <div style="text-align:right"> |
| 27 | + <pagination [list] = "tables" [rowsPerPage] = "tablesPerPage" (paginationList) = "pagination($event)"></pagination> |
| 28 | + </div> |
47 | 29 | </div>
|
| 30 | + |
| 31 | +<modal-dialog id="modal" |
| 32 | + *ngIf="hideModalDialog" |
| 33 | + [modal]=true |
| 34 | + [TITLE]=modalHeader |
| 35 | + style="position:absolute; left: 0px; top: 0px; width:100%; height:100%;"> |
| 36 | + <tableDetails [parentTable]="selectedTable" (closeWindowEvent)="hideModalDialog = $event" (resultEvent)="rowSelected($event)" [_commands]="_commands"></tableDetails> |
| 37 | +</modal-dialog> |
0 commit comments