<!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-invoice-edit" th:object="${playletUserInvoice}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input name="remark" th:field="*{remark}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">开票公司名称：</label>
            <div class="col-sm-8">
                <input name="companyName" th:field="*{companyName}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">企业纳税识别号：</label>
            <div class="col-sm-8">
                <input name="taxpayerNumber" th:field="*{taxpayerNumber}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">企业电话：</label>
            <div class="col-sm-8">
                <input name="companyPhone" th:field="*{companyPhone}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">企业地址：</label>
            <div class="col-sm-8">
                <input name="companySite" th:field="*{companySite}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">企业开户行帐号：</label>
            <div class="col-sm-8">
                <input name="bankAccountNumber" th:field="*{bankAccountNumber}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">企业开户行名称：</label>
            <div class="col-sm-8">
                <input name="bankAccountName" th:field="*{bankAccountName}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">用户id：</label>
            <div class="col-sm-8">
                <input name="userId" th:field="*{userId}" class="form-control" type="text" required>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "system/playlet/invoice";
    $("#form-invoice-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-invoice-edit').serialize());
        }
    }
</script>
</body>
</html>