Skip to content

Commit 5ce2890

Browse files
committed
Merge branch 'ui-vm-affinity'
2 parents b5979ba + f1bdae0 commit 5ce2890

13 files changed

Lines changed: 1109 additions & 513 deletions

File tree

‎client/WEB-INF/classes/resources/messages.properties‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
17+
label.add.affinity.group=Add new affinity group
18+
message.delete.affinity.group=Please confirm that you would like to remove this affinity group.
19+
label.delete.affinity.group=Delete Affinity Group
20+
label.edit.affinity.group=Edit Affinity Group
21+
label.affinity=Affinity
22+
label.anti.affinity=Anti-affinity
23+
label.affinity.groups=Affinity Groups
24+
label.anti.affinity.groups=Anti-affinity Groups
25+
label.affinity.group=Affinity Group
26+
label.anti.affinity.group=Anti-affinity Group
1827
changed.item.properties=Changed item properties
1928
confirm.enable.s3=Please fill in the following information to enable support for S3-backed Secondary Storage
2029
confirm.enable.swift=Please fill in the following information to enable support for Swift

‎ui/css/cloudstack3.css‎

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,6 @@ div.list-view td.state.off span {
15021502
position: relative;
15031503
left: 0px;
15041504
float: left;
1505-
width: 460px;
15061505
height: 22px;
15071506
border-top: 1px solid #808080;
15081507
/*+box-shadow:inset 0px 1px #FFFFFF;*/
@@ -1907,7 +1906,7 @@ div.detail-group td.view-all a {
19071906
background: url(../images/gradients.png) repeat-x 0px -529px;
19081907
font-size: 11px;
19091908
display: block;
1910-
height: 25px;
1909+
height: 27px;
19111910
text-decoration: none;
19121911
color: #4C5D6C;
19131912
/*+text-shadow:0px 1px 2px #FFFFFF;*/
@@ -1916,7 +1915,7 @@ div.detail-group td.view-all a {
19161915
-o-text-shadow: 0px 1px 2px #FFFFFF;
19171916
text-shadow: 0px 1px 2px #FFFFFF;
19181917
float: left;
1919-
padding: 0 8px 0 5px;
1918+
padding: 0 1px;
19201919
border-left: 1px solid #9B9EA2;
19211920
/*+border-radius:5px 0 0 5px;*/
19221921
-moz-border-radius: 5px 0 0 5px;
@@ -1971,10 +1970,10 @@ div.details .main-groups label.error {
19711970
}
19721971

19731972
.detail-view td.view-all.multiple {
1974-
width: 123px !important;
1975-
height: 22px;
1976-
float: left;
1973+
max-width: 145px;
1974+
height: 17px;
19771975
display: block;
1976+
float: left;
19781977
margin: 8px 2px 8px 8px;
19791978
border: none !important;
19801979
/*+box-shadow:none;*/
@@ -5265,6 +5264,10 @@ label.error {
52655264
position: relative;
52665265
}
52675266

5267+
.multi-wizard.instance-wizard .progress ul li {
5268+
width: 109px;
5269+
}
5270+
52685271
.multi-wizard .progress ul li.first {
52695272
/*+border-radius:5px 0 0 5px;*/
52705273
-moz-border-radius: 5px 0 0 5px;
@@ -5306,6 +5309,10 @@ label.error {
53065309
text-align: center;
53075310
}
53085311

5312+
.multi-wizard.instance-wizard .progress ul li span {
5313+
left: 36px;
5314+
}
5315+
53095316
.multi-wizard .progress ul li span.multiline {
53105317
width: 71px;
53115318
top: 12px;
@@ -5322,6 +5329,10 @@ label.error {
53225329
z-index: 1000;
53235330
}
53245331

5332+
.multi-wizard.instance-wizard .progress ul li span.arrow {
5333+
left: 27px;
5334+
}
5335+
53255336
.multi-wizard .progress ul li.active span.arrow {
53265337
background-position: -1px -396px;
53275338
}
@@ -5342,6 +5353,15 @@ label.error {
53425353
background: transparent;
53435354
}
53445355

5356+
.multi-wizard.instance-wizard .progress ul li span.number {
5357+
left: 16px;
5358+
}
5359+
5360+
.multi-wizard.instance-wizard .progress ul li span.multiline {
5361+
width: 79px;
5362+
left: 23px;
5363+
}
5364+
53455365
.multi-wizard .progress ul li.active span {
53465366
/*+text-shadow:0px -1px 1px #004AFF;*/
53475367
-moz-text-shadow: 0px -1px 1px #004AFF;
@@ -11670,7 +11690,6 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
1167011690
background-position: 0px -707px;
1167111691
}
1167211692

11673-
1167411693
.attach .icon,
1167511694
.attachISO .icon,
1167611695
.attachDisk .icon {
@@ -11854,16 +11873,13 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
1185411873
}
1185511874

1185611875
.removeVlanRange .icon {
11857-
1185811876
background-position: 1px -92px;
1185911877
}
1186011878

11861-
.removeVlanRange:hover .icon{
11862-
11879+
.removeVlanRange:hover .icon {
1186311880
background-position: 1px -92px;
1186411881
}
1186511882

11866-
1186711883
.resize .icon,
1186811884
.updateResourceCount .icon {
1186911885
background-position: -167px -66px;
@@ -11893,9 +11909,8 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
1189311909
background-position: -168px -31px;
1189411910
}
1189511911

11896-
.scaleUp .icon{
11897-
background-position: -167px -66px;
11898-
11912+
.scaleUp .icon {
11913+
background-position: -167px -66px;
1189911914
}
1190011915

1190111916
.restoreVM:hover .icon,
@@ -12027,6 +12042,30 @@ div.ui-dialog div.autoscaler div.field-group div.form-container form div.form-it
1202712042
background-position: -228px -646px;
1202812043
}
1202912044

12045+
.changeAffinity .icon {
12046+
background-position: -264px -2px;
12047+
}
12048+
12049+
.changeAffinity:hover .icon {
12050+
background-position: -263px -583px;
12051+
}
12052+
12053+
.releaseFromAccount .icon {
12054+
background-position: -230px -123px;
12055+
}
12056+
12057+
.releaseFromAccount:hover .icon {
12058+
background-position: -229px -704px;
12059+
}
12060+
12061+
.addAccount .icon {
12062+
background-position: -231px -96px;
12063+
}
12064+
12065+
.addAccount:hover .icon {
12066+
background-position: -230px -677px;
12067+
}
12068+
1203012069
.label-hovered {
1203112070
cursor: pointer;
1203212071
color: #0000FF !important;

‎ui/dictionary.jsp‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ under the License.
2525
<% long now = System.currentTimeMillis(); %>
2626
<script language="javascript">
2727
dictionary = {
28+
'label.add.affinity.group': '<fmt:message key="label.add.affinity.group"/>',
29+
'message.delete.affinity.group': '<fmt:message key="message.delete.affinity.group"/>',
30+
'label.delete.affinity.group': '<fmt:message key="label.delete.affinity.group"/>',
31+
'label.edit.affinity.group': '<fmt:message key="label.edit.affinity.group"/>',
32+
'label.affinity': '<fmt:message key="label.affinity"/>',
33+
'label.anti.affinity': '<fmt:message key="label.anti.affinity"/>',
34+
'label.affinity.groups': '<fmt:message key="label.affinity.groups"/>',
35+
'label.anti.affinity.groups': '<fmt:message key="label.anti.affinity.groups"/>',
36+
'label.affinity.group': '<fmt:message key="label.affinity.group"/>',
37+
'label.anti.affinity.group': '<fmt:message key="label.anti.affinity.group"/>',
2838
'message.redirecting.region': '<fmt:message key="message.redirecting.region"/>',
2939
'label.use.vm.ip': '<fmt:message key="label.use.vm.ip"/>',
3040
'label.cpu.limits': '<fmt:message key="label.cpu.limits"/>',

‎ui/images/sprites.png‎

3.76 KB
Loading

‎ui/index.jsp‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ under the License.
9494
<li><span class="number">2</span><span class="multiline"><fmt:message key="label.select.a.template"/></span><span class="arrow"></span></li>
9595
<li><span class="number">3</span><span class="multiline"><fmt:message key="label.compute.offering"/></span><span class="arrow"></span></li>
9696
<li><span class="number">4</span><span class="multiline"><fmt:message key="label.data.disk.offering"/></span><span class="arrow"></span></li>
97-
<li><span class="number">5</span><span><fmt:message key="label.menu.network"/></span><span class="arrow"></span></li>
98-
<li class="last"><span class="number">6</span><span><fmt:message key="label.review"/></span></li>
97+
<li><span class="number">5</span><span><fmt:message key="label.affinity"/></span><span class="arrow"></span></li>
98+
<li><span class="number">6</span><span><fmt:message key="label.menu.network"/></span><span class="arrow"></span></li>
99+
<li class="last"><span class="number">7</span><span><fmt:message key="label.review"/></span></li>
99100
</ul>
100101
</div>
101102
<form>
@@ -225,7 +226,15 @@ under the License.
225226
</div>
226227
</div>
227228

228-
<!-- Step 5: Network -->
229+
<!-- Step 5: Affinity groups -->
230+
<div class="step affinity" wizard-step-id="affinity">
231+
<div class="content">
232+
<!-- Existing offerings -->
233+
<div class="select-container"></div>
234+
</div>
235+
</div>
236+
237+
<!-- Step 6: Network -->
229238
<div class="step network always-load" wizard-step-id="network">
230239
<!-- 5a: Network description -->
231240
<div class="wizard-step-conditional nothing-to-select">
@@ -325,7 +334,7 @@ under the License.
325334
</div>
326335
</div>
327336
</div>
328-
<!-- Step 6: Review -->
337+
<!-- Step 7: Review -->
329338
<div class="step review" wizard-step-id="review">
330339
<div class="main-desc">
331340
<fmt:message key="message.vm.review.launch"/>
@@ -1660,6 +1669,8 @@ under the License.
16601669
<script type="text/javascript" src="scripts/dashboard.js?t=<%=now%>"></script>
16611670
<script type="text/javascript" src="scripts/ui-custom/instanceWizard.js?t=<%=now%>"></script>
16621671
<script type="text/javascript" src="scripts/instanceWizard.js?t=<%=now%>"></script>
1672+
<script type="text/javascript" src="scripts/affinity.js?t=<%=now%>"></script>
1673+
<script type="text/javascript" src="scripts/ui-custom/affinity.js?t=<%=now%>"></script>
16631674
<script type="text/javascript" src="scripts/instances.js?t=<%=now%>"></script>
16641675
<script type="text/javascript" src="scripts/events.js?t=<%=now%>"></script>
16651676
<script type="text/javascript" src="scripts/regions.js?t=<%=now%>"></script>

0 commit comments

Comments
 (0)