2 ============LICENSE_START==========================================
3 ===================================================================
4 Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
5 ===================================================================
6 Copyright (C) 2018 IBM.
7 ===================================================================
8 Unless otherwise specified, all software contained herein is licensed
9 under the Apache License, Version 2.0 (the License);
10 you may not use this software except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
21 ============LICENSE_END============================================
23 <simple-notifications [options]="options"></simple-notifications>
24 <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>
25 <div class="container">
26 <div *ngIf="noData != true">
28 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
31 <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
32 <input placeholder="filter table" class="form-control" type="text" [(ngModel)]="filterQuery" />
36 <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
37 <div class="table-responsive" style="height:auto; overflow: auto;">
41 <th>VNF TYPE <i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='vnf-type'" aria-hidden="true"></i></th>
42 <th>VNFC TYPE<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='vnfc-type'" aria-hidden="true"></i></th>
43 <!-- <th>INCART<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='subscriber'" aria-hidden="true"></i></th> -->
44 <!-- <th>PROTOCOL<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='protocol'" aria-hidden="true"></i></th>
45 <th>ACTION<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='action'" aria-hidden="true"></i></th> -->
46 <th>ARTIFACT NAME<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='artifact-name'" aria-hidden="true"></i></th>
47 <!-- <th>ARTIFACT TYPE<i class="fa fa-sort" (click)="sortOrder= !sortOrder; sortBy='artifact-type'"
48 aria-hidden="true"></i></th> -->
53 <tbody style="padding: 15px 25px">
54 <tr *ngFor="let item of vnfData | orderBy:sortBy:sortOrder | tableFilter:filterQuery:filter">
55 <td>{{item['vnf-type']}}</td>
56 <td>{{item['vnfc-type']}}</td>
57 <!-- <td>{{item.incart}}</td> -->
58 <!-- <td>{{item.protocol}}</td>
59 <td>{{item.action}}</td> -->
60 <td>{{item['artifact-name']}}</td>
61 <!-- <td>{{item['artifact-type']}}</td> -->
63 <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"
64 aria-hidden="true"></i> View/Edit
74 <div *ngIf="noData == true" class="text-center">
76 <div class="mdl-dialog__content">
77 <div class="mdl-card__title">
78 <h2 class="mdl-card__title-text">You don't have any Artifacts</h2>
80 <div class="mdl-card__supporting-text">
86 <div class="col-lg-12-ln2">
87 <button type="button" (click)="createVnfcModal.open()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary">
93 <!-- <ng-template #content let-c="close" let-d="dismiss">
94 <form ngNativeValidate (ngSubmit)="c('yes')">
95 <div class="modal-header">
96 <h4 class="modal-title">Enter VNF type and VNFC to proceed</h4>
97 <button type="button" class="close" aria-label="Close" (click)="d('Cross click')">
98 <span aria-hidden="true">×</span>
101 <div class="modal-body">
103 <div class="form-group row">
104 <label for="example-text-input" class="col-12 col-form-label">Enter Vnf Type</label>
106 <input required name="vnfType" class="form-control" [(ngModel)]="vnfType" type="text" id="vnfType">
109 <div class="form-check">
110 <label class="form-check-label">
111 <input name="vnfcRequired" class="form-check-input" [(ngModel)]="vnfcRequired" type="checkbox"
116 <div class="form-group row" *ngIf="vnfcRequired">
117 <label for="example-search-input" class="col-12 col-form-label">Enter Vnfc Type</label>
119 <input required name="vnfcType" class="form-control" [(ngModel)]="vnfcType" type="text" id="vnfcType">
123 <div class="modal-footer">
124 <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent
126 " (click)="c('yes')">Proceed anyway
128 <button type="submit" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary">Next
135 <!-- Modal for Create new Vnf -->
136 <modal #createVnfcModal>
137 <form ngNativeValidate (ngSubmit)="buildNewDesign('yes')">
138 <modal-header [show-close]="true">
139 <h4 class="modal-title">Enter VNF Type</h4>
142 <div class="form-group row">
143 <label for="example-text-input" class="col-12 col-form-label">Enter Vnf Type</label>
145 <input pattern=".*[^ ].*" required name="vnfType" class="form-control" (ngModelChange)="validateVnfName($event)" [(ngModel)]="vnfType" type="text" id="vnfType">
146 <span class="error-message">{{errorMessage}}</span>
150 <div class="form-check">
151 <label class="form-check-label">
152 <input name="vnfcRequired" class="form-check-input" [(ngModel)]="vnfcRequired" type="checkbox"
154 This VNF has VNFC templates
158 <modal-footer [show-default-buttons]="false">
159 <button type="button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" (click)="buildNewDesign('no')">
162 <button type="submit" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--primary" [disabled]="invalid">