member_webapp/@overflow/probe/component/detail/detail.component.html

102 lines
4.7 KiB
HTML
Raw Normal View History

2018-05-30 05:24:19 +00:00
<of-error-message [error]="error" [closable]="false"></of-error-message>
<of-block-progressbar [target]="content" [pending]="pending"></of-block-progressbar>
2018-05-26 09:08:40 +00:00
<p-panel #content [showHeader]="false" class="block-panel">
<div class="ui-g">
<div class="ui-g-6 ui-nopad">
<h1>Info</h1>
</div>
2018-05-26 09:59:57 +00:00
2018-05-26 09:08:40 +00:00
<div class="ui-g-6 nopad" dir="rtl" style="padding-top: 15px">
<button class="ui-button-width-fit" *ngIf="!editMode" pButton type="button" label="Edit" (click)="editMode = true"></button>
2018-05-27 09:12:20 +00:00
<button class="ui-button-width-fit" *ngIf="editMode" pButton type="button" label="Save" (click)="onEditSave()" [disabled]="displayNamedisplayNameErrMsg || descriptionErrMsg"></button>
2018-05-26 09:08:40 +00:00
<button class="ui-button-width-fit" *ngIf="editMode" pButton type="button" label="Cancel" (click)="editMode = false"></button>
</div>
2018-05-23 06:27:37 +00:00
</div>
2018-05-26 09:59:57 +00:00
<p-messages [(value)]="connectionStatus" [closable]="false"></p-messages>
2018-04-27 07:31:27 +00:00
2018-05-26 09:08:40 +00:00
<!-- Probe info -->
<div class="ui-g ui-bottom-space-10">
2018-05-30 09:16:07 +00:00
<p-panel [showHeader]="false">
2018-05-26 09:08:40 +00:00
<div *ngIf="probeHost">
2018-05-30 09:16:07 +00:00
<div class="ui-g">
2018-05-26 09:08:40 +00:00
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<div *ngIf="editMode" class="of-key-value-div">
<span>Name</span>
<span class="ng-star-inserted">
<input #displayName type="text" pInputText value="{{probeHost.probe.displayName}}" (keyup)="onDisplayNameEditing(displayName.value)"/>
<div *ngIf="displayNameErrMsg" class="ui-message ui-messages-error ui-corner-all">{{displayNameErrMsg}}</div>
</span>
</div>
<of-key-value *ngIf="!editMode" [key]="'Name'" [value]="probeHost.probe.displayName"></of-key-value>
2018-05-23 06:27:37 +00:00
</div>
2018-05-14 09:02:48 +00:00
2018-05-26 09:08:40 +00:00
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<of-key-value [key]="'CIDR'" [value]="probeHost.probe.cidr"></of-key-value>
</div>
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<div *ngIf="editMode" class="of-key-value-div">
<span>Description</span>
<span class="ng-star-inserted">
<input #description type="text" pInputText value="{{probeHost.probe.description}}" (keyup)="onDescriptionEditing(description.value)"/>
<div *ngIf="descriptionErrMsg" class="ui-message ui-messages-error ui-corner-all">{{descriptionErrMsg}}</div>
</span>
</div>
<of-key-value *ngIf="!editMode" [key]="'Description'" [value]="probeHost.probe.description"></of-key-value>
</div>
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<of-key-value [key]="'Key'" [value]="probeHost.probe.probeKey"></of-key-value>
</div>
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<of-key-value [key]="'Authrozied at'" [value]="probeHost.probe.authorizeDate | date: 'dd/MM/yyyy'"></of-key-value>
</div>
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<of-key-value [key]="'Authrozied by'" [value]="probeHost.probe.authorizeMember.name"></of-key-value>
2018-05-25 09:18:06 +00:00
</div>
2018-05-30 09:16:07 +00:00
<!--
2018-04-19 15:04:58 +00:00
</div>
2018-05-25 09:18:06 +00:00
</div>
2018-05-26 09:08:40 +00:00
</p-panel>
2018-05-30 09:16:07 +00:00
</div>-->
2018-05-25 09:18:06 +00:00
2018-05-26 09:08:40 +00:00
<!-- Host info -->
2018-05-30 09:16:07 +00:00
<!--
<div class="ui-g ui-bottom-space-10">
<p-panel [showHeader]="false">
2018-05-26 09:08:40 +00:00
<div *ngIf="probeHost">
2018-05-30 09:16:07 +00:00
<div class="ui-g">
-->
2018-05-26 09:08:40 +00:00
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<of-key-value [key]="'IPv4'" [value]="probeHost.host.ipv4"></of-key-value>
</div>
2018-05-25 09:18:06 +00:00
2018-05-26 09:08:40 +00:00
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
2018-05-26 09:59:57 +00:00
<of-key-value [key]="'IPv6'" [value]="probeHost.host.ipv6 | uppercase"></of-key-value>
2018-05-26 09:08:40 +00:00
</div>
2018-05-25 09:18:06 +00:00
2018-05-26 09:08:40 +00:00
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<of-key-value [key]="'Mac Address'" [value]="probeHost.host.mac"></of-key-value>
</div>
2018-05-25 09:18:06 +00:00
2018-05-26 09:08:40 +00:00
<div class="ui-g-12 ui-md-6 ui-key-value ui-bottom-border-1 ui-nopad">
<of-key-value [key]="'OS'" [value]="probeHost.host.os.vendor.name"></of-key-value>
</div>
2018-05-25 09:18:06 +00:00
2018-05-26 09:08:40 +00:00
</div>
2018-04-19 15:04:58 +00:00
</div>
2018-05-26 09:08:40 +00:00
</p-panel>
</div>
2018-05-30 09:16:07 +00:00
2018-05-26 09:08:40 +00:00
<div class="ui-g" dir="rtl">
2018-05-26 09:59:57 +00:00
<button class="ui-button-danger ui-button-width-fit" [disabled]="true" type="button" label="Remove this Probe" icon="ui-icon-close" pButton
2018-05-26 09:08:40 +00:00
(click)="onRemoveClick()"></button>
<button class="ui-button-width-fit" type="button" label="Discovery" icon="ui-icon-search" pButton (click)="onDiscoveryClick()"></button>
</div>
</p-panel>
2018-05-25 09:18:06 +00:00
<!-- <p-confirmDialog header="Confirmation" icon="fa ui-icon-warning" width="425"></p-confirmDialog>
<p-growl [(value)]="msgs"></p-growl> -->