Merge "InvalidRoleException-junits"
[portal.git] / portal-FE-common / src / app / pages / account-onboarding / account-add-details / account-add-details.component.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
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
12  
13               http://www.apache.org/licenses/LICENSE-2.0
14  
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.
20  
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
25  
26               https://creativecommons.org/licenses/by/4.0/
27  
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.
33  
34   ============LICENSE_END============================================
35  
36   
37   -->
38   
39   <div class="container">
40     <!--Modal Headers-->
41     <div class="modal-header">
42       <h4 class="modal-title">Account Details</h4>
43       <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross')">
44         <span aria-hidden="true">&times;</span>
45       </button>
46     </div>
47   
48     <!--Modal Body goes here-->
49     <div class="modal-body">
50       <!-- Add Account Popup code goes here-->
51       <div class="account-properties-main">
52         <form id="account-details-form" name="accountDetailsForm" novalidate  autocomplete="off" method="post">  
53           <div class="item required">         
54             <div class="item-label">Account Name</div>
55             <input id="account-onboarding-details-input-name" class="table-search-field"
56                 type="text" ng-change="accountAddDetails.updateAccountName()" name="accountname"
57                 [(ngModel)]="accountOnboarding.applicationName"
58                 ng-pattern="/^[\w -]*$/" maxlength="100" required />
59           </div>
60
61           <div class="item required">  
62             <div class="item-label">Username</div>
63             <input id="account-onboarding-details-input-username" class="table-search-field"
64                 type="text"
65                 ng-change="accountAddDetails.updateUsername()" name="username"
66                 [(ngModel)]="accountOnboarding.username"/>
67           </div>      
68
69           <div class="item">
70             <div class="item-label">Password</div>
71             <input id="account-onboarding-details-input-password" class="table-search-field"
72                 type="password" name="password" [(ngModel)]="accountOnboarding.password" 
73                 maxlength="100" autocomplete="off"/>
74           </div>
75
76           <div class="item">
77             <div class="item-label">Retype Password</div>
78             <input id="account-onboarding-details-input-repassword" class="table-search-field"
79                 type="password" name="repassword"
80                 [(ngModel)]="accountOnboarding.repassword" maxlength="100"/>
81           </div>
82
83           <div class="add-endpoint-item">
84             <div class="item-label add-label-left">Add Endpoint</div>
85             <div class="add-label-right" id="accountAddDetails-button-accordion"
86               (click)="addEndpoint()"><i class="icon ion-ios-add-circle-outline"></i>
87             </div>
88           </div>
89           
90           <div class="item">
91               <div class="item-label" *ngIf="accountOnboarding.endpointList && accountOnboarding.endpointList.length > 0">
92                 Account endpoint
93               </div>
94     
95               <div id="account-details-user-paramters"  *ngFor="let endpoint of accountOnboarding.endpointList">
96                 <div class="endpoint-item-left">
97                   <input id="account-details-input-endpoint-name"
98                     type="text" name="endpointName"
99                     maxlength="200" ng-model="endpoint.name" 
100                     ng-change="accountAddDetails.updateAccountEndpoint(endpoint)"/>
101                 </div>
102     
103                 <div class="icon-circle-action-remove endpoint-item-middle"
104                   (click)="removeEndpointItem(endpoint)"><span><i class="icon ion-ios-remove-circle-outline"></i></span>
105                 </div>
106                   
107                 <div class="error-container endpoint-item-right"
108                     *ngIf="endpoint.valid == false">
109                     <small id="accounts-details-input-invalid-endpoint"
110                       class="err-message">Invalid end point format
111                     </small>
112                 </div>     
113               </div>
114
115               <div class="account-property">
116                 <div class="property-label checkbox-label">
117                   <mat-checkbox name="isActive" type="checkbox" [(ngModel)]="accountOnboarding.isActive"
118                       id="accounts-checkbox-app-is-enabled" [checked]="accountOnboarding.isActive">
119                       Active
120                   </mat-checkbox> 
121                 </div>  
122             </div>
123           </div>
124         </form>
125         </div>
126     </div>
127     <!--Modal Footer goes Here-->
128     <div class="modal-footer">
129       <button type="button" class="btn btn-primary" (click)="saveChanges()">Save</button> &nbsp;
130       <button type="button" class="btn btn-primary" (click)="activeModal.close('Close')">Cancel</button>
131     </div>
132   </div>