You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!--
  2. Advanced panes for clone virtual machine wizard. Logic in vboxWizard()
  3. Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
  4. $Id: wizardCloneVMAdvanced.html 595 2015-04-17 09:50:36Z imoore76 $
  5. -->
  6. <!-- Step 1 -->
  7. <div id='wizardCloneVMStep1' style='display: none'>
  8. <span class='vboxTableLabel translate'>New machine name</span>
  9. <div class='vboxOptions' style='padding: 6px; padding-top: 8px;'>
  10. <input type='text' class='vboxText' name='machineCloneName' style='width: 95%' />
  11. </div>
  12. <table class='vboxInvisible' style='border: 0px solid transparent; border-spacing: 4px;'>
  13. <tr style='vertical-align: top'>
  14. <td>
  15. <span class='vboxTableLabel translate'>Clone type</span>
  16. <div class='vboxOptions'>
  17. <table style='margin-top: 8px'>
  18. <tr style='vertical-align: bottom;'>
  19. <td><label><input type='radio' class='vboxRadio' name='vboxCloneType' value='Full' onclick='vboxCloneVMUpdateSteps(this.value)' /> <span class='translate'>Full Clone</span></label></td>
  20. </tr>
  21. <tr style='vertical-align: bottom;'>
  22. <td><label><input type='radio' class='vboxRadio' checked='checked' name='vboxCloneType' value='Linked' onclick='vboxCloneVMUpdateSteps(this.value)' /> <span class='translate'>Linked Clone</span></label></td>
  23. </tr>
  24. </table>
  25. </div>
  26. </td>
  27. <td>
  28. <span class='vboxTableLabel translate'>Snapshots</span>
  29. <div class='vboxOptions'>
  30. <table style='margin-top: 8px' class='vboxWizardCloneVMSnapshotOpts'>
  31. <tr style='vertical-align: bottom;'>
  32. <td><label><input type='radio' class='vboxRadio' checked='checked' name='vmState' value='MachineState' /> <span class='translate'>Current machine state</span></label></td>
  33. </tr>
  34. <tr style='vertical-align: bottom; display:none;' id='vboxCloneCurrentAll'>
  35. <td><label><input type='radio' class='vboxRadio' name='vmState' value='MachineAndChildStates' /> <span class='translate'>Current snapshot tree branch</span></label></td>
  36. </tr>
  37. <tr style='vertical-align: bottom;'>
  38. <td><label><input type='radio' class='vboxRadio' name='vmState' value='AllStates' /> <span class='translate'>Everything</span></label></td>
  39. </tr>
  40. </table>
  41. </div>
  42. </td>
  43. </tr>
  44. </table>
  45. <p><label><input type='checkbox' class='vboxCheckbox' name='vboxCloneReinitNetwork' checked='checked' />
  46. <span class='translate'>Reinitialize the MAC address of all network cards</span></label>
  47. </p>
  48. </div>
  49. <script type='text/javascript'>
  50. $('#wizardCloneVMStep1').on('show',function(e,wiz){
  51. // Already initialized?
  52. if($('#wizardCloneVMStep1').data('init') || !wiz.args) return;
  53. $('#wizardCloneVMStep1').data('init',1);
  54. // Hold wizard
  55. $('#wizardCloneVMStep1').data('wiz',wiz);
  56. // Hold wizard original steps
  57. $('#wizardCloneVMStep1').data('wizSteps',wiz.steps);
  58. // Hide "new snapshot" message if we're cloning a snapshot
  59. if(wiz.args && wiz.args.snapshot)
  60. $('#vboxCloneVMNewSnap').hide();
  61. if((wiz.args.snapshot && wiz.args.snapshot.children && wiz.args.snapshot.children.length)) {
  62. $('#wizardCloneVMCurrentAll').show();
  63. $('#vboxCloneCurrentAll').show();
  64. }
  65. $(document.forms['frmwizardCloneVM'].elements.machineCloneName).focus();
  66. document.forms['frmwizardCloneVM'].elements.machineCloneName.value = trans('%1 Clone','UIWizardCloneVMPage1').replace('%1',wiz.args.vm.name);
  67. var inputBox = $('#wizardCloneVMStep1').find('input.vboxText').select();
  68. setTimeout(inputBox.focus.bind(inputBox),10);
  69. });
  70. function vboxCloneVMUpdateSteps(cval) {
  71. if(cval == 'Linked') {
  72. $('#wizardCloneVMStep1').find('table.vboxWizardCloneVMSnapshotOpts').find('tr').addClass('disabled').find('input').prop('disabled', true);
  73. } else {
  74. $('#wizardCloneVMStep1').find('table.vboxWizardCloneVMSnapshotOpts').find('tr').removeClass('disabled').find('input').prop('disabled', false);
  75. }
  76. }
  77. </script>