full admin + logout + RWD

This commit is contained in:
Unknown 2019-01-18 21:26:56 +01:00
parent 55c2deb701
commit b33a61e29b
2 changed files with 18 additions and 3 deletions

View File

@ -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>

View File

@ -46,6 +46,18 @@ export class AdminComponent implements OnInit {
} }
deleteRow(i){
this.devices.splice(i,1);
}
onDeviceEdit() { onDeviceEdit() {