edit.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <style>
  2. body.is-dialog .content {
  3. padding: 12px 14px 0;
  4. height: 100%;
  5. box-sizing: border-box;
  6. overflow: hidden;
  7. }
  8. .procuremen-sms-edit-wrap {
  9. display: flex;
  10. flex-direction: column;
  11. height: 100%;
  12. min-height: 460px;
  13. overflow: hidden;
  14. }
  15. .procuremen-sms-edit-layout {
  16. display: flex;
  17. align-items: stretch;
  18. flex: 1 1 auto;
  19. min-height: 0;
  20. overflow: hidden;
  21. }
  22. .procuremen-sms-edit-left {
  23. flex: 1 1 58%;
  24. min-width: 0;
  25. overflow-x: hidden;
  26. overflow-y: auto;
  27. padding-right: 14px;
  28. }
  29. .procuremen-sms-edit-right {
  30. flex: 0 0 38%;
  31. max-width: 360px;
  32. min-width: 220px;
  33. border-left: 1px solid #e8e8e8;
  34. padding-left: 14px;
  35. overflow-x: hidden;
  36. overflow-y: auto;
  37. background: #fafbfc;
  38. }
  39. .procuremen-sms-edit-right .var-guide-title {
  40. margin: 0 0 10px;
  41. font-weight: 600;
  42. font-size: 14px;
  43. color: #333;
  44. line-height: 1.5;
  45. }
  46. .procuremen-sms-edit-right .var-guide-table {
  47. margin: 0;
  48. background: #fff;
  49. font-size: 13px;
  50. table-layout: fixed;
  51. width: 100%;
  52. }
  53. .procuremen-sms-edit-right .var-guide-table code {
  54. color: #c7254e;
  55. cursor: pointer;
  56. user-select: all;
  57. word-break: break-all;
  58. }
  59. #edit-form {
  60. width: 100%;
  61. max-width: 100%;
  62. }
  63. #edit-form .sms-edit-field {
  64. margin-bottom: 14px;
  65. }
  66. #edit-form .sms-edit-field > label {
  67. display: block;
  68. margin-bottom: 6px;
  69. font-weight: normal;
  70. color: #333;
  71. }
  72. #edit-form .sms-edit-field textarea.form-control {
  73. min-height: 160px;
  74. resize: vertical;
  75. }
  76. #edit-form .form-group.layer-footer {
  77. display: none;
  78. }
  79. </style>
  80. <form id="edit-form" class="procuremen-sms-edit-wrap" role="form" data-toggle="validator" method="POST" action="">
  81. <input type="hidden" name="row[scene]" value="{$row.scene|htmlentities}">
  82. <div class="procuremen-sms-edit-layout">
  83. <div class="procuremen-sms-edit-left">
  84. <div class="sms-edit-field">
  85. <label>模版名称:</label>
  86. <input class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}" data-rule="required">
  87. </div>
  88. <div class="sms-edit-field">
  89. <label>{if $isEmailScene}邮箱正文{else /}短信正文{/if}:</label>
  90. <textarea id="sms-template-content" class="form-control" name="row[content]" rows="8" data-rule="required">{$row.content|htmlentities}</textarea>
  91. </div>
  92. <div class="sms-edit-field">
  93. <label>备注:</label>
  94. <input class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
  95. </div>
  96. </div>
  97. <aside class="procuremen-sms-edit-right">
  98. <p class="var-guide-title">模版变量<br><span style="font-weight:400;font-size:12px;color:#666;">复制或点击左侧变量名插入到正文(四个场景说明相同,改 model 一处即可)</span></p>
  99. <table class="table table-bordered table-condensed var-guide-table">
  100. <thead>
  101. <tr style="background:#f5f5f5;">
  102. <th style="width:42%;">变量</th>
  103. <th>说明</th>
  104. </tr>
  105. </thead>
  106. <tbody>
  107. {volist name="smsVarGuide" id="vg"}
  108. <tr>
  109. <td><code class="sms-var-tag" data-tag="{$vg.tag|htmlentities}" title="点击插入">{$vg.tag|htmlentities}</code></td>
  110. <td>{$vg.label|htmlentities}</td>
  111. </tr>
  112. {/volist}
  113. </tbody>
  114. </table>
  115. </aside>
  116. </div>
  117. <div class="form-group layer-footer">
  118. <div class="row procuremen-sms-footer-row">
  119. <div class="col-xs-12 procuremen-sms-footer-btns">
  120. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  121. <button type="button" class="btn btn-default btn-embossed btn-procuremen-sms-close">关闭</button>
  122. </div>
  123. </div>
  124. </div>
  125. </form>