Revision 67679131
b/ui/static/main.css | ||
---|---|---|
1155 | 1155 |
.meta-modal button.remove { |
1156 | 1156 |
background-color: #d35f5f; |
1157 | 1157 |
border-color: #d35f5f; |
1158 |
margin-top: 2px;
|
|
1158 |
margin-top: 1px;
|
|
1159 | 1159 |
} |
1160 | 1160 |
|
1161 | 1161 |
.meta-modal button.edit { |
... | ... | |
1169 | 1169 |
margin: 33px 44px 0 0; |
1170 | 1170 |
} |
1171 | 1171 |
|
1172 |
.meta-modal input { |
|
1173 |
font-size: 80%; |
|
1174 |
font-style: italic; |
|
1175 |
text-align: right; |
|
1176 |
color: #ccc; |
|
1177 |
} |
|
1178 |
|
|
1179 |
.meta-modal input.key { |
|
1180 |
width: 279px; |
|
1181 |
margin-bottom: -3px; |
|
1182 |
} |
|
1183 |
|
|
1184 |
.meta-modal input.value { |
|
1185 |
width: 267px; |
|
1186 |
height: 170px; |
|
1187 |
overflow: auto; |
|
1188 |
} |
|
1189 |
|
|
1190 |
.meta-modal label.meta-value { |
|
1191 |
vertical-align: top; |
|
1192 |
} |
|
1193 |
|
|
1194 |
.meta-modal button.save { |
|
1195 |
margin-top: 32px; |
|
1196 |
} |
|
1197 |
|
|
1198 |
.meta-modal button.cancel { |
|
1199 |
float: left; |
|
1200 |
margin: 32px 0 0 25px; |
|
1201 |
background-color: #d35f5f; |
|
1202 |
border-color: #d35f5f; |
|
1203 |
} |
|
1204 |
|
|
1205 |
|
|
1172 | 1206 |
/* notification box */ |
1173 | 1207 |
#error-success, #yes-no { |
1174 | 1208 |
height: 150px; |
b/ui/templates/machines.html | ||
---|---|---|
214 | 214 |
<hr class="meta-separator"> |
215 | 215 |
<label class="meta-value">{% trans "Value:" %}</label> |
216 | 216 |
<input type="text" maxlength="150" class="value" value="max 150 characters"/> |
217 |
<button type="button" class="cancel">{% trans "Cancel" %}</button> |
|
218 |
<button type="button" class="save">{% trans "Save" %}</button> |
|
219 | 217 |
</div> |
218 |
<button type="button" class="cancel">{% trans "Cancel" %}</button> |
|
219 |
<button type="button" class="save">{% trans "Save" %}</button> |
|
220 | 220 |
<div class="bottomruler" /> |
221 | 221 |
</div> |
222 | 222 |
|
b/ui/templates/standard.html | ||
---|---|---|
28 | 28 |
</a> |
29 | 29 |
<h5 class="settings"> |
30 | 30 |
{% trans "Show:" %} |
31 |
<a href="#">{% trans "disks" %}</a> | |
|
32 |
<a href="#">{% trans "networks" %}</a> | |
|
33 |
<a href="#">{% trans "group" %}</a> | |
|
31 |
<a class="show-disks"href="#">{% trans "disks" %}</a> |
|
|
32 |
<a class="show-networks"href="#">{% trans "networks" %}</a> |
|
|
33 |
<a class="show-group"href="#">{% trans "group" %}</a> |
|
|
34 | 34 |
<a class="show-metadata" href="#">{% trans "metadata" %}</a> |
35 | 35 |
</h5> |
36 | 36 |
<div class="confirm_single"> |
... | ... | |
66 | 66 |
top: 'center', |
67 | 67 |
closeOnClick: false, |
68 | 68 |
oneInstance: false, |
69 |
load: false, |
|
70 |
onClose: function(){ |
|
71 |
// With partial refresh working properly, |
|
72 |
// it is no longer necessary to refresh the whole page |
|
73 |
// choose_view(); |
|
74 |
} |
|
69 |
load: false |
|
75 | 70 |
}); |
76 | 71 |
$("a#meta-editor-1").data('overlay').load(); |
77 | 72 |
return false; |
78 | 73 |
}); |
79 | 74 |
|
75 |
// intercept create new metadata entry click |
|
76 |
$("a.show-group").live('click', function() { |
|
77 |
// get server name and server ID |
|
78 |
var serverID = $(this).parent().parent().attr("id"); |
|
79 |
var serverName = $(this).parent().prevAll("a.name").find("span.name").text(); |
|
80 |
// set server name in box's title |
|
81 |
$("a#meta-editor-2 h3").text(serverName); |
|
82 |
var triggers = $("a#meta-editor-2").overlay({ |
|
83 |
// some mask tweaks suitable for modal dialogs |
|
84 |
mask: '#000', |
|
85 |
effect: 'default', |
|
86 |
top: 'center', |
|
87 |
closeOnClick: false, |
|
88 |
oneInstance: false, |
|
89 |
load: false |
|
90 |
}); |
|
91 |
$("a#meta-editor-2").data('overlay').load(); |
|
92 |
return false; |
|
93 |
}); |
|
94 |
|
|
80 | 95 |
// intercept reboot click |
81 | 96 |
$("div.actions a.action-reboot").live('click', function(){ |
82 | 97 |
var serverID = $(this).parent().parent().attr("id"); |
Also available in: Unified diff