infoModal.tpl 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. <div class="lu-modal show lu-modal--{$rawObject->getModalSize()}" id="confirmationModal"
  19. namespace="{$rawObject->getNamespace()}" index="{$rawObject->getId()}">
  20. <div class="lu-modal__dialog">
  21. <div class="lu-modal__content" id="mgModalContainer">
  22. <div class="lu-modal__top lu-top">
  23. <div class="lu-top__title lu-type-6">
  24. <span class="lu-text-faded lu-font-weight-normal">
  25. {if $rawObject->isRawTitle()}{$rawObject->getRawTitle()}{elseif $rawObject->getTitle()}{$MGLANG->T('modal', $rawObject->getTitle())}{/if}
  26. </span>
  27. </div>
  28. <div class="lu-top__toolbar">
  29. <button class="lu-btn lu-btn--xs lu-btn--default lu-btn--icon lu-btn--link lu-btn--plain closeModal"
  30. data-dismiss="lu-modal" aria-label="Close" @click='closeModal($event)'>
  31. <i class="lu-btn__icon lu-zmdi lu-zmdi-close"></i>
  32. </button>
  33. </div>
  34. </div>
  35. <div class="lu-modal__nav">
  36. <ul class="lu-nav lu-nav--md lu-nav--h lu-nav--tabs">
  37. <li class="lu-nav__item is-active">
  38. <a class="lu-nav__link" data-toggle="lu-tab" href="#modalTabJob">
  39. <span class="lu-nav__link-text">{$MGLANG->T('Info')}</span>
  40. </a>
  41. </li>
  42. <li class="lu-nav__item">
  43. <a class="lu-nav__link" data-toggle="lu-tab" href="#modalTabLogs">
  44. <span class="lu-nav__link-text">{$MGLANG->T('Logs')}</span>
  45. </a>
  46. </li>
  47. </ul>
  48. </div>
  49. <div class="lu-modal__body">
  50. <div class="lu-tab-content">
  51. <div class="lu-tab-pane is-active" id="modalTabJob">
  52. <div class="lu-list-group lu-list-group--simple lu-list-group--p-h-0x list-group--collapse lu-m-b-0x">
  53. <div class="lu-row">
  54. <div class="lu-col-md-12">
  55. <ul class="lu-list lu-list--info">
  56. <li class="lu-list__item">
  57. <span class="lu-list__item-title">{$MGLANG->T('Job')} </span>
  58. <span class="lu-list__value">{$MGLANG->T($customTplVars.job.job)}</span>
  59. </li>
  60. <li class="lu-list__item">
  61. <span class="lu-list__item-title">{$MGLANG->T('Status')} </span>
  62. <span class="lu-list__value">{$customTplVars.status}</span>
  63. </li>
  64. {if $customTplVars.job.rel_type == "hosting" && $customTplVars.job.rel_id}
  65. <li class="lu-list__item">
  66. <span class="lu-list__item-title">{$MGLANG->T('Product/Service')} </span>
  67. <span class="lu-list__value"><a
  68. href="clientsservices.php?id={$customTplVars.job.rel_id}">#{$customTplVars.job.rel_id} {$customTplVars.productName}</a></span>
  69. </li>
  70. {/if}
  71. {if $customTplVars.data.softpath}
  72. <li class="lu-list__item">
  73. <span class="lu-list__item-title">{$MGLANG->T('Installation Directory')} </span>
  74. <span class="lu-list__value">{$customTplVars.data.softpath}</span>
  75. </li>
  76. {/if}
  77. </ul>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="lu-tab-pane" id="modalTabLogs">
  83. <div class="lu-list-group lu-list-group--simple lu-list-group--p-h-0x list-group--collapse lu-m-b-0x">
  84. <div class="lu-row">
  85. <div class="lu-col-md-12" style="overflow: auto; height: 430px;">
  86. {if !$customTplVars.jobLogs}
  87. <span>{$MGLANG->T('Job Logs not available.')}</span>
  88. {else}
  89. <table class="lu-table lu-table-hover">
  90. <thead>
  91. <tr>
  92. <th> {$MGLANG->T('Message')}</th>
  93. <th> {$MGLANG->T('Status')}</th>
  94. <th> {$MGLANG->T('Created')}</th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. {foreach from=$customTplVars.jobLogs item=jobLog}
  99. <tr>
  100. <td>{$jobLog.message}</td>
  101. <td>{$jobLog.status} </td>
  102. <td>{$jobLog.created_at} </td>
  103. </tr>
  104. {foreachelse}
  105. <tr>
  106. <td colspan="2">{$MGLANG->T('Job Logs not available.')}</td>
  107. </tr>
  108. {/foreach}
  109. </tbody>
  110. </table>
  111. {/if}
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. <div class="lu-modal__actions">
  119. {foreach from=$rawObject->getActionButtons() item=actionButton}
  120. {$actionButton->getHtml()}
  121. {/foreach}
  122. </div>
  123. {if ($isDebug eq true AND (count($MGLANG->getMissingLangs()) != 0))}{literal}
  124. <div class="lu-modal__actions">
  125. <div class="lu-row">
  126. {/literal}{foreach from=$MGLANG->getMissingLangs() key=varible item=value}{literal}
  127. <div class="lu-col-md-12"><b>{/literal}{$varible}{literal}</b> = '{/literal}{$value}{literal}';</div>
  128. {/literal}{/foreach}{literal}
  129. </div>
  130. </div>
  131. {/literal}{/if}
  132. </div>
  133. </div>
  134. </div