<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/bss/platform/add}">
        <input type="hidden" name="id" th:if="${platform}" th:value="${platform.id}">
        <div class="layui-form-item">
            <label class="layui-form-label required">名称</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="name" placeholder="请输入名称" th:value="${platform?.name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">联系人</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="contact" placeholder="请输入联系人" th:value="${platform?.contact}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">联系人电话</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="contactTel" placeholder="请输入联系人电话" th:value="${platform?.contactTel}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">联系人身份证号码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="contactCard" placeholder="请输入联系人身份证号码" th:value="${platform?.contactCard}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">邮箱</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="email" placeholder="请输入邮箱" th:value="${platform?.email}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">类型</label>
            <div class="layui-input-inline">
                <select name="type" mo:dict="BSS_PLATFORM_TYPE" mo-selected="${platform?.type}" mo-empty="" lay-verify="type"></select>
            </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="remark">[[${platform?.remark}]]</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>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>