form.html 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
  2. <div class="layui-card-body">
  3. <div class="layui-row margin-bottom-15">
  4. <label class="layui-form-label label-required">版本號</label>
  5. <div class="layui-input-block">
  6. <input name="title" required value='{$vo.title|default=""}' placeholder="請輸入版本號" class="layui-input">
  7. </div>
  8. </div>
  9. <div class="layui-row margin-bottom-15">
  10. <label class="layui-form-label label-required">修改內容</label>
  11. <div class="layui-input-block">
  12. <textarea name="content">{$vo.content|default=''|raw}</textarea>
  13. </div>
  14. </div>
  15. </div>
  16. <div class="hr-line-dashed"></div>
  17. <div class="layui-form-item text-center">
  18. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  19. <button class="layui-btn" type='submit'>保存數據</button>
  20. <button class="layui-btn layui-btn-danger" type='button' data-confirm="確定要取消編輯嗎?" data-close>取消編輯</button>
  21. </div>
  22. <script>
  23. window.form.render();
  24. require(['ckeditor', 'angular'], function () {
  25. window.createEditor('[name="content"]', {height: 260});
  26. })
  27. </script>
  28. </form>