FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

UI: VM wizard: Add specify IP field to new network area · kwanggithub/cloudstack@ecdd0e1 · GitHub

This repository was archived by the owner on Jan 15, 2020. It is now read-only.
/ cloudstack Public archive
forked from apache/cloudstack

Commit ecdd0e1

Browse files
committed
UI: VM wizard: Add specify IP field to new network area
1 parent 4dad376 commit ecdd0e1

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

‎ui/css/cloudstack3.css‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6206,6 +6206,24 @@ label.error {
62066206
.multi-wizard.instance-wizard .select-network .select.new-network {
62076207
}
62086208

6209+
.multi-wizard.instance-wizard .select-network .select.new-network .advanced-options {
6210+
/*+placement:shift 379px 15px;*/
6211+
position: relative;
6212+
left: 379px;
6213+
top: 15px;
6214+
position: absolute;
6215+
}
6216+
6217+
.multi-wizard.instance-wizard .select-network .select.new-network .select.advanced {
6218+
height: 106px;
6219+
position: relative;
6220+
}
6221+
6222+
.multi-wizard.instance-wizard .select-network .select.new-network .select.advanced .specify-ip {
6223+
top: 74px;
6224+
left: 29px;
6225+
}
6226+
62096227
.multi-wizard.instance-wizard .select-network .select.new-network .hide-if-selected {
62106228
display: none;
62116229
}

‎ui/scripts/ui-custom/instanceWizard.js‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
$input.val() : null
5858
);
5959
});
60+
data['new-network-ip'] = $form.find('.new-network .select.advanced .specify-ip input[type=text]').val();
6061

6162
args.action({
6263
// Populate data
@@ -784,14 +785,19 @@
784785
);
785786

786787
// Add IP/advanced option fields
787-
$step.find('.my-networks .select-container .select').each(function () {
788+
$step.find('.my-networks .select-container .select, .select.new-network .select').each(function () {
788789
var $select = $(this);
789-
var $advancedLink = $('<div>').addClass('advanced-options');
790+
var $advancedLink = $('<div>').addClass('advanced-options hide-if-unselected');
790791
var $specifyIpField = $('<div>').addClass('specify-ip').append(
791792
$('<label>').html(_l('label.ip.address')),
792793
$('<input>').attr({ type: 'text' })
793794
);
794795

796+
// Cleanup
797+
if ($select.closest('.new-network').size()) {
798+
$select.find('.advanced-options, .specify-ip').remove();
799+
}
800+
795801
$select.append($advancedLink, $specifyIpField);
796802
$advancedLink.click(function() {
797803
$select.toggleClass('advanced');

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL