<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>

<body class="timo-layout-page">
<div class="layui-row layui-col-space20">
    <div class="layui-col-md4">
        <div class="layui-card build-card">
            <div class="layui-card-header timo-card-header">
                <span><i class="fa fa-bars"></i> 目录树</span>
                <button class="layui-btn layui-btn-primary layui-btn-sm build-generate">生成HTML</button>
            </div>
            <div class="layui-card-body layui-form timo-compile build-panel"></div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-card">
            <div class="layui-card-header timo-card-header">
                <span><i class="fa fa-bars"></i> 上传文件</span>
            </div>
            <div class="layui-card-body">
                <div class="layui-form timo-compile element-panel">
                    <div class="layui-form-item">
                        <label class="layui-form-label">选择 Channel</label>
                        <div class="layui-input-inline">
                            <select name="interest" lay-filter="aihao">
                                <option value=""></option>
                                <option value="0">写作</option>
                                <option value="1">阅读</option>
                                <option value="2">游戏</option>
                                <option value="3">音乐</option>
                                <option value="4">旅行</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">上传文件</label>
                        <div class="layui-input-inline">
                            <button type="button" class="layui-btn upload-file" name="files[]"
                                    th:attr="up-url=@{/store/object/upload}" up-field="path">
                                <i class="layui-icon">&#xe67c;</i>上传图片
                            </button>
                        </div>
                        <div class="upload-show"></div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">时间选择</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" id="laydate" placeholder="yyyy-MM-dd">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">开关</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="close" lay-skin="switch" lay-text="ON|OFF">
                        </div>
                    </div>
                    <div class="layui-form-item layui-form-text">
                        <label class="layui-form-label">文本域</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="desc"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item timo-finally">
                        <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
                        <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-card build-card">
            <div class="layui-card-header timo-card-header">
                <span><i class="fa fa-bars"></i> 构建面板</span>
                <button class="layui-btn layui-btn-primary layui-btn-sm build-generate">生成HTML</button>
            </div>
            <div class="layui-card-body layui-form timo-compile build-panel"></div>
        </div>
    </div>
</div>
</body>

<script th:replace="/common/template :: script"></script>
<script type="text/javascript" th:src="@{/js/build.js}"></script>
</html>