:n 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {**********************************************************************
  2. * KerioEmail product developed. (2017-11-16)
  3. * *
  4. *
  5. * CREATED BY THURDATA -> http://thurdata.com
  6. * CONTACT -> contact@thurdata.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. * @autor ThurData <info@thurdata.ch>
  20. *}
  21. <div class="lu-modal show lu-modal--{$rawObject->getModalSize()}" id="confirmationModal" namespace="{$rawObject->getNamespace()}" index="{$rawObject->getId()}">
  22. <div class="lu-modal__dialog">
  23. <div class="lu-modal__content" id="mgModalContainer">
  24. <div class="lu-modal__top lu-top">
  25. <div class="lu-top__title lu-type-6">
  26. <span class="lu-text-faded lu-font-weight-normal">
  27. {if $rawObject->isRawTitle()}{$rawObject->getRawTitle()}{elseif $rawObject->getTitle()}{$MGLANG->T('modal', $rawObject->getTitle())}{/if}
  28. </span>
  29. </div>
  30. <div class="lu-top__toolbar">
  31. <button class="lu-btn lu-btn--xs lu-btn--default lu-btn--icon lu-btn--link lu-btn--plain closeModal" data-dismiss="lu-modal" aria-label="Close" @click='closeModal($event)'>
  32. <i class="lu-btn__icon lu-zmdi lu-zmdi-close"></i>
  33. </button>
  34. </div>
  35. </div>
  36. {assign var="editForms" value=$rawObject->getForms()}
  37. {assign var="editForm" value=$editForms|array_pop}
  38. <div class="lu-modal__nav">
  39. <ul class="lu-nav lu-nav--md lu-nav--h lu-nav--tabs">
  40. {assign var="sectArrKeys" value=$editForm->getSections()|array_keys}
  41. {foreach from=$editForm->getSections() key=sectionID item=section }
  42. <li class="lu-nav__item {if $sectArrKeys[0] == $sectionID}is-active{/if}">
  43. <a class="lu-nav__link" data-toggle="lu-tab" href="#modalTab{$sectionID}">
  44. <span class="lu-nav__link-text">{$section->getName()}</span>
  45. </a>
  46. </li>
  47. {/foreach}
  48. </ul>
  49. </div>
  50. <div class="lu-modal__body">
  51. {if $editForm->haveInternalAlertMessage()}
  52. <div class="lu-alert {if $editForm->getInternalAlertSize() !== ''}lu-alert--{$editForm->getInternalAlertSize()}{/if} lu-alert--{$editForm->getInternalAlertMessageType()} lu-alert--faded modal-alert-top">
  53. <div class="lu-alert__body">
  54. {if $editForm->isInternalAlertMessageRaw()|unescape:'html'}{$editForm->getInternalAlertMessage()}{else}{$MGLANG->T($editForm->getInternalAlertMessage())|unescape:'html'}{/if}
  55. </div>
  56. </div>
  57. {/if}
  58. {if $editForm->getConfirmMessage()}
  59. {if $editForm->isTranslateConfirmMessage()}
  60. {$MGLANG->T($editForm->getConfirmMessage())|unescape:'html'}
  61. {else}
  62. {$editForm->getConfirmMessage()|unescape:'html'}
  63. {/if}
  64. {/if}
  65. <form id="{$editForm->getId()}" namespace="{$editForm->getNamespace()}" index="{$editForm->getId()}" mgformtype="{$editForm->getFormType()}">
  66. {foreach from=$editForm->getFields() item=field }
  67. {$field->getHtml()}
  68. {/foreach}
  69. <div class="lu-tab-content">
  70. {assign var="sectArrKeys" value=$editForm->getSections()|array_keys}
  71. {foreach from=$editForm->getSections() key=sectionID item=section }
  72. <div class="lu-tab-pane {if $sectArrKeys[0] == $sectionID}is-active{/if}" id="modalTab{$sectionID}">
  73. <div class="lu-list-group lu-list-group--simple lu-list-group--p-h-0x list-group--collapse lu-m-b-0x">
  74. <div class="lu-row">
  75. {$section->getHtml()}
  76. </div>
  77. </div>
  78. </div>
  79. {/foreach}
  80. </div>
  81. </form>
  82. </div>
  83. <div class="lu-modal__actions">
  84. {foreach from=$rawObject->getActionButtons() item=actionButton}
  85. {$actionButton->getHtml()}
  86. {/foreach}
  87. </div>
  88. {if ($isDebug eq true AND (count($MGLANG->getMissingLangs()) != 0))}{literal}
  89. <div class="lu-modal__actions">
  90. <div class="lu-row">
  91. {/literal}{foreach from=$MGLANG->getMissingLangs() key=varible item=value}{literal}
  92. <div class="lu-col-md-12"><b>{/literal}{$varible}{literal}</b> = '{/literal}{$value}{literal}';</div>
  93. {/literal}{/foreach}{literal}
  94. </div>
  95. </div>
  96. {/literal}{/if}
  97. </div>
  98. </div>
  99. </div>