-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #630 from anvithks/masking-view-resource-groups
[Delfin UI] Updated the masking views UI. Added support for resource groups
- Loading branch information
Showing
7 changed files
with
685 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
269 changes: 264 additions & 5 deletions
269
src/app/business/delfin/masking-views/masking-views.component.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
210 changes: 210 additions & 0 deletions
210
src/app/business/delfin/storage-hosts/storage-hosts.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
<div class="table-toolbar"> | ||
<div class="left"> | ||
</div> | ||
<div class="right"> | ||
<div class="ui-inputsearch"> | ||
<input type="text" #searchAll pInputText placeholder="{{i18n.keyID['sds_block_volume_search']}}"> | ||
<button pButton type="button" icon="fa-search"></button> | ||
</div> | ||
</div> | ||
</div> | ||
<p-dataTable [value]="storageHostsArr" [globalFilter]="searchAll" [lazy]="true" (onLazyLoad)="loadInitiatorsLazy($event)" [expandableRows]="true" [rows]="10" [paginator]="true" [pageLinks]="3" [rowsPerPageOptions]="[10,20,50,100]" [totalRecords]="totalRecords" #spt> | ||
<p-column expander="true" styleClass="col-icon" [style]="{'width': '3%'}"></p-column> | ||
<p-column field="name" header="Name"> | ||
<ng-template pTemplate="body" let-storageHost="rowData"> | ||
<a (mouseenter)="showStorageHostOverview($event, storageHost, storageHostOverviewPanel)" (mouseleave)="showStorageHostOverview($event, storageHost, storageHostOverviewPanel)">{{storageHost.name}}</a> | ||
</ng-template> | ||
</p-column> | ||
<p-column field="ip_address" header="IP Address"> | ||
</p-column> | ||
<p-column field="status" header="Status" [style]="{'width': '8%'}"> | ||
<ng-template pTemplate="body" let-storageHost="rowData"> | ||
<span class="storage-status-icon" [ngClass]="{normal: storageHost.status=='Normal', abnormal: storageHost.status=='abnormal' || storageHost.status=='unknown' || storageHost.status=='offline'}"><i class="fa fa-circle"></i></span> | ||
<span *ngIf="storageHost.status=='Normal'">Normal</span> | ||
<span *ngIf="storageHost.status=='abnormal' || storageHost.status=='unknown'">Unknown</span> | ||
<span *ngIf="storageHost.status=='offline'">Offline</span> | ||
</ng-template> | ||
</p-column> | ||
<p-column header="Host ID"> | ||
<ng-template pTemplate="body" let-storageHost="rowData"> | ||
{{storageHost.native_storage_host_id}} | ||
</ng-template> | ||
</p-column> | ||
<ng-template let-storageHost pTemplate="rowexpansion"> | ||
<div class="details-basic-info"> | ||
<div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid"> | ||
<div class="ui-grid-col-12"> | ||
<div class="ui-grid-row details-basic-item-class"> | ||
<div class="ui-grid-col-2"> | ||
{{label.name}}: | ||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
{{storageHost.name}} | ||
</div> | ||
<div class="ui-grid-col-2"> | ||
{{label.status}}: | ||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
<span class="storage-status-icon" [ngClass]="{normal: storageHost.status=='Normal', abnormal: storageHost.status=='abnormal' || storageHost.status=='unknown' || storageHost.status=='offline'}"><i class="fa fa-circle"></i></span> | ||
<span *ngIf="storageHost.status=='Normal'">Normal</span> | ||
<span *ngIf="storageHost.status=='abnormal' || storageHost.status=='unknown'">Unknown</span> | ||
<span *ngIf="storageHost.status=='offline'">Offline</span> | ||
</div> | ||
<div class="ui-grid-col-2"> | ||
{{label.created_at}}: | ||
</div> | ||
<div class="ui-grid-col-3 details-basic-item-value-color" *ngIf="storageHost"> | ||
{{storageHost.created_at ? (storageHost.created_at | date:'long') : '--'}} | ||
</div> | ||
|
||
|
||
</div> | ||
<div class="ui-grid-row details-basic-item-class"> | ||
<div class="ui-grid-col-2"> | ||
{{label.ip_address}}: | ||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
{{storageHost.ip_address ? storageHost.ip_address : '--'}} | ||
</div> | ||
<div class="ui-grid-col-2"> | ||
{{label.native_storage_host_id}}: | ||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
{{storageHost.native_storage_host_id | slice:0:20}} | ||
<a *ngIf="storageHost.native_storage_host_id.length > 20" pTooltip="{{storageHost.native_storage_host_id}}" tooltipPosition="top"> | ||
... | ||
</a> | ||
</div> | ||
<div class="ui-grid-col-2"> | ||
{{label.updated_at}}: | ||
</div> | ||
<div class="ui-grid-col-3 details-basic-item-value-color" *ngIf="storageHost"> | ||
{{storageHost.updated_at ? (storageHost.updated_at | date:'long') : '--'}} | ||
</div> | ||
|
||
</div> | ||
<div class="ui-grid-row details-basic-item-class"> | ||
<div class="ui-grid-col-2"> | ||
{{label.storage_id}}: | ||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
{{storageHost.storage_id | slice:0:20}} | ||
<a *ngIf="storageHost.storage_id.length > 20" pTooltip="{{storageHost.storage_id}}" tooltipPosition="top"> | ||
... | ||
</a> | ||
</div> | ||
<div class="ui-grid-col-2"> | ||
{{label.id}}: | ||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
{{storageHost.id | slice:0:20}} | ||
<a *ngIf="storageHost.id.length > 20" pTooltip="{{storageHost.id}}" tooltipPosition="top"> | ||
... | ||
</a> | ||
</div> | ||
|
||
<div class="ui-grid-col-2"> | ||
|
||
</div> | ||
<div class="ui-grid-col-3 details-basic-item-value-color" *ngIf="storageHost"> | ||
|
||
</div> | ||
</div> | ||
<div class="ui-grid-row details-basic-item-class"> | ||
<div class="ui-grid-col-2"> | ||
{{label.description}}: | ||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
<a *ngIf="storageHost.description.length > 20" pTooltip="{{storageHost.description}}" tooltipPosition="top"> | ||
... | ||
</a> | ||
</div> | ||
<div class="ui-grid-col-2"> | ||
|
||
</div> | ||
<div class="ui-grid-col-2 details-basic-item-value-color" *ngIf="storageHost"> | ||
|
||
</div> | ||
<div class="ui-grid-col-2"> | ||
|
||
</div> | ||
<div class="ui-grid-col-3 details-basic-item-value-color" *ngIf="storageHost"> | ||
|
||
</div> | ||
</div> | ||
<div class="ui-grid-row details-basic-item-class"> | ||
<div class="ui-grid-col-12"> | ||
<h3>Storage Host Initiators</h3> | ||
</div> | ||
</div> | ||
<!-- Show Storage host Initiators List --> | ||
<div *ngIf="selectedStorageHosts && selectedStorageHosts.length"> | ||
<app-delfin-storage-host-initiators [selectedStorage]="selectedStorage" [selectedInitiators]="storageHost.storage_host_initiators"></app-delfin-storage-host-initiators> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-template> | ||
</p-dataTable> | ||
|
||
<p-overlayPanel styleClass="overview-panel" #storageHostOverviewPanel> | ||
<div class="ui-g overview-title"> | ||
<h4>{{storageHostOverview && storageHostOverview.name}}</h4> | ||
</div> | ||
<div class="ui-g ui-g-nopad overview-item" > | ||
<div class="ui-g-6"> | ||
<span class="overview-item-label">Status: </span> | ||
</div> | ||
<div *ngIf="storageHostOverview" class="ui-g-6"> | ||
<span class="storage-status-icon" [ngClass]="{normal: storageHostOverview && storageHostOverview.status =='Normal', abnormal: storageHostOverview && storageHostOverview.status =='abnormal' || storageHostOverview.status =='unknown'}"><i class="fa fa-circle"></i></span> | ||
<span *ngIf="storageHostOverview && storageHostOverview.status=='Normal'">Normal</span> | ||
<span *ngIf=" storageHostOverview && storageHostOverview.status=='abnormal' || storageHostOverview.status=='unknown'">Unknown</span> | ||
<span *ngIf=" storageHostOverview && storageHostOverview.status=='offline'">Offline</span> | ||
</div> | ||
</div> | ||
<div class="ui-g overview-item"> | ||
<div class="ui-g-6"> | ||
<span class="overview-item-label"> | ||
Storage ID | ||
</span> | ||
</div> | ||
<div class="ui-g-6"> | ||
<span> | ||
{{ storageHostOverview && storageHostOverview.storage_id}} | ||
</span> | ||
</div> | ||
</div> | ||
<div class="ui-g overview-item"> | ||
<div class="ui-g-6"> | ||
<span class="overview-item-label"> | ||
Host ID | ||
</span> | ||
</div> | ||
<div class="ui-g-6"> | ||
<span> | ||
{{ storageHostOverview && storageHostOverview.native_storage_host_id}} | ||
</span> | ||
</div> | ||
</div> | ||
<div class="ui-g overview-item"> | ||
<div class="ui-g-6"> | ||
<span class="overview-item-label"> | ||
Storage Serial No. | ||
</span> | ||
</div> | ||
<div class="ui-g-6"> | ||
<span> | ||
{{ selectedStorageDetails && selectedStorageDetails.serial_number}} | ||
</span> | ||
</div> | ||
</div> | ||
<div class="ui-g overview-item"> | ||
<div class="ui-g-6"> | ||
WWN | ||
</div> | ||
<div class="ui-g-6"> | ||
{{storageHostOverview && storageHostOverview.ip_address}}}} | ||
</div> | ||
</div> | ||
<hr /> | ||
</p-overlayPanel> |
Oops, something went wrong.