<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改身份证')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-sfz-edit" th:object="${tUSfz}">
        <div class="form-group">
            <label class="col-sm-3 control-label">发证机关：</label>
            <div class="col-sm-8">
                <label name="licenceIssue"  class="form-control" th:text="*{licenceIssue}"></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">姓名：</label>
            <div class="col-sm-8">
                <label name="name"  class="form-control" th:text="*{name}"></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">性别：</label>
            <div class="col-sm-8">
                <label name="gender"  class="form-control" th:text="*{gender}"></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">民族：</label>
            <div class="col-sm-8">
                <label name="nationality"  class="form-control" th:text="*{nationality}"></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">出生日期：</label>
            <div class="col-sm-8">
                <label name="birthDate"  class="form-control" th:text="*{birthDate}"></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">公民身份号码：</label>
            <div class="col-sm-8">
                <label name="idcardNo"  class="form-control" th:text="*{idcardNo}"></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">户籍地：</label>
            <div class="col-sm-8">
                <label name="addressPermanent"  class="form-control" th:text="*{addressPermanent}"></label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">照片：</label>
            <div class="col-sm-8">
                <img id="photos"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">相片：</label>
            <div class="col-sm-8">
                <img id="photograph" src="data:image/jpg;base64,"/>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    $(document).ready(function () {
        var s = "data:image/jpg;base64,"+[[${photograph}]];
        $("#photograph").attr("src",s);
    });
</script>
</body>
</html>
