virtualNetworkSection.tpl 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {**********************************************************************
  2. * ProxmoxCloudVps product developed. (2017-10-06)
  3. * *
  4. *
  5. * CREATED BY MODULESGARDEN -> http://modulesgarden.com
  6. * CONTACT -> contact@modulesgarden.com
  7. *
  8. *
  9. * This software is furnished under a license and may be used and copied
  10. * only in accordance with the terms of such license and with the
  11. * inclusion of the above copyright notice. This software or any other
  12. * copies thereof may not be provided or otherwise made available to any
  13. * other person. No title to and ownership of the software is hereby
  14. * transferred.
  15. *
  16. *
  17. **********************************************************************}
  18. {**
  19. * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
  20. *}
  21. <div class="lu-widget">
  22. <div class="lu-widget__body">
  23. {if $rawObject->isShowTitle() && (($rawObject->getRawTitle() || $rawObject->getTitle()) && $rawObject->isViewHeader())}
  24. <div class="lu-widget__header">
  25. <div class="lu-widget__top lu-top">
  26. <div class="lu-top__title">
  27. {if $rawObject->getIcon()}<i class="{$rawObject->getIcon()}"></i>{/if}
  28. {if $rawObject->isRawTitle()}{$rawObject->getRawTitle()}{elseif $rawObject->getTitle()}{$MGLANG->T($rawObject->getTitle())}{/if}
  29. </div>
  30. <div class="lu-top__toolbar"><a href="#" id="pm-add-new-virtual-network-button" data-toggle="lu-tooltip" class="lu-btn lu-btn--primary" data-title="{$MGLANG->T('Add New Virtual Network')}">
  31. <i class="lu-zmdi lu-zmdi-plus"></i>
  32. <span class="lu-btn__text">{$MGLANG->T('Add New Virtual Network')}</span>
  33. </a></div>
  34. </div>
  35. </div>
  36. {/if}
  37. <div class="lu-widget__content lu-p-1x">
  38. <div class="lu-alert lu-alert--outline lu-alert--icon lu-alert--info lu-alert--bordered lu-m-b-0x lu-alert--dismiss mg-message">
  39. <div class="lu-alert__body">
  40. {$MGLANG->T('additional_ip_add_info')}
  41. </div>
  42. </div>
  43. <div class="lu-widget hidden pm-virtual-network-content-default" >
  44. <div class="lu-widget__body">
  45. <div class="lu-widget__header">
  46. <div class="lu-widget__top lu-top">
  47. <div class="lu-top__title">
  48. {$MGLANG->T('Virtual Network')}
  49. </div>
  50. <div class="lu-top__toolbar">
  51. <a href="#"
  52. class="lu-btn lu-btn--xs lu-btn--default lu-btn--icon lu-btn--link lu-btn--plain pm-delete-virtual-network-button">
  53. <i class="lu-btn__icon lu-zmdi lu-zmdi-close"></i>
  54. </a>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="lu-widget__content lu-row">
  59. <div class="lu-form-group lu-col-md-6">
  60. <label class="lu-form-label">{$MGLANG->T('Select Virtual Network')}</label>
  61. <select name="virtualNetwork[id]" class="lu-form-control pm-vn-select">
  62. {foreach from=$customTplVars.virtualNetwork key=opValue item=option}
  63. <option value="{$opValue}">{$option}</option>
  64. {/foreach}
  65. </select>
  66. </div>
  67. <div class="lu-form-group lu-col-md-6">
  68. <label class="lu-form-label">{$MGLANG->T('Select IP Address')}</label>
  69. <select name="virtualNetwork[ip]" class="lu-form-control pm-vn-ip-select">
  70. {foreach from=$customTplVars.ips key=opValue item=option}
  71. <option class="vn-ip-{$option.networkId}" {if $option.networkId!="public"}style="display: none;"{/if} {if $option.ip == $customTplVars.ipSelected}selected{/if} value="{$option.ip}">{$option.ip}</option>
  72. {/foreach}
  73. </select>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>