summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/pages/account-onboarding/account-add-details/account-add-details.component.html
blob: 31f286150a748c2490beb886fd40e9b5fe1ab31c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!--
  ============LICENSE_START==========================================
  ONAP Portal
  ===================================================================
  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  ===================================================================
 
  Unless otherwise specified, all software contained herein is licensed
  under the Apache License, Version 2.0 (the "License");
  you may not use this software except in compliance with the License.
  You may obtain a copy of the License at
 
              http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  Unless otherwise specified, all documentation contained herein is licensed
  under the Creative Commons License, Attribution 4.0 Intl. (the "License");
  you may not use this documentation except in compliance with the License.
  You may obtain a copy of the License at
 
              https://creativecommons.org/licenses/by/4.0/
 
  Unless required by applicable law or agreed to in writing, documentation
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
 
  ============LICENSE_END============================================
 
  
  -->
  
  <div class="container">
    <!--Modal Headers-->
    <div class="modal-header">
      <h4 class="modal-title">Account Details</h4>
      <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross')">
        <span aria-hidden="true">&times;</span>
      </button>
    </div>
  
    <!--Modal Body goes here-->
    <div class="modal-body">
      <!-- Add Account Popup code goes here-->
      <div class="account-properties-main">
        <form id="account-details-form" name="accountDetailsForm" novalidate  autocomplete="off" method="post">  
          <div class="item required">         
            <div class="item-label">Account Name</div>
            <input id="account-onboarding-details-input-name" class="table-search-field"
                type="text" ng-change="accountAddDetails.updateAccountName()" name="accountname"
                [(ngModel)]="accountOnboarding.applicationName"
                ng-pattern="/^[\w -]*$/" maxlength="100" required />
          </div>

          <div class="item required">  
            <div class="item-label">Username</div>
            <input id="account-onboarding-details-input-username" class="table-search-field"
                type="text"
                ng-change="accountAddDetails.updateUsername()" name="username"
                [(ngModel)]="accountOnboarding.username"/>
          </div>      

          <div class="item">
            <div class="item-label">Password</div>
            <input id="account-onboarding-details-input-password" class="table-search-field"
                type="password" name="password" [(ngModel)]="accountOnboarding.password" 
                maxlength="100" autocomplete="off"/>
          </div>

          <div class="item">
            <div class="item-label">Retype Password</div>
            <input id="account-onboarding-details-input-repassword" class="table-search-field"
                type="password" name="repassword"
                [(ngModel)]="accountOnboarding.repassword" maxlength="100"/>
          </div>

          <div class="add-endpoint-item">
            <div class="item-label add-label-left">Add Endpoint</div>
            <div class="add-label-right" id="accountAddDetails-button-accordion"
              (click)="addEndpoint()"><i class="icon ion-ios-add-circle-outline"></i>
            </div>
          </div>
          
          <div class="item">
              <div class="item-label" *ngIf="accountOnboarding.endpointList && accountOnboarding.endpointList.length > 0">
                Account endpoint
              </div>
    
              <div id="account-details-user-paramters"  *ngFor="let endpoint of accountOnboarding.endpointList">
                <div class="endpoint-item-left">
                  <input id="account-details-input-endpoint-name"
                    type="text" name="endpointName"
                    maxlength="200" ng-model="endpoint.name" 
                    ng-change="accountAddDetails.updateAccountEndpoint(endpoint)"/>
                </div>
    
                <div class="icon-circle-action-remove endpoint-item-middle"
                  (click)="removeEndpointItem(endpoint)"><span><i class="icon ion-ios-remove-circle-outline"></i></span>
                </div>
                  
                <div class="error-container endpoint-item-right"
                    *ngIf="endpoint.valid == false">
                    <small id="accounts-details-input-invalid-endpoint"
                      class="err-message">Invalid end point format
                    </small>
                </div>     
              </div>

              <div class="account-property">
                <div class="property-label checkbox-label">
                  <mat-checkbox name="isActive" type="checkbox" [(ngModel)]="accountOnboarding.isActive"
                      id="accounts-checkbox-app-is-enabled" [checked]="accountOnboarding.isActive">
                      Active
                  </mat-checkbox> 
                </div>	
            </div>
          </div>
        </form>
        </div>
    </div>
    <!--Modal Footer goes Here-->
    <div class="modal-footer">
      <button type="button" class="btn btn-primary" (click)="saveChanges()">Save</button> &nbsp;
      <button type="button" class="btn btn-primary" (click)="activeModal.close('Close')">Cancel</button>
    </div>
  </div>