2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
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 Unless otherwise specified, all documentation contained herein is licensed
22 under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23 you may not use this documentation except in compliance with the License.
24 You may obtain a copy of the License at
26 https://creativecommons.org/licenses/by/4.0/
28 Unless required by applicable law or agreed to in writing, documentation
29 distributed under the License is distributed on an "AS IS" BASIS,
30 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 See the License for the specific language governing permissions and
32 limitations under the License.
34 ============LICENSE_END============================================
38 <div class="container">
40 <div class="modal-header">
41 <h4 class="modal-title">Web Analytics Report Details</h4>
42 <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross')">
43 <span aria-hidden="true">×</span>
47 <!--Modal Body goes here-->
48 <div class="modal-body">
49 <div class="app-properties-main">
50 <div [hidden]="isEditMode" style="width: 75%;">
51 <!--<div id='ecomp-small-spinner' class="ecomp-small-spinner" *ngIf="isAllApplications"></div>-->
52 <div *ngIf="isAllApplications">
53 <span runat="server" ID="required" style="color: Red;"
54 visible="false">*</span>
55 <mat-form-field class="web-analytics-applications-select">
56 <mat-label> Application Name </mat-label>
57 <mat-select name="web-analytics-application-select" id="application"
58 name="applicationName" [(ngModel)]="userTableAppReport.appName" [(value)]="selected">
59 <mat-option *ngFor="let d of allApplications" [value]="d" >{{d.appName}}</mat-option>
63 <div id="web-analytics-message-required"
64 *ngIf="!userTableAppReport.appName && userTableAppReport.appName === ''">
65 <small class="mandatory-categories"
66 style="color: Red; font-size: 11px;">Application Name is Required</small>
70 <div class="property-label" *ngIf="isEditMode">
71 <div class="property-label">
72 <span runat="server" ID="required" style="color: Red;" visible="false"> *</span>Application Name :
74 <input id="input-Application-name" type="text" ddh-reset
75 [(ngModel)]="userTableAppReport.appName" style="width: 75%;"
76 name="appId" [disabled]="isEditMode" />
77 <div id="web-analytics-message-required"
78 ng-show="(userTableAppReport.appName && (userTableAppReport.appName.length == 0 ||! userTableAppReport.appName))">
79 <small class="mandatory-categories" style="color: Red; font-size: 11px;">Application ID is Required</small>
83 <div class="property-label">
84 <div class="property-label">
85 <span runat="server" ID="required" style="color: Red;" visible="false"> *</span>Report Name :
87 <input id="input-report-name" type="text" ddh-reset [(ngModel)]="userTableAppReport.reportName" style="width: 75%;" />
88 <div id="web-analytics-message-required"
89 [hidden]="(userTableAppReport.reportName && (userTableAppReport.reportName|| userTableAppReport.reportName.length == 0))">
90 <small class="mandatory-categories"
91 style="color: Red; font-size: 11px;">Report Name is Required</small>
95 <div class="property-label">
96 <div class="property-label">
97 <span runat="server" ID="required" style="color: Red;" visible="false"> *</span>Report URL :
99 <input id="input-report-url" type="text" ddh-reset [(ngModel)]="userTableAppReport.reportSrc" style="width: 75%;" />
100 <div id="web-analytics-message-required"
101 [hidden]="(userTableAppReport.reportSrc && (userTableAppReport.reportSrc || userTableAppReport.reportSrc.length == 0))">
102 <small class="mandatory-categories" style="color: Red; font-size: 11px;">Report URL is Required</small>
108 <!--Modal Footer goes Here-->
109 <div class="modal-footer">
110 <button type="submit" class="btn btn-primary"
111 [disabled]="(userTableAppReport.appName && userTableAppReport.appName === '')||(userTableAppReport.reportName && (!userTableAppReport.reportName
112 ||userTableAppReport.reportName.length == 0))||(userTableAppReport.reportSrc && (userTableAppReport.reportSrc.length == 0
113 || !userTableAppReport.reportSrc))"(click)="saveChanges()">Save</button>
115 <button type="button" class="btn btn-primary" (click)="activeModal.close('Close')">Cancel</button>