12345678910111213141516171819202122232425262728293031 |
- <form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
- <div class="layui-card-body">
- <div class="layui-form-item">
- <label class="layui-col-xs2 think-form-label">名称</label>
- <label class="layui-col-xs10">
- <input name="title" required value='{$vo.title|default=""}' placeholder="请输入名称" class="layui-input">
- </label>
- </div>
- <div class="layui-row margin-bottom-15">
- <label class="layui-col-xs2 think-form-label">模板</label>
- <label class="layui-col-xs8 think-form-group-left">
- <input name="url" required readonly value='{$vo.url|default=""}' placeholder="请上传模板" class="layui-input">
- </label>
- <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="url" data-type="xls,xlsx">
- <i class="layui-icon layui-icon-upload"></i> 上传模板
- </a>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="layui-form-item text-center">
- {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}
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
- <button class="layui-btn" type='submit'>保存数据</button>
- </div>
- </form>
- <script>window.form.render();
- </script>
|