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>
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"
147 <div class="modal-footer row" style="padding: 0">
148 <div class="col-md-6">
150 <div class="col-md-6" style="padding: 15px;padding-right: 35px;">
152 [disabled]="selectedInstantiation === null"
153 [attr.data-tests-id]="'LoadTemplateButton'"
154 type="button" class="btn btn-primary submit"
155 (click)="loadTemplate()"><span>Load Template</span>
158 [attr.data-tests-id]="'startFromScratchButton'"
159 type="button" class="btn btn-success submit startFromScratchButton"
160 (click)="closeModalAndOpenNewServiceModal()"><span>Start from Scratch</span>