blob: 1185957cbfbeaad752fb902575bfea8519d6b61c [file] [log] [blame]
asgaraf56b682019-03-08 19:52:33 +05301<!--
2============LICENSE_START==========================================
3===================================================================
4Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5===================================================================
6
7Unless otherwise specified, all software contained herein is licensed
8under the Apache License, Version 2.0 (the License);
9you may not use this software except in compliance with the License.
10You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14Unless required by applicable law or agreed to in writing, software
15distributed under the License is distributed on an "AS IS" BASIS,
16WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17See the License for the specific language governing permissions and
18limitations under the License.
19
20============LICENSE_END============================================
21-->
22<simple-notifications [options]="options"></simple-notifications>
23<ng-progress [positionUsing]="'marginLeft'" [minimum]="0.15" [maximum]="1" [speed]="200" [showSpinner]="false" [direction]="'leftToRightIncreased'" [color]="'#6ab344'" [trickleSpeed]="250" [thick]="true" [ease]="'linear'"></ng-progress>
24
25<div class="container" style="margin-left:-15px;" *ngIf="noData != true">
26 <table class="table">
27 <thead>
28 <tr>
29 <th>CONFIGURATION SERVER <i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='serverandport'" aria-hidden="true"></i></th>
30 <th>CLOUD-OWNER/CLOUD-REGION/TENANT<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='ownerid'" aria-hidden="true"></i></th>
31 <th>DESCRIPTION</th>
32 <th>MODIFIER<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='modifier'" aria-hidden="true"></i></th>
33 <th>DATE MODIFIED<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='modified-date'" aria-hidden="true"></i></th>
34 <th></th>
35 </tr>
36 </thead>
37
38 <tbody style="padding: 5px 5px">
39 <tr *ngFor="let item of displayAnsibleServerData | orderBy:sortBy:sortOrder; let i=index">
40 <td><strong>{{item['serverandport']}}</strong></td>
41
42 <td>
43 <table class="table">
44 <thead></thead>
45 <tbody style="padding: 5px 5px">
46 <tr *ngFor="let info of item.info">
47 <td><strong>{{info.ownerid}} / {{info.regionid}}</strong> / {{info.tenantid}}</td>
48 </tr>
49 </tbody>
50 </table>
51 </td>
52
53 <td><strong>{{item['descr']}} </strong></td>
54
55 <td><strong>{{item['modifier']}} </strong></td>
56
57 <td><strong>{{item['modified-date']}} </strong></td>
58
59 <td>
60 <button type="button" class="mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" (click)="viewAnbsibleServer(item,i)" style="width:100px;height:40px;">
61 <i class="fa fa-edit"></i> View/Edit
62 </button>
63 </td>
64 </tr>
65 </tbody>
66 </table>
67
68</div>
69
70
71<div *ngIf="noData == true" class="text-center">
72 <div class="card">
73 <div class="mdl-dialog__content">
74 <div class="mdl-card__title">
75 <h2 class="mdl-card__title-text">There is no admin Artifacts</h2>
76 </div>
77 <div class="mdl-card__supporting-text">
78 {{noDataMsg}}
79 </div>
80 </div>
81 </div>
82</div>
83<div class="col-lg-12-ln2">
84 <button type="button" (click)="createAnsibleServer()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary">
85 CREATE NEW SERVER
86 </button>
87 <button type="button" (click)="download()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary">
88 DOWNLOAD ALL TO PC
89 </button>
90 <button type="button" (click)="saveToAppc()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary">
91 SAVE ALL TO APPC
92 </button>
93</div>