Issue #: 5894

Create Template from Snapshot dialog - add password dropdown field
This commit is contained in:
Jessica Wang 2010-08-17 15:35:10 -07:00
parent 0801da0a0f
commit 649ff9c641
2 changed files with 11 additions and 3 deletions

View File

@ -1493,7 +1493,14 @@
<label>OS Type:</label>
<select class="select" id="os_type">
</select>
</li>
</li>
<li>
<label>Password Enabled?:</label>
<select class="select" id="password">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
</li>
</ol>
</form>
</div>

View File

@ -542,7 +542,8 @@ function showStorageTab(domainId, targetTab) {
var name = thisDialog.find("#name").val();
var displayText = thisDialog.find("#display_text").val();
var osTypeId = thisDialog.find("#os_type").val();
var osTypeId = thisDialog.find("#os_type").val();
var password = thisDialog.find("#password").val();
thisDialog.dialog("close");
var loadingImg = template.find(".adding_loading");
@ -552,7 +553,7 @@ function showStorageTab(domainId, targetTab) {
rowContainer.hide();
$.ajax({
data: "command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&response=json",
data: "command=createTemplate&snapshotid="+snapshotId+"&name="+name+"&displaytext="+displayText+"&ostypeid="+osTypeId+"&passwordEnabled="+password+"&response=json",
dataType: "json",
success: function(json) {
var jobId = json.createtemplateresponse.jobid;