1 <div id="template-popup" class="modal-dialog">
2 <div class="modal-content">
3 <div class="modal-header">
6 (click)="closeModal()">×
8 <span [attr.data-tests-id]="'template-modal-title'"
9 class="modal-title">Templates
12 <div class="modal-body templateModalBody">
13 <div class="row description-section">
14 <div class="col-md-6">
15 <div [attr.data-tests-id]="'description-part-1'">The following list presents previous instantiations done for
16 this model in this version.
18 <div [attr.data-tests-id]="'description-part-2'">You may use one of them as a baseline for your instantiation
19 or start from scratch.
21 <div [attr.data-tests-id]="'description-part-3'">Once you selecting one allows you to change the data before
25 <div class="col-md-6">
26 <div class="col-md-6">
27 <div class="details-item" style="text-align: center;">
28 <input type="checkbox"
29 #filterByUserIdCheckbox
30 id="filterByUserIdCheckbox"
31 [attr.data-tests-id]="'filterByUserIdTestId'"
32 [checked]="filterByUserId"
33 (change)="filterByUserIdChanged(filterByUserIdCheckbox.checked)"
35 <label class="checkbox-label"
36 for="'filterByUserIdTestId'">Show only mine</label>
39 <div class="col-md-6">
41 class="filter-input form-control input-text"
42 placeholder="Filter..."
43 [(ngModel)]="filterText">
47 <div class="row table-container">
48 <table id="member-table" class="table table-bordered table-responsive" style="table-layout: fixed">
49 <thead class="thead-dark">
51 <th class="header-title" id="header-userId">User ID</th>
52 <th class="header-title" id="header-createDate" style="width: 21ch;">Date</th>
53 <th class="header-title" id="header-instanceName" style="max-width: 50ch;">Instance Name</th>
54 <th class="header-title" id="header-instantiationStatus" style="width: 30ch;">Instantiation Status</th>
55 <th class="header-title" id="header-summary">Summary</th>
56 <th class="header-title" id="header-region">Region</th>
57 <th class="header-title" id="header-tenant">Tenant</th>
58 <th class="header-title" id="header-aicZone">AIC Zone</th>
62 <tr class="member-table-row"
63 *ngFor="let item of filterTableData | searchFilter: filterText;"
64 (click)="selectedInstantiation = item"
65 [ngClass]="{'selected' : selectedInstantiation && selectedInstantiation.jobId === item.jobId}"
66 [attr.data-tests-id]="'row-' + item.jobId">
70 [dataTestId]="'userId-' + item.jobId"
77 <td style="width: 21ch;">
80 [dataTestId]="'createDate-' + item.jobId"
81 [id]="item.createDate"
82 [value]="item.createDate"
87 <td style="max-width: 50ch;">
91 [dataTestId]="'instanceName-' + item.jobId"
92 [id]="item.instanceName"
93 [value]="item.instanceName"
102 [dataTestId]="'instantiationStatus-' + item.jobId"
103 [id]="item.instantiationStatus"
104 [value]="item.instantiationStatus"
112 [dataTestId]="'summary-' + item.jobId"
114 [value]="item.summary"
123 [dataTestId]="'region-' + item.jobId"
125 [value]="item.region"
134 [dataTestId]="'tenant-' + item.jobId"
136 [value]="item.tenant"
144 [dataTestId]="'aicZone-' + item.jobId"
146 [value]="item.aicZone"
157 <div class="modal-footer row" style="padding: 0">
158 <div class="col-md-6">
160 <div class="col-md-6" style="padding: 15px;padding-right: 35px;">
162 [disabled]="selectedInstantiation === null"
163 [attr.data-tests-id]="'LoadTemplateButton'"
164 type="button" class="btn btn-primary submit"
165 (click)="loadTemplate()"><span>Load Template</span>
168 [attr.data-tests-id]="'startFromScratchButton'"
169 type="button" class="btn btn-success submit startFromScratchButton"
170 (click)="closeModal()"><span>Start from Scratch</span>