full admin + logout + RWD
This commit is contained in:
parent
55c2deb701
commit
b33a61e29b
@ -1,3 +1,4 @@
|
|||||||
|
<a style="float: right" routerLink="/"> Wyloguj </a>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
@ -67,7 +68,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table class="table">
|
<table style="margin-top:40px;" class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
||||||
@ -88,9 +89,11 @@
|
|||||||
<td>{{device.name}}</td>
|
<td>{{device.name}}</td>
|
||||||
<td>{{device.ip}}</td>
|
<td>{{device.ip}}</td>
|
||||||
|
|
||||||
<td>edytuj</td>
|
<td><button style="background-color:white;border: 1px blue solid; color: blue; opacity:0.5;" (click)="onDeviceDelete(i)">edytuj</button></td>
|
||||||
<td><button (click)="onDeviceDelete(i)">usuń</button> </td>
|
|
||||||
|
<td><button style="background-color:white;border: 1px red solid; color: red; opacity:0.5;" (click)="onDeviceDelete(i); deleteRow(i)">usuń</button> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,6 +46,18 @@ export class AdminComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
deleteRow(i){
|
||||||
|
|
||||||
|
|
||||||
|
this.devices.splice(i,1);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
onDeviceEdit() {
|
onDeviceEdit() {
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user