-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (94 loc) · 3.45 KB
/
index.html
File metadata and controls
113 lines (94 loc) · 3.45 KB
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
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title>createSolution example</title>
<!--
| Copyright 2023 Esri
|
| Licensed under the Apache License, Version 2.0 (the "License");
| you may not use this file except in compliance with the License.
| You may obtain a copy of the License at
|
| http://www.apache.org/licenses/LICENSE-2.0
|
| Unless required by applicable law or agreed to in writing, software
| distributed under the License is distributed on an "AS IS" BASIS,
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
| See the License for the specific language governing permissions and
| limitations under the License.
-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<style>
.indent {
margin-left: 20px;
}
#subgroupIdsDiv {
display: none;
}
</style>
<script>
var goFcn;
</script>
</head>
<body>
<h3>Create a Solution</h3>
<p>Create a solution item from the contents of a group or from a single item and its dependencies.</p>
<div id="container" style="display:none">
<div id="input">
<label for="itemOrGroupId">Enter an Item or Group ID:</label>
<input class="form-control" type="text" id="itemOrGroupId">
<br /><br />
<div>
<label for="includeSubgroups">Embed groups in solution? </label>
<input type="checkbox" id="includeSubgroups" onchange="changeSubgroupIdsVisibility(this)">
<div id="subgroupIdsDiv" class="indent">
<label for="subgroupIds">IDs of embedded groups separated by commas:</label>
<input type="text" id="subgroupIds" style="width:485px">
</div>
</div>
<br /><br />
<div class="section-title">Credentials in source organization</div>
<div class="labeledItem">
<label for="srcUsername">Username: </label>
<input type="text" id="srcUsername" placeholder="anonymous">
</div>
<div class="labeledItem">
<label for="srcPassword">Password: </label>
<input type="password" id="srcPassword">
</div>
<div class="labeledItem">
<label for="srcPortal">Portal: </label>
<input type="text" id="srcPortal" style="width:256px" placeholder="https://www.arcgis.com">
</div>
<br /><br />
<div class="section-title">Credentials in destination organization</div>
<div class="labeledItem">
<label for="destUsername">Username: </label>
<input type="text" id="destUsername">
</div>
<div class="labeledItem">
<label for="destPassword">Password: </label>
<input type="password" id="destPassword">
</div>
<div class="labeledItem">
<label for="destPortal">Portal: </label>
<input type="text" id="destPortal" style="width:256px" placeholder="https://www.arcgis.com">
</div>
<br /><br />
<button class="btn btn-default" onclick="goFcn()">Create Solution</button>
</div>
<br />
</div>
<div id="output" style="display:none">Creating...</div>
<script>
function changeSubgroupIdsVisibility (
changeEvent
) {
document.getElementById("subgroupIdsDiv").style.display =
changeEvent.checked ? "block" : "none";
}
</script>
</body>
</html>