aboutsummaryrefslogtreecommitdiffstats
path: root/ccsdk-app-os/src/main/webapp/app/ccsdk/home/executions_view.html
blob: 68eeb3bc71f57ec5c46d66c356ef2e777888f4ef (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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<div id="page-content">
  <br>
  <h4 class="heading-page" id="controllers">Dashboard</h4>
  <hr class="lite">
  <div class="span3 form-row btn-switch-label" style="margin-top: -60px;float: right;">
      <div class="tooltip" b2b-tooltip trigger="focus">
          <a  href="javascript:void(0)" class="tooltip-element"  data-placement="left" role="button"
          style="text-decoration: none; margin-right: 10px;">
              Access Type
              <div class="arrow"></div>
          </a>
          <div class="tooltip-wrapper" role="tooltip" aria-live="polite" aria-atomic="false" style="z-index:1111">
              <div class="tooltip-size-control">
                  <div class="helpertext" tabindex="-1" role="tooltip" id="tooltiptext1">  
                      <div class="popover-title">My Dashboard</div>  
                      <div class="popover-content">
                          <p>Toggle access type selection between logged in user's data or user role group data.</p>
                          <strong class="hidden-spoken">Double tap to close help message.</strong>
                      </div>
                  </div>
              </div>
          </div>                           
    </div>
      <!--  <span aria-hidden="true">Access level</span>-->
    <div b2b-switches-v2 id="switch1" style="margin-top: -5px;" ng-model="ecdapp.level_switch.value" options="ecdapp.level_options" ng-disabled="allDisabled" ng-change="ecdapp.toggleUserFilt()">
    </div>
  </div>
  <div class="span3 form-row btn-switch-label">
      <div class="tooltip" b2b-tooltip trigger="focus">
          <a  href="javascript:void(0)" class="tooltip-element"  data-placement="left" role="button"
          style="text-decoration: none; margin-right: 10px;">
              Auto Refresh
              <div class="arrow"></div>
          </a>
          <div class="tooltip-wrapper" role="tooltip" aria-live="polite" aria-atomic="false" style="z-index:1111">
              <div class="tooltip-size-control">
                  <div class="helpertext" tabindex="-1" role="tooltip" id="tooltiptext1">  
                      <div class="popover-title">Reload data automatically</div>  
                  </div>
              </div>
          </div>                           
    </div>
      <!--  <span aria-hidden="true">Access level</span>-->
    <div b2b-switches-v2 id="switch2" ng-model="ecdapp.inv_load.value" options="ecdapp.inv_query_options" >
    </div>
  </div>
  <button title="Expand/Collapse Tiles Container" class="collapsible"></button>
  <div class="content">
  <div class="b2b-card-container">
    <div class="row">
      <div class="span3 b2b-card-wid">
        <div class="b2b-cards" style="border-radius: 8px;text-shadow: 1px 1px 7px #0574ac;border: 1px solid gray;border-top: 5px solid #0574ac;">
          <div ng-show="ecdapp.isBpDataLoading" class="ng-scope ng-hide">
            <div class="span" style="margin-bottom: 5px;">
              <i class="icon-spinner small" role="img"></i>
            </div>
          </div>
          <span class="tooltip" b2b-tooltip style="float: right; margin-top: -10px;">
              <a href="#" class="icon-tooltip tooltip-element" tabindex="0" role="button" data-placement="bottom" aria-label="Help" aria-describedby="tooltiptextRadio" >
                  <span class="arrow"></span>
              </a>
              <span class="tooltip-wrapper">
                  <span class="tooltip-size-control">
                      <span id="tooltiptextRadio" role="tooltip" aria-live="polite" aria-hidden="true" class="helpertext" tabindex="-1">  
                          <span class="popover-title">Aggregate count of blueprints for user/role set</span>  
                          <span class="popover-content">
                              <span>Navigation link to blueprints Inventory screen</span>
                              <strong class="hidden-spoken hidden-desktop">Double tap to close help message.</strong>
                          </span>
                      </span>
                  </span>
              </span>
          </span>
          <a ng-if="ecdapp.level_switch.value" href="ecd#/ibp/owner:{{userId}}">
            <div class="b2b-card-header">
              <i class="icon-documents-document" role="img" style="font-size: 35px;margin-top: -20px;margin-left: -20px;"></i>
              <span class="b2b-title" > {{ecdapp.bpCount}} </span>
            </div>
            <div class="b2b-card-content"
              style="text-align: center; font-family: Arial;">
              BLUEPRINTS            
            </div>
          </a>
          <a ng-if="!ecdapp.level_switch.value" href="ecd#/ibp/owner:group">
            <div class="b2b-card-header">
              <i class="icon-documents-document" role="img" style="margin-top: -20px; 
              margin-left: -20px; font-size: 35px"></i>
              <span class="b2b-title" > {{ecdapp.bpCount}} </span>
            </div>
            <div class="b2b-card-content"
              style="text-align: center; font-family: Arial;">
              BLUEPRINTS            
            </div>
          </a>
        </div>
      </div>
      <div class="span3 b2b-card-wid">
        <div class="b2b-cards" style="text-shadow: 1px 1px 7px #008744;border-radius:8px;border: 1px solid gray;border-top: 5px solid #008744;">
          <div ng-show="ecdapp.isDepDataLoading" class="ng-scope ng-hide">
            <div class="span" style="margin-bottom: 5px;">
              <i class="icon-spinner small" role="img"></i>
            </div>
          </div>
                    <span class="tooltip" b2b-tooltip style="float: right; margin-top: -10px;">
              <a href="#" class="icon-tooltip tooltip-element" tabindex="0" role="button" data-placement="bottom" aria-label="Help" aria-describedby="tooltiptextRadio" >
                  <span class="arrow"></span>
              </a>
              <span class="tooltip-wrapper">
                  <span class="tooltip-size-control">
                      <span id="tooltiptextRadio" role="tooltip" aria-live="polite" aria-hidden="true" class="helpertext" tabindex="-1">  
                          <span class="popover-title">Aggregate count of deployments for user/role set</span>  
                          <span class="popover-content">
                              <span>Navigation link to cloudify deployments Inventory screen</span>
                              <strong class="hidden-spoken hidden-desktop">Double tap to close help message.</strong>
                          </span>
                      </span>
                  </span>
              </span>
          </span>
          <a ng-if="ecdapp.level_switch.value" href="ecd#/idep/owner:{{userId}}">
            <div class="b2b-card-header">
              <i class="icon-misc-business" role="img" style="margin-top: -20px; 
              margin-left: -20px; font-size: 35px"></i>
              <span class="b2b-title"> {{ecdapp.depCount}} </span>
            </div>
            <div class="b2b-card-content"
              style="text-align: center; font-family: Arial;">
              DEPLOYMENTS
            </div>
          </a>
          <a ng-if="!ecdapp.level_switch.value" href="ecd#/idep/owner:group">
            <div class="b2b-card-header">
              <i class="icon-misc-business" role="img" style="font-size: 35px;margin-top: -20px;margin-left: -20px;"></i>
              <span class="b2b-title"> {{ecdapp.depCount}} </span>
            </div>
            <div class="b2b-card-content"
              style="text-align: center; font-family: Arial;">
              DEPLOYMENTS
            </div>                     
          </a>                   
        </div>
      </div>
      <div class="span3 b2b-card-wid">
        <div class="b2b-cards" style="text-shadow: 1px 1px 7px #e7d81e;border-radius:8px;border: 1px solid gray;border-top: 5px solid #e7d81e;">
          <div ng-show="ecdapp.isPluginDataLoading" class="ng-scope ng-hide">
            <div class="span" style="margin-bottom: 5px;">
              <i class="icon-spinner small" role="img"></i>
            </div>
          </div>
                    <span class="tooltip" b2b-tooltip style="float: right; margin-top: -10px;">
              <a href="#" class="icon-tooltip tooltip-element" tabindex="0" role="button" data-placement="bottom" aria-label="Help" aria-describedby="tooltiptextRadio" >
                  <span class="arrow"></span>
              </a>
              <span class="tooltip-wrapper">
                  <span class="tooltip-size-control">
                      <span id="tooltiptextRadio" role="tooltip" aria-live="polite" aria-hidden="true" class="helpertext" tabindex="-1">  
                          <span class="popover-title">Aggregate count of cloudify plugins</span>  
                          <span class="popover-content">
                              <span>Navigation link to cloudify plugins screen</span>
                              <strong class="hidden-spoken hidden-desktop">Double tap to close help message.</strong>
                          </span>
                      </span>
                  </span>
              </span>
          </span>
          <a href="ecd#/iplug">
            <div class="b2b-card-header">
              <i class="icon-controls-gear" role="img" style="font-size: 35px;margin-top: -20px;margin-left: -20px;"></i>
              <span class="b2b-title"> {{ecdapp.pluginCount}} </span>
            </div>
            <div class="b2b-card-content"
              style="text-align: center; font-family: Arial;">
              PLUGINS
            </div>
          </a>                  
        </div>
      </div>
    </div>
  </div>
  <div class="span9 row-nowrap" style="margin-bottom: 10px; float: right; margin-top: -30px;">
    <div class="span6 form-row">
      <div class="span12 field-group">
      <input class="span12" list="bpList" type="input" ng-model="ecdapp.currentBpId" ng-change="ecdapp.updateDepl()" placeholder="Blueprints"/>
      <span class="tooltip" style="float: right; margin-top: -30px;" b2b-tooltip>
          <a href="#" class="icon-tooltip tooltip-element" tabindex="0" role="button" data-placement="bottom" aria-label="Help" aria-describedby="tooltiptextRadio" >
              <span class="arrow"></span>
          </a>
          <span class="tooltip-wrapper">
              <span class="tooltip-size-control">
                  <span id="tooltiptextRadio" role="tooltip" aria-live="polite" aria-hidden="true" class="helpertext" tabindex="-1">  
                      <span class="popover-title">Blueprints list</span>  
                      <span class="popover-content">
                          <span>autocomplete dropdown list of blueprints, a selection will trigger deployment list query</span>
                          <strong class="hidden-spoken hidden-desktop">Double tap to close help message.</strong>
                      </span>
                  </span>
              </span>
          </span>
      </span>
      <datalist id="bpList">
        <option ng-repeat="d in ecdapp.bpObjList" value="{{d.typeId}}">{{d.typeName}}</option>
      </datalist>
      </div>
    </div>
    <div class="span1 form-row">
        <div ng-show="ecdapp.isDeplDataLoading" class="ng-scope ng-hide">
          <div class="span" style="margin-bottom: 5px;">
            <i class="icon-spinner small" role="img"></i>
          </div>
        </div>
    </div>
    <div class="span6 form-row">
      <!--  <label for="depl">Deployments</label>-->

      <div class="span12 field-group">
      <input id="depInput" class="span12" list="depList" type="input" ng-model="ecdapp.currentDep" ng-change="ecdapp.updateExec()" placeholder="Deployments"/>
      <span class="tooltip" style="float: right; margin-top: -30px;" b2b-tooltip>
              <a href="#" class="icon-tooltip tooltip-element" tabindex="0" role="button" data-placement="bottom" aria-label="Help" aria-describedby="tooltiptextRadio" >
                  <span class="arrow"></span>
              </a>
              <span class="tooltip-wrapper">
                  <span class="tooltip-size-control">
                      <span id="tooltiptextRadio" role="tooltip" aria-live="polite" aria-hidden="true" class="helpertext" tabindex="-1">  
                          <span class="popover-title">Deployments list</span>  
                          <span class="popover-content">
                              <span>autocomplete dropdown list of deployments, a selection will trigger deployment executions query</span>
                              <strong class="hidden-spoken hidden-desktop">Double tap to close help message.</strong>
                          </span>
                      </span>
                  </span>
              </span>
          </span>
      <datalist id="depList">
        <option ng-repeat="d in ecdapp.depObjList" value="{{d.id}}:{{d.tenant_name}}">{{d.id}}</option>
      </datalist>
      </div>
    </div>
  </div>
  </div>
  <div ng-hide="ecdapp.errMsg"  style="margin-top: 40px;border: 1px solid gray;border-radius: 5px;padding: 10px;clear: both;border-top: 2px solid #0d2dca;">
    <label for="executions-table">Executions</label>
              <span class="tooltip" b2b-tooltip style="float: right; margin-top: -10px;">
              <a href="#" class="icon-tooltip tooltip-element" tabindex="0" role="button" data-placement="bottom" aria-label="Help" aria-describedby="tooltiptextRadio" >
                  <span class="arrow"></span>
              </a>
              <span class="tooltip-wrapper">
                  <span class="tooltip-size-control">
                      <span id="tooltiptextRadio" role="tooltip" aria-live="polite" aria-hidden="true" class="helpertext" tabindex="-1">  
                          <span class="popover-title">Executions summary table</span>  
                          <span class="popover-content">
                              <span>Current active executions are displayed by default. Use the search box to specify additional query filters for deployment executions. A deployment selection will automatically trigger a refresh of the executions table.</span>
                              <strong class="hidden-spoken hidden-desktop">Double tap to close help message.</strong>
                          </span>
                      </span>
                  </span>
              </span>
          </span>
    <div id="button-search-row" style="float: right;width: 50%;">
        <div class="advanced-search">
          <input tabindex="0" style="padding-left: 50px;"
            placeholder="Enter search filters from the dropdown menu"
            class="advanced-search-input" type="text"></input>
          <button type="button" id="show-menu-filters"
            class="btn dropdown-toggle"
            ng-click="ecdapp.toggleMoreFilters()" data-toggle="dropdown"
            title="More Filters">
            <i class="icon-controls-down"></i>
          </button>
        </div>
        <div class="menu-filters" ng-show="ecdapp.showingMoreFilters" style="width: 40%;">
          <div class="group">
            <label class="col-sm-3 control-label">Execution ID: </label> <input
              tabindex="0" class="advanced-search-input" type="text"
              title="Search by execution ID"
              ng-model="ecdapp.execId"></input>
          </div>
          <div class="group">
            <label class="col-sm-3 control-label">Tenants: </label>
              <div class="field-group">
                <select class="span12" name="tenant" b2b-dropdown placeholder-text="Select Tenant" ng-model="ecdapp.selectedTenant">
                <option b2b-dropdown-list option-repeat="d in ecdapp.availableTenants" value="{{d}}">{{d}}</option>
                </select>
              </div>
          </div>
          <div class="group">
            <label class="col-sm-3 control-label">Status: </label>
              <div class="field-group">
                <select class="span12" name="status" b2b-dropdown placeholder-text="Select status" ng-model="ecdapp.selectedStatus">
                <option b2b-dropdown-list option-repeat="d in ecdapp.availableStatus" value="{{d}}">{{d}}</option>
                </select>
              </div>
          </div>
          <div class="group" style="float: right;">
            <button tabindex="-1" class="btn btn-small"
              title="Reset Filters" type="button"
              ng-click="ecdapp.resetFilters()">
              <i class="icon-arrows-replay-restart"></i>
            </button>
            <button tabindex="1" class="btn btn-small"
              title="Filtered search" type="button"
              ng-click="ecdapp.extendedfilterSrch()">
              <i class="ion-search"></i>
            </button>
          </div>
        </div>
    </div>
    <hr class="lite" style="margin-top: 20px;">
    <div ng-show="ecdapp.isExecDataLoading" class="ng-scope ng-hide">
      <div class="span" style="margin-bottom: 5px;">
        <i class="icon-spinner small" role="img"></i>
      </div>
    </div>
    <div b2b-table id="executions-table" class="b2b-table-div"
      table-data="ecdapp.execData" search-string="ecdapp.searchString"
      current-page="ecdapp.currentPageIgnored"
      next-sort="ecdapp.nextSortIgnored">
      <table>
        <thead b2b-table-row type="header">
          <tr id="th-header-row">
            <th b2b-table-header key="index"></th>
            <th b2b-table-header key="deployment_id">Deployment</th>
            <th b2b-table-header key="workflow_id">Workflow</th>
            <th b2b-table-header key="created_at">Created</th>
            <th b2b-table-header key="ended_at">Ended</th>          
            <th b2b-table-header key="tenant_name">Tenant</th>
            <th b2b-table-header key="status">Status</th>
          </tr>
        </thead>
        <tbody b2b-table-row type="body"
          ng-repeat="rowData in ecdapp.execData">
          <tr id="tr-rowData">
            <td b2b-table-body>
              <div class="id-tooltip"><span>ID</span>
                <div class="wrapper">
                    <button style="border-radius: 5px;margin-right: 20px;font-weight: lighter;border: 1px solid black;" 
                    ng-click="ecdapp.copyStringToClipboard(rowData.id)" class="">Copy ID</button>
                  <span class="id-tooltiptext">{{rowData.id}}</span>
                </div>
              </div>
            </td>
            <!--  <td b2b-table-body>ID</td>-->
            <td b2b-table-body>
             <a href="ecd#/idep/tenant:{{rowData.tenant_name}};serviceRef:{{rowData.deployment_id}}">
                      {{rowData.deployment_id}}
             </a>
            </td>
            <td b2b-table-body ng-bind="rowData.workflow_id" />
            <td b2b-table-body ng-bind="rowData.created_at" />
            <td b2b-table-body ng-bind="rowData.ended_at" />
            <td b2b-table-body ng-bind="rowData.tenant_name" />
            <!--  <td b2b-table-body ng-bind="rowData.id" />-->
            <td b2b-table-body ng-if="rowData.status == 'pending'" >
              <span class="ng-scope" style="background-color: #edef8e;padding: 5px;border-radius: 3px; opacity: 0.6; font-weight: bold;">waiting to start</span></td>
            <td b2b-table-body ng-if="rowData.status == 'started'" >
              <span class="ng-scope" style="background-color: ##f0fd2e;padding: 5px;border-radius: 3px; opacity: 0.6; font-weight: bold;">in-progress</span></td>
            <td b2b-table-body ng-if="rowData.status == 'cancelling'" >
              <span class="ng-scope" style="background-color: #cabdbd;padding: 5px;border-radius: 3px;opacity: 0.6; font-weight: bold;">cancel in progress</span></td>
            <td b2b-table-body ng-if="rowData.status == 'force_cancelling'" >
              <span class="ng-scope" style="background-color: #cabdbd;padding: 5px;border-radius: 3px;opacity: 0.6; font-weight: bold;"">force-cancelling in progress</span> </td>
            <td b2b-table-body ng-if="rowData.status == 'cancelled'" >
              <span class="ng-scope" style="background-color: #9a9690;padding: 5px;border-radius: 3px;opacity: 0.6; font-weight: bold;">cancelled</span>
            </td>
            <td b2b-table-body ng-if="rowData.status == 'terminated'" >
              <span class="ng-scope" style="background-color: #62d826;padding: 5px;border-radius: 3px;opacity: 0.6; font-weight: bold;">successful</span>
            </td>
            <td b2b-table-body ng-if="rowData.status == 'failed'">
              <span class="ng-scope" style="background-color: #fd2e2e;padding: 5px;border-radius: 3px;opacity: 0.6; font-weight: bold;">failed</span>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <div b2b-pagination="" total-pages="ecdapp.totalPages"
      current-page="ecdapp.currentPageNum"
      click-handler="pageChangeHandler" role="navigation"></div>
  </div>
</div>