<!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">
    <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="layui-row timo-card-screen put-row">
            <div class="pull-right screen-btn-group">
                <div class="btn-group-right">
                    <button class="layui-btn open-popup" data-title="添加短信账户" th:attr="data-url=@{/sys/notify/sms/add}"
                            data-size="640,480">
                        <i class="fa fa-plus"></i> 添加
                    </button>
                </div>
            </div>
        </div>
        <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="notifyAccountId">账户 ID</th>
                    <th class="sortable" data-field="username">用户名</th>
                    <th class="sortable" data-field="password">密码</th>
                    <th class="sortable" data-field="url">URL</th>
                    <th class="sortable" data-field="sprdid">sprdid</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.notifyAccountId}">账户 ID</td>
                    <td th:text="${item.username}">用户名</td>
                    <td th:text="${item.password}">密码</td>
                    <td th:text="${item.url}">URL</td>
                    <td th:text="${item.sprdid}">sprdid</td>
                    <td>
                        <a class="open-popup" data-title="编辑" th:attr="data-url=@{'/sys/notify/sms/edit/'+${item.id}}"
                           data-size="640,480" href="#">编辑</a>
                        <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.notifyAccountId} + '?'"
                           th:href="@{'/api/sys/notify/sms/' + ${item.id}}">删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div th:replace="/common/fragment :: page"></div>
    </div>
</div>

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