aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/view-models/creationDialog.htm
blob: 49d3ef8688ce9f6f66a5d6c0e99e3721cab31bda (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
<div  ng-controller="creationDialogController">
	<div ng-show="isDialogVisible">
		<iframe class="popup" scrolling="no" ng-if="!shouldShowOldPopup()" id="iframe_callback"  ng-src={{url}}></iframe>
		<div ng-if="shouldShowOldPopup()">
			<div class="titleLine">
				<img src="app/vid/images/spinner.gif"
					ngx-visible="{{isSpinnerVisible}}"></img>
				<h3 data-tests-id="create-modal-title">Create {{componentName}} -- {{createType}}</h3>
			</div>

			<div class="error" ng-show="isErrorVisible">
				<img src="app/vid/images/error.png"></img>{{error}}
			</div>

			<div ngx-visible="{{isDataVisible}}">
				<parameter-block control="summaryControl"></parameter-block>
				<h4>
					User Provided Data (<img class="requiredIndicator"
						src="app/vid/images/asterisk.png" height='10' width='10'></img> indicates required field)
				</h4>
				<parameter-block control="userProvidedControl"
					callback="userParameterChanged(id);" editable></parameter-block>
				<div class="prompt">
					<p>
						Enter Data and <span>Confirm</span> to<br />Create <span>{{componentName}}</span>
					</p>
					<p>
						<span>Cancel</span> to Return to Previous Page.<br />Data entered
						will be lost
					</p>
				</div>

			</div>
			<div class="buttonRow">
				<button data-tests-id="confirmButton" ngx-enabled="{{isConfirmEnabled}}" att-button size="small"
						ng-click="confirm();">Confirm</button>
				<button type="button" data-tests-id="cancelButton" ng-click="cancel();" att-button
						btn-type="primary" size="small">Cancel</button>
				<button class="btn-danger" ng-if="isShowErrorReport() && isServiceError" att-button size="small"
						ng-click="showReportWindow()">Create report</button>
			</div>
		</div>
	</div>

	<div ng-include="'app/vid/scripts/view-models/msoCommit.htm'"></div>

</div>