virtualNetworkSection.tpl 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 lu-p-1x">
  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. {if !$customTplVars.virtualInterfaces}
  39. <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">
  40. <div class="lu-alert__body">
  41. {$MGLANG->T('additional_ip_add_info')}
  42. </div>
  43. </div>
  44. {/if}
  45. <div class="lu-widget hidden pm-virtual-network-content-default" >
  46. <div class="lu-widget__body">
  47. <div class="lu-widget__header">
  48. <div class="lu-widget__top lu-top">
  49. <div class="lu-top__title">
  50. {$MGLANG->T('Virtual Network')}
  51. </div>
  52. <div class="lu-top__toolbar">
  53. <a href="#"
  54. class="lu-btn lu-btn--xs lu-btn--default lu-btn--icon lu-btn--link lu-btn--plain pm-delete-virtual-network-button">
  55. <i class="lu-btn__icon lu-zmdi lu-zmdi-close"></i>
  56. </a>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="lu-widget__content lu-row">
  61. <div class="lu-form-group lu-col-md-6">
  62. <label class="lu-form-label">{$MGLANG->T('Select Virtual Network')}</label>
  63. <select name="virtualNetwork[id]" class="lu-form-control pm-vn-select">
  64. {foreach from=$customTplVars.virtualNetwork key=opValue item=option}
  65. <option value="{$opValue}">{$option}</option>
  66. {/foreach}
  67. </select>
  68. </div>
  69. <div class="lu-form-group lu-col-md-6">
  70. <label class="lu-form-label">{$MGLANG->T('Select IP Address')}</label>
  71. <select name="virtualNetwork[ip]" class="lu-form-control pm-vn-ip-select">
  72. {foreach from=$customTplVars.ips key=opValue item=option}
  73. <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>
  74. {/foreach}
  75. </select>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. {foreach from=$customTplVars.virtualInterfaces key=keyIndex item=virtualInterface}
  81. <div class="lu-widget" >
  82. <div class="lu-widget__body">
  83. <div class="lu-widget__header">
  84. <div class="lu-widget__top lu-top">
  85. <div class="lu-top__title">
  86. {$MGLANG->T('Virtual Network')}
  87. </div>
  88. <div class="lu-top__toolbar">
  89. <a href="#"
  90. class="lu-btn lu-btn--xs lu-btn--default lu-btn--icon lu-btn--link lu-btn--plain pm-delete-virtual-network-button">
  91. <i class="lu-btn__icon lu-zmdi lu-zmdi-close"></i>
  92. </a>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="lu-widget__content lu-row">
  97. <div class="lu-form-group lu-col-md-6">
  98. <label class="lu-form-label">{$MGLANG->T('Select Virtual Network')}</label>
  99. <input type="hidden" name="virtualInterface{$keyIndex}[id]" value="{$virtualInterface.id}">
  100. <select name="virtualInterface{$keyIndex}[vn_id]" class="lu-form-control pm-vn-select">
  101. {foreach from=$customTplVars.virtualNetwork key=opValue item=option}
  102. {if $virtualInterface.vn_id==$opValue }
  103. <option value="{$opValue}" selected>{$option}</option>
  104. {/if}
  105. {/foreach}
  106. </select>
  107. </div>
  108. <div class="lu-form-group lu-col-md-6">
  109. <label class="lu-form-label">{$MGLANG->T('Select IP Address')}</label>
  110. <select name="virtualInterface{$keyIndex}[ip]" class="lu-form-control pm-vn-ip-select">
  111. <option class="vn-ip-{$virtualInterface.vn_id}"
  112. {if $option.ip == $customTplVars.ipSelected}selected{/if} value="{$virtualInterface.ip}">{$virtualInterface.ip}</option>
  113. </select>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. {/foreach}
  119. </div>
  120. </div>
  121. </div>