blob: c214a2c87a6d9629bc5107e52db8edbf804aad68 [file] [log] [blame]
Skip Wonnell2c977e22018-03-01 08:30:15 -06001<!--
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
20ECOMP is a trademark and service mark of AT&T Intellectual Property.
21============LICENSE_END============================================
22-->
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<div class="container">
25 <div *ngIf="noData != true">
26 <div class="row">
27 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
28
29 </div>
30 <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
31 <input placeholder="filter table" class="form-control" type="text" [(ngModel)]="filterQuery" />
32 </div>
33 </div>
34 <div class="row">
35 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
36 <div class="table-responsive" style="height:auto; overflow: auto;">
37 <table class="table">
38 <thead>
39 <tr>
40 <th>VNF TYPE <i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='vnf-type'" aria-hidden="true"></i></th>
41 <th>VNFC TYPE<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='vnfc-type'" aria-hidden="true"></i></th>
42 <!-- <th>INCART<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='subscriber'" aria-hidden="true"></i></th> -->
43 <!-- <th>PROTOCOL<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='protocol'" aria-hidden="true"></i></th>
44 <th>ACTION<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='action'" aria-hidden="true"></i></th> -->
45 <th>ARTIFACT NAME<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='artifact-name'" aria-hidden="true"></i></th>
46 <!-- <th>ARTIFACT TYPE<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='artifact-type'"
47 aria-hidden="true"></i></th> -->
48 <th></th>
49 </tr>
50 </thead>
51
52 <tbody style="padding: 15px 25px">
53 <tr *ngFor="let item of vnfData | orderBy:sortBy:sortOrder | tableFilter:filterQuery:filter">
54 <td>{{item['vnf-type']}}</td>
55 <td>{{item['vnfc-type']}}</td>
56 <!-- <td>{{item.incart}}</td> -->
57 <!-- <td>{{item.protocol}}</td>
58 <td>{{item.action}}</td> -->
59 <td>{{item['artifact-name']}}</td>
60 <!-- <td>{{item['artifact-type']}}</td> -->
61 <td>
62 <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" (click)="navigateToReference(item)"><i class="fa fa-edit"
63 aria-hidden="true"></i> View/Edit
64 </button>
65 </td>
66 </tr>
67 </tbody>
68 </table>
69 </div>
70 </div>
71 </div>
72 </div>
73 <div *ngIf="noData == true" class="text-center">
74 <div class="card">
75 <div class="mdl-dialog__content">
76 <div class="mdl-card__title">
77 <h2 class="mdl-card__title-text">You don't have any Artifacts</h2>
78 </div>
79 <div class="mdl-card__supporting-text">
80 {{noDataMsg}}
81 </div>
82 </div>
83 </div>
84 </div>
85 <div class="col-lg-12-ln2">
86 <button type="button" (click)="buildNewDesign(content)" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary">Create New
87 VNF Type or VNFC Type
88 </button>
89 </div>
90</div>
91
92<ng-template #content let-c="close" let-d="dismiss">
93 <form ngNativeValidate (ngSubmit)="c('yes')">
94 <div class="modal-header">
95 <h4 class="modal-title">Enter VNF type and VNFC to proceed</h4>
96 <button type="button" class="close" aria-label="Close" (click)="d('Cross click')">
97 <span aria-hidden="true">&times;</span>
98 </button>
99 </div>
100 <div class="modal-body">
101
102 <div class="form-group row">
103 <label for="example-text-input" class="col-12 col-form-label">Enter Vnf Type</label>
104 <div class="col-12">
105 <input required name="vnfType" class="form-control" [(ngModel)]="vnfType" type="text" id="vnfType">
106 </div>
107 </div>
108 <div class="form-check">
109 <label class="form-check-label">
110 <input name="vnfcRequired" class="form-check-input" [(ngModel)]="vnfcRequired" type="checkbox"
111 id="vnfcRequired">
112 Enter vnfc info
113 </label>
114 </div>
115 <div class="form-group row" *ngIf="vnfcRequired">
116 <label for="example-search-input" class="col-12 col-form-label">Enter Vnfc Type</label>
117 <div class="col-12">
118 <input required name="vnfcType" class="form-control" [(ngModel)]="vnfcType" type="text" id="vnfcType">
119 </div>
120 </div>
121 </div>
122 <div class="modal-footer">
123 <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent
124
125 " (click)="c('yes')">Proceed anyway
126 </button>
127 <button type="submit" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary">Next
128 </button>
129
130 </div>
131 </form>
132</ng-template>