<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改企业微信用户信息')" />
</head>
<body class="white-bg">
    <div th:if="${wxQyUser}!=null" class="wrapper wrapper-content animated fadeInRight ibox-content"  >

        <form class="form-horizontal m" id="form-user-edit" th:object="${wxQyUser}" >
            <input name="userid" th:field="*{userid}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">企业微信用户姓名：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">企业微信用户手机号：</label>
                <div class="col-sm-8">
                    <input name="mobile" th:field="*{mobile}" class="form-control" type="text" disabled>
                </div>
            </div>


            <div class="form-group">    
                <label class="col-sm-3 control-label">性别：</label>
                <div class="col-sm-8" th:switch="*{gender}">
                    <input th:case="'0'" name="gender" value="不明" class="form-control" type="text" disabled>
                    <input th:case="'1'" name="gender" value="男" class="form-control" type="text" disabled>
                    <input th:case="'2'" name="gender" value="女" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">邮箱：</label>
                <div class="col-sm-8">
                    <input name="email" th:field="*{email}" class="form-control" type="text" disabled>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">头像：</label>
                <div class="col-sm-8">
                    <img style="width: 50px;height: 50px; border-radius: 5px" th:src="*{thumbAvatar}">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">座机：</label>
                <div class="col-sm-8">
                    <input name="telephone" th:field="*{telephone}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">别名：</label>
                <div class="col-sm-8">
                    <input name="alias" th:field="*{alias}" class="form-control" type="text" disabled>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">员工个人二维码：</label>
                <div class="col-sm-8">
                    <img style="width: 100px;height: 100px; border-radius: 5px" th:src="*{qrCode}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">地址：</label>
                <div class="col-sm-8">
                    <textarea name="address" class="form-control" disabled>[[*{address}]]</textarea>
                </div>
            </div>

        </form>
    </div>
    <div th:if="${wxQyUser}==null" class="wrapper wrapper-content animated fadeInRight ibox-content"  >
        未关联相应微信用户
    </div>
    <th:block th:include="include :: footer" />
</body>
</html>