mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add the Userdata setting to the UI on VM creation step
This commit is contained in:
parent
76bb54b777
commit
068e508e3b
@ -352,6 +352,7 @@ label.add.system.service.offering=Add System Service Offering
|
||||
label.add.template=Add Template
|
||||
label.add.to.group=Add to group
|
||||
label.add.user=Add User
|
||||
label.add.userdata=Userdata
|
||||
label.add.vlan=Add VLAN
|
||||
label.add.vxlan=Add VXLAN
|
||||
label.add.VM.to.tier=Add VM to tier
|
||||
|
||||
10
ui/index.jsp
10
ui/index.jsp
@ -534,6 +534,16 @@
|
||||
<a href="6"><fmt:message key="label.edit"/></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- userdata -->
|
||||
<div class="select">
|
||||
<div class="select">
|
||||
<span><fmt:message key="label.add.userdata"/> (<fmt:message key="label.optional"/>)</span>
|
||||
</div>
|
||||
<div class="value">
|
||||
<textarea name="userdata" class="disallowSpecialCharacters"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -981,6 +981,13 @@
|
||||
hostid : g_hostid
|
||||
});
|
||||
}
|
||||
|
||||
var userdata = args.data.userdata;
|
||||
if (userdata != null && userdata.length > 0) {
|
||||
$.extend(deployVmData, {
|
||||
userdata : todb(btoa(userdata))
|
||||
});
|
||||
}
|
||||
|
||||
$(window).trigger('cloudStack.deployVirtualMachine', {
|
||||
deployVmData: deployVmData,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user