1 <div id="template-popup" class="modal-dialog">
2 <div class="modal-content">
3 <div class="modal-header">
5 [attr.data-tests-id]="'closeModal'"
7 (click)="closeModal()">×
9 <span [attr.data-tests-id]="'template-modal-title'"
10 class="modal-title">Templates
13 <div class="modal-body templateModalBody">
14 <div class="row description-section">
15 <div class="col-md-6">
16 <div [attr.data-tests-id]="'description-part-1'">The following list presents previous instantiations done for
17 this model in this version.
19 <div [attr.data-tests-id]="'description-part-2'">You may use one of them as a baseline for your instantiation
20 or start from scratch.
22 <div [attr.data-tests-id]="'description-part-3'">Once you selecting one allows you to change the data before
26 <div class="col-md-6">
27 <div class="col-md-6">
28 <div class="details-item" style="text-align: center;">
29 <input type="checkbox"
30 #filterByUserIdCheckbox
31 id="filterByUserIdCheckbox"
32 [attr.data-tests-id]="'filterByUserIdTestId'"
33 [checked]="filterByUserId"
34 (change)="filterByUserIdChanged(filterByUserIdCheckbox.checked)"
36 <label class="checkbox-label"
37 for="'filterByUserIdTestId'">Show only mine</label>
40 <div class="col-md-6">
42 class="filter-input form-control input-text"
43 placeholder="Filter..."
44 [(ngModel)]="filterText">
48 <div class="row table-container">
49 <table id="member-table" class="table table-bordered table-responsive" style="table-layout: fixed">
50 <thead class="thead-dark">
52 <th class="header-title" id="header-userId">User ID</th>
53 <th class="header-title" id="header-createDate" style="width: 21ch;">Date</th>
54 <th class="header-title" id="header-instanceName" style="max-width: 50ch;">Instance Name</th>
55 <th class="header-title" id="header-instantiationStatus" style="width: 30ch;">Instantiation Status</th>
56 <th class="header-title" id="header-summary">Summary</th>
57 <th class="header-title" id="header-region">Region</th>
58 <th class="header-title" id="header-tenant">Tenant</th>
59 <th class="header-title" id="header-aicZone">AIC Zone</th>
63 <tr class="member-table-row"
64 *ngFor="let item of filterTableData | searchFilter: filterText;"
65 (click)="selectedInstantiation = item"
66 [ngClass]="{'selected' : selectedInstantiation && selectedInstantiation.jobId === item.jobId}"
67 [attr.data-tests-id]="'row-' + item.jobId">
71 [dataTestId]="'userId-' + item.jobId"
78 <td style="width: 21ch;">
81 [dataTestId]="'createDate-' + item.jobId"
82 [id]="item.createDate"
83 [value]="item.createDate"
88 <td style="max-width: 50ch;">
92 [dataTestId]="'instanceName-' + item.jobId"
93 [id]="item.instanceName"
94 [value]="item.instanceName"
103 [dataTestId]="'instantiationStatus-' + item.jobId"
104 [id]="item.instantiationStatus"
105 [value]="item.instantiationStatus"
113 [dataTestId]="'summary-' + item.jobId"
115 [value]="item.summary"
124 [dataTestId]="'region-' + item.jobId"
126 [value]="item.region"
135 [dataTestId]="'tenant-' + item.jobId"
137 [value]="item.tenant"
145 [dataTestId]="'aicZone-' + item.jobId"
147 [value]="item.aicZone"
158 <div class="modal-footer row" style="padding: 0">
159 <div class="col-md-6">
161 <div class="col-md-6" style="padding: 15px;padding-right: 35px;">
163 [disabled]="selectedInstantiation === null"
164 [attr.data-tests-id]="'LoadTemplateButton'"
165 type="button" class="btn btn-primary submit"
166 (click)="loadTemplate()"><span>Load Template</span>
169 [attr.data-tests-id]="'startFromScratchButton'"
170 type="button" class="btn btn-success submit startFromScratchButton"
171 (click)="closeModal()"><span>Start from Scratch</span>