summaryrefslogtreecommitdiffstats
path: root/ccsdk-app-overlay/src/main/webapp/app/ccsdk/inventory/inventory_deployment_popups.html
blob: 41c3115282315f32a7b9ac1dd40c6b4670e789e2 (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
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
<script type="text/ng-template" id="inventory_deployment_execute_popup.html">
<style>
.ecd-parameter-table {
	border: 0px;
	overflow: auto;
}

.ecd-parameter-table th {
	font-size: 1.4rem;
}
</style>
<div class="b2b-modal-header ng-scope">
  <h2 id="myModalLabel" modal-title="">{{ecdapp.label}}</h2>
  <div class="corner-button in">
    <button type="button" class="close" aria-label="Close"
      ng-click="$dismiss('cancel')"></button>
  </div>
</div>
<div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
  role="region" aria-label="Modal body content">
  <div class="row-nowrap">
    <div class="span12">
      <div class="form-row">
        <label for="blueprintId">Deployment ID</label>
        <div class="field-group">
          <!--autofocus is HTML5 attribute; doesn't work in Firefox-->
          <input id="blueprintId" class="span12" type="text"
            data-ng-model="ecdapp.editRequest.deployment_id" autofocus />
        </div>
      </div>
    </div>
    <div class="span12">
      <div class="form-row">
        <label for="allowCustom">&nbsp;</label>
        <div class="field-group">
          <label for="allowCustomParameters" class="checkbox"> <input
            id="allowCustomParameters" type="checkbox"
            ng-model="ecdapp.editRequest.allow_custom_parameter" /> <i
            class="skin"></i><span>Allow Custom Parameters</span>
          </label>
        </div>
      </div>
    </div>
  </div>
  <div class="row-nowrap">
    <div class="span12">
      <div class="form-row">
        <label for="workflowName">Workflow Name</label>
        <div class="field-group">
          <select b2b-dropdown id="workflowName" name="workflowName"
            ng-model="ecdapp.editRequest.workflow_name.value"
            ng-change="selectWorkflowName()">
            <option b2b-dropdown-list
              option-repeat="w in ecdapp.editRequest.workflow_list"
              value="{{w}}">{{w}}</option>
          </select>
        </div>
      </div>
    </div>
    <div class="span12">
      <div class="form-row">
        <label for="force">&nbsp;</label>
        <div class="field-group">
          <label for="force" class="checkbox"> <input id="force"
            type="checkbox" ng-model="ecdapp.editRequest.force" /> <i
            class="skin"></i><span>Force</span>
          </label>
        </div>
      </div>
    </div>
  </div>
  <div class="row-nowrap">
    <div class="span12">
      <div class="form-row">
        <label for="parameters">*Parameters</label>
        <div b2b-file-drop file-model="ecdapp.editRequest.fileModel"
          on-drop="handleFileSelect()" align="center">
          <span b2b-file-link file-model="ecdapp.editRequest.fileModel"
            on-file-select="handleFileSelect()"> Drag &amp; drop
            a parameters YAML file here, or click to browse. </span>
        </div>
      </div>
      <div class="ecd-parameter-table">
        <table id="parameters">
          <tr id="ecd-table-header">
            <th width="40%">Name</th>
            <th width="60%">Value</th>
          </tr>
          <tbody
            ng-repeat="(pkey, pval) in ecdapp.editRequest.parmFileDict">
            <tr id="tr-rowData">
              <td ng-bind="pkey" />
              <td><input id="parameterValue" class="span12"
                type="text"
                data-ng-model="ecdapp.editRequest.parmFileDict[pkey]"
                autofocus /></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<div class="b2b-modal-footer ng-scope ng-isolate-scope">
  <div class="cta-button-group in">
    <button class="btn btn-alt btn-small" type="button"
      ng-click="ecdapp.executeDeployment(ecdapp.editRequest);">
      Save</button>
    <button class="btn btn-small" type="button"
      ng-click="$dismiss('cancel')">Cancel</button>
  </div>
</div>
</script>
<script type="text/ng-template"
  id="inventory_deployment_delete_popup.html">
<div class="b2b-modal-header ng-scope">
  <h3 id="myModalLabel" modal-title="">
    {{ecdapp.label}}
    </h2>
    <div class="corner-button in">
      <button type="button" class="close" aria-label="Close"
        ng-click="$dismiss('cancel')"></button>
    </div>
</div>
<div ng-hide="ecdapp.errMsg">
  <div class="row-nowrap"
    style="margin-bottom: 10px; margin-left: 10px;"">
    <div class="span6">
      <label for="tenant">Tenant</label>
      <!--not editable-->
      <input id="tenant" class="span12" type="text" disabled="disabled"
        data-ng-model="ecdapp.ui_tenant" />
    </div>
  </div>
</div>
<div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
  role="region" aria-label="Modal body content">
  <div class="span12">
    <div class="form-row">
      <div class="field-group">
        <label> Undeploy the deployment with ID
          '{{ecdapp.deploymentRef}}'? </label>
      </div>
    </div>
  </div>
</div>
<div class="b2b-modal-footer ng-scope ng-isolate-scope">
  <div class="cta-button-group in">
    <button class="btn btn-alt btn-small" type="button"
	  ng-disabled="ecdapp.isDisabled" 
      ng-click="ecdapp.deleteDeploymentById(deployment);">
      Undeploy</button>
    <button class="btn btn-small" type="button"
      ng-click="$dismiss('cancel')">Cancel</button>
  </div>
</div>
</script>
<script type="text/ng-template"
  id="inventory_deployment_inputs_view_popup.html">
<style>
.ecd-parameter-table {
	border: 1px;
	overflow: auto;
}

.ecd-parameter-table th {
	font-size: 1.4rem;
}
</style>
<div class="b2b-modal-header ng-scope">
  <h2 id="myModalLabel" modal-title="">{{ecdapp.label}}</h2>
  <div class="corner-button in">
    <button type="button" class="close" aria-label="Close"
      ng-click="$dismiss('cancel')"></button>
  </div>
</div>
<div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
  role="region" aria-label="Modal body content">
  <!-- show progress indicator -->
  <div ng-show="ecdapp.isDataLoading">
    <div class="span" style="margin-bottom: 20px;">
      <i class="icon-spinner small" role="img"
        aria-label="Please wait while the content loads"></i> Please
      wait while the content loads.
    </div>
  </div>
  <div ng-show="ecdapp.errMsg">
    <span class="ecd-error-message">{{ecdapp.errMsg}}</span>
  </div>
  <div ng-hide="ecdapp.errMsg">
    <div class="row-nowrap" style="margin-bottom: 10px;">
      <div class="span6">
        <label for="tenant">Tenant</label>
        <!--not editable-->
        <input id="tenant" class="span12" type="text"
          disabled="disabled" data-ng-model="ecdapp.ui_tenant" />
      </div>
    </div>
  </div>
  <div ng-hide="ecdapp.errMsg">
    <div class="row-nowrap">
      <div class="span12">
        <label for="deploymentRef">Deployment Ref</label>
        <!--not editable-->
        <input id="deploymentRef" class="span12" type="text"
          disabled="disabled" data-ng-model="ecdapp.deploymentRef" />
      </div>
      <div class="span12">
        <label for="serviceId">Service ID</label>
        <!--not editable-->
        <input id="serviceId" class="span12" type="text"
          disabled="disabled" data-ng-model="ecdapp.serviceId" />
      </div>
    </div>
    <div class="row-nowrap">
      <div class="span12">
        <table id="parameters">
          <tr id="ecd-table-header">
            <th width="30%">Name</th>
            <th width="70%">Value</th>
          </tr>
          <tbody ng-repeat="(pkey, pval) in ecdapp.deployment.parmFileDict">
            <tr id="tr-rowData">
			  <td> 
				<div style="font-weight: bold;">{{pkey}}</div>
				<div style="margin-top: 10px; font-weight: lighter;">
				{{ecdapp.deployment.descriptionDict[pkey]}}</div>
			  </td>
              <td> <pre>{{pval}}</pre></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
</script>
<script type="text/ng-template"
  id="inventory_deployment_update_popup.html">
<div class="b2b-modal-header ng-scope">
  <h3 id="myModalLabel" modal-title="">{{ecdapp.label}}</h3>
  <div class="corner-button in">
    <button type="button" class="close" aria-label="Close"
      ng-click="$dismiss('cancel')"></button>
  </div>
</div>
<div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
  role="region" aria-label="Modal body content">
  <div ng-show="ecdapp.errMsg">
    <span class="ecd-error-message">{{ecdapp.errMsg}}</span>
  </div>
  <div ng-hide="ecdapp.isDataLoading" style="margin-top: -5px;">
    <div class="field-group">
      <label for="bp">Blueprint</label> <select
        style="font-size: 1.2rem;" id="bp" name="appl" b2b-dropdown
        class="span6" ng-model="ecdapp.typeId"
        ng-change="ecdapp.getBlueprint()" required>
        <option b2b-dropdown-list option-repeat="d in ecdapp.bp"
          value="{{d.typeId}}">{{d.typeName}}
          version#{{d.typeVersion}}</option>
      </select>
    </div>
  </div>
  <!-- show progress indicator -->
  <div ng-show="ecdapp.isDataLoading">
    <div class="span" style="margin-bottom: 20px;">
      <i class="icon-spinner small" role="img"
        aria-label="Please wait while the content loads"></i> Please
      wait while the content loads.
    </div>
  </div>
  <div ng-hide="ecdapp.isDataLoading" class="row-nowrap">
    <div class="span12">
      <div class="form-row">
        <label for="parameters">*Inputs</label>
        <div b2b-file-drop file-model="ecdapp.editRequest.fileModel"
          on-drop="handleFileSelect()" align="center">
          <span b2b-file-link file-model="ecdapp.editRequest.fileModel"
            on-file-select="handleFileSelect()"> Drag &amp; drop
            a parameters JSON file here, or click to browse. </span>
        </div>
      </div>
      <div class="ecd-parameter-table">
        <table id="parameters">
          <tbody
            ng-repeat="(pkey, pval) in ecdapp.editRequest.parmFileDict">
            <tr id="tr-rowData">
              <td
                style="padding: 5px 0 2px 0; font-size: 1.2rem; width: 100%; border: none;"
                ng-bind="pkey">
				<div style="font-weight: bold;">{{pkey}}</div>  
				<div style="margin-top: 8px; font-weight: lighter;">{{ecdapp.editRequest.descriptionDict[pkey]}}</div>
              </td>
			</tr>
            <tr id="tr-rowData">
              <td
                style="padding: 0 5px 5px; font-size: 1.2rem; width: 100%; border: none;">
                <input id="parameterValue" class="span12" type="text"
                data-ng-model="ecdapp.editRequest.parmFileDict[pkey]"
                autofocus />
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
  <div style="border-bottom: 1px solid black;">Actions</div>
  <div style="margin-top: 10px;">
    <label for="install_flow" class="btn-switch-label"
      ng-class="{'b2b-disabled-label':allDisabled}"> <input
      type="button" aria-pressed="{{ecdapp.install_flow.value}}"
      id="refresh_switch" b2b-switches
      ng-model="ecdapp.install_flow.value" ng-disabled="allDisabled"
      aria-disabled="{{allDisabled}}"
      aria-label="Auto-refresh is {{ecdapp.install_flow.value?'On':'Off'}}. {{allDisabled?'Disabled. Explanation why it is disabled':''}}">
      <label style="margin-left: 10px;" aria-hidden="true">Run
        install workflow</label> <span class="tooltip" b2b-tooltip> <a
        href="#" class="icon-tooltip tooltip-element" tabindex="0"
        role="button" data-placement="top" 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">Run install lifecycle
                operations</span> <span class="popover-content"> </span>
          </span>
        </span>
      </span>
    </span>
    </label>
  </div>
  <div style="margin-top: 10px;">
    <label for="uninstall_flow" class="btn-switch-label"
      ng-class="{'b2b-disabled-label':allDisabled}"> <input
      type="button" aria-pressed="{{ecdapp.uninstall_flow.value}}"
      id="refresh_switch" b2b-switches
      ng-model="ecdapp.uninstall_flow.value" ng-disabled="allDisabled"
      aria-disabled="{{allDisabled}}"
      aria-label="Auto-refresh is {{ecdapp.uninstall_flow.value?'On':'Off'}}. {{allDisabled?'Disabled. Explanation why it is disabled':''}}">
      <label style="margin-left: 10px;" aria-hidden="true">Run
        uninstall workflow</label> <span class="tooltip" b2b-tooltip> <a
        href="#" class="icon-tooltip tooltip-element" tabindex="0"
        role="button" data-placement="top" 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">Run uninstall lifecycle
                operations</span> <span class="popover-content"> </span>
          </span>
        </span>
      </span>
    </span>
    </label>
  </div>
  <div style="margin-top: 10px;">
    <label for="install_first_flow" class="btn-switch-label"
      ng-class="{'b2b-disabled-label':allDisabled}"> <input
      type="button"
      aria-pressed="{{ecdapp.install_first_flow_flag.value}}"
      id="refresh_switch" b2b-switches
      ng-model="ecdapp.install_first_flow_flag.value"
      ng-disabled="allDisabled" aria-disabled="{{allDisabled}}"
      aria-label="Auto-refresh is {{ecdapp.install_first_flow_flag.value?'On':'Off'}}. {{allDisabled?'Disabled. Explanation why it is disabled':''}}">
      <label style="margin-left: 10px;" aria-hidden="true">Run
        install workflow first</label> <span class="tooltip" b2b-tooltip>
        <a href="#" class="icon-tooltip tooltip-element" tabindex="0"
        role="button" data-placement="top" 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">Run install workflow
                first, then uninstall workflow. Default: first uninstall
                then install workflow.</span> <span class="popover-content">
            </span>
          </span>
        </span>
      </span>
    </span>
    </label>
  </div>
  <div style="margin-top: 10px;">
    <label for="reinstall_flow" class="btn-switch-label"
      ng-class="{'b2b-disabled-label':allDisabled}"> <input
      type="button" aria-pressed="{{ecdapp.reinstall_flow.value}}"
      id="refresh_switch" b2b-switches
      ng-model="ecdapp.reinstall_flow.value" ng-disabled="allDisabled"
      aria-disabled="{{allDisabled}}"
      aria-label="Auto-refresh is {{ecdapp.reinstall_flow.value?'On':'Off'}}. {{allDisabled?'Disabled. Explanation why it is disabled':''}}">
      <label style="margin-left: 10px;" aria-hidden="true">Run
        automatic reinstall</label> <span class="tooltip" b2b-tooltip> <a
        href="#" class="icon-tooltip tooltip-element" tabindex="0"
        role="button" data-placement="top" 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">Automatically reinstall
                node instances whose properties have been modified as
                part of deployment update. If not set then, node
                instances that were explicitly given to "Reinstall node
                instances list" will be reinstalled.</span> <span
              class="popover-content"> </span>
          </span>
        </span>
      </span>
    </span>
    </label>
  </div>
  <div style="margin-top: 10px;">
    <div class="field-group">
      <div class="group">
        <label class="col-sm-3 control-label">Reinstall node
          instances list </label> <span class="tooltip" b2b-tooltip> <a
          href="#" class="icon-tooltip tooltip-element" tabindex="0"
          role="button" data-placement="top" 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">Node instances to be
                  installed as part of the deployment update. They will
                  be reinstalled even if "Run automatic reinstall" is
                  not set</span> <span class="popover-content"> </span>
            </span>
          </span>
        </span>
        </span>
        <ui-select multiple ng-model="ecdapp.selectedNodeInst"
          theme="bootstrap" close-on-select="false"
          title="node instance"> <ui-select-match
          class="ui-select-match">{{$item}}</ui-select-match> <ui-select-choices
          class="ui-select-choices"
          repeat="nodeInst in ecdapp.nodeInst | filter:$select.search"
          position='down'> {{nodeInst}} </ui-select-choices> </ui-select>
      </div>
    </div>
    <div style="margin-top: 10px;">
      <label for="force" class="btn-switch-label"
        ng-class="{'b2b-disabled-label':allDisabled}"> <input
        type="button" aria-pressed="{{ecdapp.force_flag.value}}"
        id="refresh_switch" b2b-switches
        ng-model="ecdapp.force_flag.value" ng-disabled="allDisabled"
        aria-disabled="{{allDisabled}}"
        aria-label="Auto-refresh is {{ecdapp.force_flag.value?'On':'Off'}}. {{allDisabled?'Disabled. Explanation why it is disabled':''}}">
        <label style="margin-left: 10px;" aria-hidden="true">Force
          update</label> <span class="tooltip" b2b-tooltip> <a href="#"
          class="icon-tooltip tooltip-element" tabindex="0"
          role="button" data-placement="top" 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">Force running update
                  in case a previous update on this deployment has
                  failed to finish successfully</span> <span
                class="popover-content"> </span>
            </span>
          </span>
        </span>
      </span>
      </label>
    </div>
  </div>
  <!-- show progress indicator -->
  <div ng-show="ecdapp.deploymentInProgress">
    <div class="span" style="margin-bottom: 20px;">
      <i class="icon-spinner small" role="img"
        aria-label="Please wait while the content loads"></i> Please
      wait while the task completes.
    </div>
  </div>
  <div class="b2b-modal-footer ng-scope ng-isolate-scope">
    <div class="cta-button-group in"
      ng-hide="ecdapp.deploymentInProgress">
      <button class="btn btn-alt btn-small" type="button"
        ng-click="ecdapp.updateDeployment(ecdapp.editRequest)"
        ng-show="!ecdapp.isDataLoading && !ecdapp.errMsg">
        Update</button>
      <button class="btn btn-alt btn-small" type="button"
        ng-click="$dismiss('cancel');">Close</button>
    </div>
  </div>
</script>
<script type="text/ng-template" id="blueprint_data_view_popup.html">
  <div class="b2b-modal-header ng-scope">
    <h2 id="myModalLabel" modal-title="">{{ecdapp.label}}</h2>
    <div class="corner-button in">
      <button type="button" class="close" aria-label="Close"
        ng-click="$dismiss('cancel')"></button>
    </div>
  </div>
  <div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
    role="region" aria-label="Modal body content">
    <!-- show progress indicator -->
    <div ng-show="ecdapp.isDataLoading">
      <div class="span" style="margin-bottom: 20px;">
        <i class="icon-spinner small" role="img"
          aria-label="Please wait while the content loads"></i> Please
        wait while the content loads.
      </div>
    </div>
    <div ng-show="ecdapp.errMsg">
      <span class="ecd-error-message">{{ecdapp.errMsg}}</span>
    </div>
    <div class="row-nowrap">
      <div class="span12">
        <label for="typeName">Blueprint Name</label>
        <!--not editable-->
        <input id="typeName" class="span12" type="text"
          disabled="disabled" data-ng-model="ecdapp.typeName" />
      </div>
    </div>
    <div ng-hide="ecdapp.errMsg">
      <pre>{{ecdapp.blueprint}}</pre>
    </div>
  </div>
  <div class="b2b-modal-footer ng-scope ng-isolate-scope">
    <div class="cta-button-group in">
      <button class="btn btn-alt btn-small" type="button"
        ng-click="$dismiss('cancel');">Close</button>
    </div>
  </div>
</script>
<script type="text/ng-template"
  id="inventory_deployment_rollback_popup.html">
  <div class="b2b-modal-header ng-scope">
    <h2 id="myModalLabel" modal-title="">{{ecdapp.label}}</h2>
    <div class="corner-button in">
      <button type="button" class="close" aria-label="Close"
        ng-click="$dismiss('cancel')"></button>
    </div>
  </div>
  <div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
    role="region" aria-label="Modal body content">
    <!-- show progress indicator -->
    <div ng-show="ecdapp.isDataLoading">
      <div class="span" style="margin-bottom: 20px;">
        <i class="icon-spinner small" role="img"
          aria-label="Please wait while the content loads"></i> Please
        wait while the content loads.
      </div>
    </div>
    <div ng-show="ecdapp.errMsg">
      <span class="ecd-error-message">{{ecdapp.errMsg}}</span>
    </div>
    <div ng-hide="ecdapp.errMsg">
      <div class="row-nowrap">
        <div class="span12">
          <label for="deploymentRef">Deployment Ref</label>
          <!--not editable-->
          <input id="deploymentRef" class="span12" type="text"
            disabled="disabled" data-ng-model="ecdapp.deploymentRef" />
        </div>
        <div class="span12">
          <label for="serviceId">Service ID</label>
          <!--not editable-->
          <input id="serviceId" class="span12" type="text"
            disabled="disabled" data-ng-model="ecdapp.serviceId" />
        </div>
        <div class="span12">
          <label for="tenantName">Tenant Name</label>
          <!--not editable-->
          <input id="tenantName" class="span12" type="text"
            disabled="disabled" data-ng-model="ecdapp.ui_tenant" />
        </div>
      </div>
      <div ng-hide="ecdapp.isDataLoading">
        <div b2b-table id="revisions-table" class="b2b-table-div"
          table-data="ecdapp.local_revisions">
          <table>
            <thead b2b-table-row type="header">
              <tr id="th-header-row">
                <th b2b-table-header>Revision</th>
                <th b2b-table-header>Updated</th>
                <th b2b-table-header>Status</th>
                <th b2b-table-header>Chart</th>
                <th b2b-table-header>Description</th>
                <th b2b-table-header sortable="false"><i
                  class="icon-controls-gear ecd-icon-display"></i></th>
              </tr>
            </thead>
            <tbody b2b-table-row type="body"
              row-repeat="rowData in ecdapp.local_revisions">
              <tr id="tr-rowData">
                <td b2b-table-body ng-bind="rowData.revision" />
                <td b2b-table-body ng-bind="rowData.updated" />
                <td b2b-table-body ng-bind="rowData.status" />
                <td b2b-table-body ng-bind="rowData.chart" />
                <td b2b-table-body ng-bind="rowData.description" />
                <td ng-if="!$last" b2b-table-body>
                  <div class="form-row">
                    <label class="checkbox"> <input
                      type="checkbox" ng-model="rowData.checked"
                      ng-click="ecdapp.updateSelection(rowData.revision)" />
                      <i class="skin"></i>
                    </label>
                  </div>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
    <div class="b2b-modal-footer ng-scope ng-isolate-scope">
      <div class="cta-button-group in">
        <button class="btn btn-alt btn-small" type="button"
          ng-click="ecdapp.rollbackWorkflow(ecdapp.revision);"
          ng-show="!ecdapp.isDataLoading && !ecdapp.errMsg">
          Start Rollback</button>
        <button class="btn btn-alt btn-small" type="button"
          ng-click="$dismiss('cancel');">Close</button>
      </div>
    </div>
</script>
<script type="text/ng-template"
  id="inventory_deployment_upgrade_popup.html">
    <style>
.ecd-parameter-table {
	border: 1px;
	overflow: auto;
}

.ecd-parameter-table th {
	font-size: 1.4rem;
}
</style>
    <div class="b2b-modal-header ng-scope">
      <h2 id="myModalLabel" modal-title="">{{ecdapp.label}}</h2>
      <div class="corner-button in">
        <button type="button" class="close" aria-label="Close"
          ng-click="$dismiss('cancel')"></button>
      </div>
    </div>
    <div class="b2b-modal-body ng-scope ng-isolate-scope" tabindex="0"
      role="region" aria-label="Modal body content">
      <!-- show progress indicator -->
      <div ng-show="ecdapp.isDataLoading">
        <div class="span" style="margin-bottom: 20px;">
          <i class="icon-spinner small" role="img"
            aria-label="Please wait while the content loads"></i> Please
          wait while the content loads.
        </div>
      </div>
      <div ng-show="ecdapp.errMsg">
        <span class="ecd-error-message">{{ecdapp.errMsg}}</span>
      </div>
      <div ng-hide="ecdapp.errMsg">
        <div class="row-nowrap">
          <div class="span12">
            <label for="deploymentRef">Deployment Ref</label>
            <!--not editable-->
            <input id="deploymentRef" class="span12" type="text"
              disabled="disabled" data-ng-model="ecdapp.deploymentRef" />
          </div>
          <div class="span12">
            <label for="tenantName">Tenant Name</label>
            <!--not editable-->
            <input id="tenantName" class="span12" type="text"
              disabled="disabled" data-ng-model="ecdapp.ui_tenant" />
          </div>
        </div>
        <div class="row-nowrap">
          <div class="span12">
            <div class="form-row">
              <label for="parameters">*Parameters</label>
              <div b2b-file-drop
                file-model="ecdapp.editRequest.fileModel"
                on-drop="handleFileSelect()" align="center">
                <span b2b-file-link
                  file-model="ecdapp.editRequest.fileModel"
                  on-file-select="handleFileSelect()"> Drag
                  &amp; drop a parameters JSON file here, or click to
                  browse. </span>
              </div>
            </div>
            <div class="ecd-parameter-table">
              <table id="parameters">
                <tr id="ecd-table-header">
                  <th width="40%">Name</th>
                  <th width="60%">Value</th>
                </tr>
                <tbody
                  ng-repeat="(pkey, pval) in ecdapp.editRequest.resourceDefinitionChanges">
                  <tr id="tr-rowData">
                    <td ng-bind="pkey" />
                    <td><input id="parameterValue" class="span12"
                      type="text"
                      data-ng-model="ecdapp.editRequest.resourceDefinitionChanges[pkey]"
                      autofocus /></td>
                  </tr>
                </tbody>
                <tbody
                  ng-repeat="(pkey, pval) in ecdapp.editRequest.resourceConstants">
                  <tr id="tr-rowData">
                    <td ng-bind="pkey" />
                    <td ng-bind="pval" />
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- show progress indicator -->
    <div style="width: 100%;">
      <div ng-show="ecdapp.updatingDeployment"
        style="display: table; margin: 0 auto;" class="span">
        <i class="icon-spinner small" role="img"
          aria-label="Update Deployment in Progress..."></i> Update
        Deployment in Progress...
      </div>
    </div>
    <div class="b2b-modal-footer ng-scope ng-isolate-scope"
      ng-show="!ecdapp.updatingDeployment">
      <div class="cta-button-group in">
        <!--<div ng-show="!ecdapp.isDataLoading">-->
        <button class="btn btn-alt btn-small" type="button"
          ng-click="ecdapp.upgradeWorkflow(ecdapp.editRequest.resourceDefinitionChanges);"
          ng-show="!ecdapp.isDataLoading && !ecdapp.errMsg">
          Start Upgrade</button>
        <!--</div>-->
        <button class="btn btn-small" type="button"
          ng-click="$dismiss('cancel')">Cancel</button>
      </div>
    </div>
</script>