<!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-card" th:attr="data-url=@{/sys/bak}">
    <div class="layui-card-header timo-card-header">
        <span><i class="fa fa-bars"></i> 备份还原</span>
        <i class="layui-icon layui-icon-refresh refresh-btn"></i>
    </div>
    <div class="layui-card-body">
        <div class="timo-table-wrap">
            <table class="layui-table timo-table">
                <thead>
                <tr>
                    <th class="timo-table-checkbox">
                        <label class="timo-checkbox"><input type="checkbox">
                            <i class="layui-icon layui-icon-ok"></i></label>
                    </th>
                    <th class="sortable" data-field="title">数据源</th>
                    <th class="sortable" data-field="name">角色名</th>
                    <th class="sortable" data-field="createTime">最近一次备份</th>
                    <th class="sortable" data-field="updateTime">最近一次还原</th>
                    <th>备份</th>
                    <th>还原</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="item:${list}">
                    <td><label class="timo-checkbox"><input type="checkbox" th:value="${item.id}">
                        <i class="layui-icon layui-icon-ok"></i></label></td>
                    <td th:text="${item.title}">数据源</td>
                    <td th:text="${item.name}">角色名</td>
                    <td th:text="${item.createTime}">最近一次备份</td>
                    <td th:text="${item.updateTime}">最近一次还原</td>
                    <td>
                        <a th:href="@{/sys/bak/export}"><i class="fa fa-download"></i></a>
                    </td>
                    <td>
                        <button type="button" class="layui-btn upload-image" name="file[]"
                                th:attr="up-url=@{/sys/bak/import}" up-field="path">
                            <i class="fa fa-upload"></i>
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<script th:replace="/common/template :: script"></script>
<script type="text/javascript">
</script>
</body>
</html>