<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('人群运营计划看板修改')" />
</head>
<style>

</style>
<script>

</script>
<body>
<div class="ui-layout-center">
    <form class="form-horizontal" id="form-SHyglHyxxJzyxMarketingplaninfo-edit" th:object="${user}">
        <h4 class="form-header h4">基本信息</h4>
        <input type="hidden" id="id" name="id" th:value="${id}">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                    <label class="col-sm-1 control-label">计划的唯一标识符:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="planUniqueIdentifier" placeholder="计划的唯一标识符" th:value="${planUniqueIdentifier}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">计划的名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="planName" placeholder="计划的名称" th:value="${planName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">计划的目标人群描述:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="targetAudienceDescription" placeholder="计划的目标人群描述" th:value="${targetAudienceDescription}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">执行计划的方法:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="executionMethods" placeholder="执行计划的方法" th:value="${executionMethods}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">推广计划所使用的渠道:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="promotionChannels" placeholder="推广计划所使用的渠道" th:value="${promotionChannels}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">计划的开始日期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="startDate" placeholder="计划的开始日期" th:value="${startDate}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">具体任务的执行时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="taskExecutionTime" placeholder="具体任务的执行时间" th:value="${taskExecutionTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">计划所属的分组名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="groupBelongingName" placeholder="计划所属的分组名称" th:value="${groupBelongingName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">预计参与的会员数量:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="estimatedParticipants" placeholder="预计参与的会员数量" th:value="${estimatedParticipants}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">实际成功参与的会员数量:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="actualParticipants" placeholder="实际成功参与的会员数量" th:value="${actualParticipants}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">任务推送的进度百分比:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="taskPushProgress" placeholder="任务推送的进度百分比" th:value="${taskPushProgress}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">任务完成的进度百分比:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="taskCompletionProgress" placeholder="任务完成的进度百分比" th:value="${taskCompletionProgress}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">计划的状态:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="planStatus" placeholder="计划的状态" th:value="${planStatus}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">创建计划的用户:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="createdByUser" placeholder="创建计划的用户" th:value="${createdByUser}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
        <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>

<script>
    function submitHandler() {
        var prefix = ctx + "hygl/shyglhyxxjzyxmarketingplaninfo";
        if ($.validate.form()) {
            var data = $("#form-SHyglHyxxJzyxMarketingplaninfo-edit").serializeArray();
            /*var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
            var roleIds = $.form.selectCheckeds("role");
            var postIds = $.form.selectSelects("post");
            data.push({"name": "status", "value": status});
            data.push({"name": "roleIds", "value": roleIds});
            data.push({"name": "postIds", "value": postIds});*/
            $.operate.saveTab(prefix + "/sHyglHyxxJzyxMarketingplaninfoEdit", data);
        }
    }
</script>
