form.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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-col-xs2 think-form-label">模板1</label>
  5. <label class="layui-col-xs8 think-form-group-left">
  6. <input name="url1" required readonly value='{$vo.url|default=""}' placeholder="请上传模板" class="layui-input">
  7. </label>
  8. <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="url" data-type="xls,xlsx">
  9. <i class="layui-icon layui-icon-upload"></i> 上传模板
  10. </a>
  11. </div>
  12. <div class="layui-row margin-bottom-15">
  13. <label class="layui-col-xs2 think-form-label">模板2</label>
  14. <label class="layui-col-xs8 think-form-group-left">
  15. <input name="url2" required readonly value='{$vo.url|default=""}' placeholder="请上传模板" class="layui-input">
  16. </label>
  17. <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="url" data-type="xls,xlsx">
  18. <i class="layui-icon layui-icon-upload"></i> 上传模板
  19. </a>
  20. </div>
  21. </div>
  22. <div class="hr-line-dashed"></div>
  23. <div class="layui-form-item text-center">
  24. {if isset($vo.id)}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>{else}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='create_at'>{/if}
  25. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  26. <button class="layui-btn" type='submit'>保存数据</button>
  27. </div>
  28. </form>
  29. <script>window.form.render();
  30. </script>