1 <!--environment input dialog-->
4 <div ng-if="uuidEnv==null">
5 <h4>Environment Name</h4>
6 <input type="text" ng-model="name" style="width:300px;" />
8 <div style="text-align:center;margin-top:20px;">
9 <button class="btn btn-default" ng-disabled=" name==null || name==''" ng-click="addEnvironment(name)">Create</button>
14 <div style="display:flex;flex-direction:row;" ng-if="uuidEnv!=null&&showImage==null">
16 <h3> {{name}} -- Openrc
17 <!--<button class="btn btn-default" style="float:right" ng-click="goNext()">Next</button>-->
18 <button class="btn btn-default" ng-click="goToImage()" style="margin-bottom:20px;float:right" ng-disabled="showNextOpenRc==null && showNextOpenRc==null ">
22 <!--<p>In this process, you can input your define openrc config or upload a openrc file</p>-->
25 <!--<button style="display:inline;" class="btn btn-default" ng-click="addEnvironment()" ng-show="uuid==null">Add Name</button>-->
29 <div bs-tabs style="width:750px;">
30 <div data-title="Detail" bs-pane ng-if="openrcInfo.openrc!=null">
33 You have already set up the openrc parameters
36 <div ng-repeat="(key,value) in openrcInfo.openrc">
38 <font style="font-weight:600;font-size:14px;">{{key}} : </font>
39 <font style="font-size:14px;">{{value}}</font>
44 <div data-title="Update" bs-pane>
46 <div style="margin-top:20px;">
47 <button class="btn btn-default" ng-click="addInfo()" style="margin-bottom:20px;">Add</button>
48 <div style="height:300px;width:800px;display:flex;flex-direction:column;flex-wrap:wrap;margin-left:5px;overflow-x:scroll">
49 <div ng-repeat="info in envInfo">
50 <!--<div> {{info.name}}</div>-->
52 <input class="edit-title" ng-model="info.name" ng-class="{'null-edit-title':info.name==null}" ng-attr-type="{{info.name.indexOf('PASSWORD')>-1 ? password : text}}" />
54 <div class="item-info">
55 <input class="form-control" type="text" ng-model="info.value" />
56 <!--<button class="delete-button" ng-click="deleteEnvItem($index)">delete</button>-->
57 <img src="images/close.png" ng-click="deleteEnvItem($index)" class="delete-img" />
64 <button class="btn btn-default" ng-click="submitOpenRcFile();" style="margin-bottom:20px;">
65 <div ng-if="!showloading">Submit</div>
66 <img src="images/loading2.gif" width="25" height="25" ng-if="showloading" />
73 <div data-title="Upload File" bs-pane>
74 <div style="margin-top:20px;height:405px;">
75 <button class="btn btn-default" style="margin-bottom:20px;" ngf-select="uploadFiles($file, $invalidFiles);" ngf-max-size="5MB">
76 <div ng-show="!loadingOPENrc">Upload</div>
77 <img src="images/loading2.gif" width="25" height="25" ng-if="loadingOPENrc" />
79 <!--<button class="btn btn-default" style="margin-bottom:20px;" ng-disabled="showNextOpenRc==null" ng-click="goToImage()">
83 <!--<div ng-if="displayOpenrcFile!=null || displayOpenrcFile!=undefined">
84 {{displayOpenrcFile.name}} last modified: {{filelastModified}}
97 <div ng-if="showImage==1&&showPod==null">
98 <div style="display:flex;flex-direction:row;">
99 <div style="width:750px;">
101 <h3>{{name}} -- Image
103 <button class="btn btn-default" ng-click="goToPod()" ng-disabled="showNextPod==null" style="float:right">
106 <button class="btn btn-default" ng-click="goToPodPrev()" style="margin-right:5px;float:right">
111 <!--<p>In this process, you can input your define openrc config or upload a openrc file</p>-->
115 <button class="btn btn-default" ng-click="uploadImage()">
116 <div ng-if="!showloading">Load Image</div>
117 <img src="images/loading2.gif" width="25" height="25" ng-if="showloading" />
121 <i class="fa fa-check" aria-hidden="true" style="margin-top:34px;margin-left:5px;color: #2ecc71;" ng-show="imageStatus==1&&showImageStatus==1">done</i>
122 <i class="fa fa-spinner" aria-hidden="true" style="margin-top:34px;margin-left:5px;color: #2ecc71;" ng-show="imageStatus==0&&showImageStatus==1">loading</i>
123 <i class="fa fa-exclamation-triangle" aria-hidden="true" style="margin-top:34px;margin-left:5px;color: red;" ng-show="imageStatus==2&&showImageStatus==1">error</i>
126 <!--<button class="btn btn-default" ng-click="goToPod()" ng-disabled="showNextPod==null">
130 <h4>Current Images</h4>
133 <table class="table table-striped">
141 <tr ng-repeat="(name, value) in yardstickImage">
142 <td ng-if="selectImageList.indexOf(name) > -1"><span class="glyphicon glyphicon-check" aria-hidden="true" ng-click="unselectImage(name)"></span></td>
143 <td ng-if="selectImageList.indexOf(name) == -1"><span class="glyphicon glyphicon-unchecked" aria-hidden="true" ng-click="selectImage(name)"></span></td>
145 <td>{{value.description}}</td>
146 <td>{{value.status}}</td>
162 <div ng-if="showPod==1&&showContainer==null">
163 <div style="display:flex;flex-direction:row;">
164 <div style="width:750px;">
167 <h3>{{name}} -- Pod File
168 <div style="float:right">
169 <button class="btn btn-default" ng-click="skipPodPrev()">Back</button>
170 <button class="btn btn-default" ng-click="skipPod()" ng-show="podData==null">Skip</button>
171 <button class="btn btn-default" ng-click="skipPod()" ng-show="podData!=null">Next</button>
179 <button class="btn btn-default" ngf-select="uploadFilesPod($file, $invalidFiles)" ngf-max-size="5MB">
180 <div ng-show="!loadingOPENrc">Upload</div>
181 <img src="images/loading2.gif" width="25" height="25" ng-if="loadingOPENrc" />
188 <h4>Current Pod Configuration</h4>
189 <table class="table table-striped">
198 <tr ng-repeat="pod in podData.pod.nodes">
200 <td>{{pod.name}}</td>
201 <td>{{pod.password}}</td>
202 <td>{{pod.role}}</td>
203 <td>{{pod.user}}</td>
206 <tr ng-show="podData.length==0">
232 <div ng-if="showContainer!=null">
233 <div style="display:flex;flex-direction:row;">
234 <div style="width:750px;">
236 <h3>{{name}} -- Container
237 <div style="float:right">
238 <button class="btn btn-default" ng-click="skipContainerPrev()">Back</button>
239 <button class="btn btn-default" ng-click="skipContainer()" ng-show="ifskipOrClose!=1">
242 <button class="btn btn-default" ng-click="closeThisDialog(); getEnvironmentList();" ng-show="ifskipOrClose==1">
246 <!--<button class="btn btn-default" style="float:right">Go Next</button>-->
248 <!--<p>In this process, you can input your define openrc config or upload a openrc file</p>-->
252 <select ng-model="selectContainer" data-ng-options="container as container.name for container in containerList">
253 <option value="">Choose...</option>
256 <button class="btn btn-default" ng-click="createContainer(selectContainer)" ng-disabled="selectContainer==null">
257 <div ng-show="!showloading">Create</div>
258 <img src="images/loading2.gif" width="25" height="25" ng-if="showloading" />
260 <!--<button class="btn btn-default" ng-click="skipContainer()" ng-show="ifskipOrClose!=1">
263 <button class="btn btn-default" ng-click="closeThisDialog(); getEnvironmentList();" ng-show="ifskipOrClose==1">
270 <h4>Current Contain</h4>
271 <table class="table table-striped">
279 <tr ng-repeat="con in displayContainerInfo">
280 <td>{{con.name}}</td>
281 <td>{{con.status}}</td>
282 <td>{{con.time}}</td>
319 border: 1px solid #eeeeee;
326 border: 1px solid #e8e8e8;