detailModal.tpl 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {**********************************************************************
  2. * ProxmoxAddon product developed. (2017-11-16)
  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-modal show lu-modal--{$rawObject->getModalSize()}" id="confirmationModal"
  22. namespace="{$rawObject->getNamespace()}" index="{$rawObject->getId()}">
  23. <div class="lu-modal__dialog">
  24. <div class="lu-modal__content" id="mgModalContainer">
  25. <div class="lu-modal__top lu-top">
  26. <div class="lu-top__title lu-type-6">
  27. <span class="lu-text-faded lu-font-weight-normal">
  28. {if $rawObject->isRawTitle()}{$rawObject->getRawTitle()}{elseif $rawObject->getTitle()}{$MGLANG->T('modal', $rawObject->getTitle())}{/if}
  29. </span>
  30. </div>
  31. <div class="lu-top__toolbar">
  32. <button class="lu-btn lu-btn--xs lu-btn--default lu-btn--icon lu-btn--link lu-btn--plain closeModal"
  33. data-dismiss="lu-modal" aria-label="Close" @click='closeModal($event)'>
  34. <i class="lu-btn__icon lu-zmdi lu-zmdi-close"></i>
  35. </button>
  36. </div>
  37. </div>
  38. <div class="lu-modal__body">
  39. <div class="lu-row">
  40. <div class="lu-col-md-12">
  41. <table class="lu-table lu-table-hover">
  42. <thead>
  43. <tr>
  44. <th>{$MGLANG->T('modal','Node')}</th>
  45. <th>{$MGLANG->T('modal','VMID')}</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. {foreach from=$customTplVars.vms item=vm}
  50. <tr>
  51. <td>{$vm->node}</td>
  52. <td>{$vm->vmid} </td>
  53. </tr>
  54. {foreachelse}
  55. <tr>
  56. <td colspan="2"
  57. style="text-align: center;">{$MGLANG->T('modal','Virtual Server Not Available')}</td>
  58. </tr>
  59. {/foreach}
  60. </tbody>
  61. </table>
  62. {foreach from=$rawObject->getForms() item=form }
  63. {$form->getHtml()}
  64. {/foreach}
  65. </div>
  66. </div>
  67. </div>
  68. <div class="lu-modal__actions">
  69. {foreach from=$rawObject->getActionButtons() item=actionButton}
  70. {$actionButton->getHtml()}
  71. {/foreach}
  72. </div>
  73. {if ($isDebug eq true AND (count($MGLANG->getMissingLangs()) != 0))}{literal}
  74. <div class="lu-modal__actions">
  75. <div class="lu-row">
  76. {/literal}{foreach from=$MGLANG->getMissingLangs() key=varible item=value}{literal}
  77. <div class="lu-col-md-12"><b>{/literal}{$varible}{literal}</b> = '{/literal}{$value}{literal}';</div>
  78. {/literal}{/foreach}{literal}
  79. </div>
  80. </div>
  81. {/literal}{/if}
  82. </div>
  83. </div>
  84. </div>