<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改社会组织信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-shzz-edit" th:object="${orhonShzz}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">社会组织名称：</label>
                <div class="col-sm-8">
                    <input name="mc" th:field="*{mc}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">社会组织类型：</label>
                <div class="col-sm-8">
                    <select name="type" class="form-control m-b" th:with="type=${@dict.getType('prhon_qylx')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{type}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所在地：</label>
                <div class="col-sm-8">
                    <input name="szd" th:field="*{szd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">资产总额：</label>
                <div class="col-sm-8">
                    <input name="zcze" th:field="*{zcze}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">从业人员数量：</label>
                <div class="col-sm-8">
                    <input name="cyrs" th:field="*{cyrs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">社会组织负责人姓名：</label>
                <div class="col-sm-8">
                    <input name="shzzxm" th:field="*{shzzxm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">社会组织负责人电话：</label>
                <div class="col-sm-8">
                    <input name="shzzdh" th:field="*{shzzdh}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否党员：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('orhon_isdy')}">
                        <input type="radio" th:id="${'isdy_' + dict.dictCode}" name="isdy" th:value="${dict.dictValue}" th:field="*{isdy}">
                        <label th:for="${'isdy_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否建立工会：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('is_gh')}">
                        <input type="radio" th:id="${'isgh_' + dict.dictCode}" name="isgh" th:value="${dict.dictValue}" th:field="*{isgh}">
                        <label th:for="${'isgh_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否建立团组织：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('is_tzz')}">
                        <input type="radio" th:id="${'istzz_' + dict.dictCode}" name="istzz" th:value="${dict.dictValue}" th:field="*{istzz}">
                        <label th:for="${'istzz_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">党组织类型：</label>
                <div class="col-sm-8">
                    <select name="dzzlx" class="form-control m-b" th:with="type=${@dict.getType('orhon_dzzlx')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{dzzlx}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否有活动阵地：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('is_hdzd')}">
                        <input type="radio" th:id="${'ishdzd_' + dict.dictCode}" name="ishdzd" th:value="${dict.dictValue}" th:field="*{ishdzd}">
                        <label th:for="${'ishdzd_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">党组织建立时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="dzzjlsj" th:value="${#dates.format(orhonShzz.dzzjlsj, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">上级党组织：</label>
                <div class="col-sm-8">
                    <input name="sjdzz" th:field="*{sjdzz}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">党组织书记姓名：</label>
                <div class="col-sm-8">
                    <input name="dzzsjxm" th:field="*{dzzsjxm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">党组织书记电话：</label>
                <div class="col-sm-8">
                    <input name="dzzsjdh" th:field="*{dzzsjdh}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">登记方式：</label>
                <div class="col-sm-8">
                    <input name="djfs" th:field="*{djfs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">区域划分：</label>
                <div class="col-sm-8">
                    <select name="deptId" class="form-control m-b" th:with="type=${@dict.getType('orhon_qyfl')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{deptId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">党员数：</label>
                <div class="col-sm-8">
                    <input name="dys" th:field="*{dys}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否建立党组织：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('is_dzz')}">
                        <input type="radio" th:id="${'isdzz_' + dict.dictCode}" name="isdzz" th:value="${dict.dictValue}" th:field="*{isdzz}">
                        <label th:for="${'isdzz_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">党建指导员姓名：</label>
                <div class="col-sm-8">
                    <input name="djzdyxm" th:field="*{djzdyxm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">党建指导员电话：</label>
                <div class="col-sm-8">
                    <input name="djzdydh" th:field="*{djzdydh}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">未建立党组织原因：</label>
                <div class="col-sm-8">
                    <textarea name="wjldzzyy" class="form-control">[[*{wjldzzyy}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">集中组建阶段具体集中组建阶段具体集中组建阶段具体措施：</label>
                <div class="col-sm-8">
                    <textarea name="jzzjjtfs" class="form-control">[[*{jzzjjtfs}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否双强六好：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('is_sqlh')}">
                        <input type="radio" th:id="${'issqlh_' + dict.dictCode}" name="issqlh" th:value="${dict.dictValue}" th:field="*{issqlh}">
                        <label th:for="${'issqlh_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/shzz";
        $("#form-shzz-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-shzz-edit').serialize());
            }
        }

        $("input[name='dzzjlsj']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>