<h1>Unauthorized</h1>

<p-table #dt [value]="noauthProbes" selectionMode="single" dataKey="id">
    <ng-template pTemplate="header">
        <tr>
            <th style="width: 3.25em" pResizableColumn></th>
            <th style="width: 20em">Probe Key</th>
            <th>Host Name</th>
            <th>OS</th>
            <th style="width: 7em">Created at</th>
        </tr>
    </ng-template>
    <ng-template pTemplate="body" let-rowData let-expanded="expanded" let-columns="columns">
        <tr [pSelectableRow]="rowData.data" [pRowToggler]="rowData">
            <td>
                <a href="#">
                    <i [ngClass]="expanded ? 'fa fa-fw fa-chevron-circle-down' : 'fa fa-fw fa-chevron-circle-right'"></i>
                </a>
            </td>
            <td>{{rowData.data.tempProbeKey}}</td>
            <td>{{rowData.meta.host.name}}</td>
            <td>{{rowData.meta.host.os}}</td>
            <td>{{rowData.data.createDate | date: 'dd/MM/yyyy'}}</td>
        </tr>
    </ng-template>
    <ng-template pTemplate="rowexpansion" let-rowData let-columns="columns">
        <tr>
            <td [attr.colspan]="5">
                <div class="ui-g ui-g-12">

                    <div class="ui-g-12 ui-md-6">
                        <div class="ui-g-12">
                            <b>Platform:</b> {{rowData.meta.host.platform}}
                        </div>

                        <div class="ui-g-12">
                            <b>Platform family:</b> {{rowData.meta.host.platformFamily}}
                        </div>
                        <div class="ui-g-12">
                            <b>Kernel:</b> {{rowData.meta.host.kernelVersion}}
                        </div>
                        <div class="ui-g-12">
                            <b>HostID:</b> {{rowData.meta.host.hostID}}
                        </div>
                    </div>

                    <div class="ui-g-12 ui-md-6">
                        <div class="ui-g">
                            <div class="ui-g-12">
                                <b>NIC:</b> {{rowData.meta.network.name}}
                            </div>
                            <div class="ui-g-12">
                                <b>Network Address:</b> {{rowData.meta.network.address}}
                            </div>
                            <div class="ui-g-12">
                                <b>Gateway:</b> {{rowData.meta.network.gateway}}
                            </div>
                            <div class="ui-g-12">
                                <b>Mac Address:</b> {{rowData.meta.network.macAddress}}
                            </div>
                        </div>
                    </div>
                    <div class="ui-g-12" dir="rtl">
                        <button class="ui-button-danger ui-button-width-fit" type="button" label="Deny" icon="ui-icon-close" pButton (click)="onAcceptOrDeny(false, rowData.data)"></button>
                        <button class=" ui-button-width-fit" type="button" label="Accept" icon="fa-check" pButton (click)="onAcceptOrDeny(true, rowData.data)"></button>            
                    </div>
                </div>
            </td>
        </tr>
    </ng-template>
</p-table>
<p-confirmDialog header="Confirmation" icon="fa ui-icon-warning" width="425"></p-confirmDialog>
<p-growl [(value)]="msgs"></p-growl>
