<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增岗位信息" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-post-edit" class="form-horizontal">
    <@f.hidden id="id" name="id" value="${sysPost.id}"/>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "岗位编码"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="postCode" value="${sysPost.postCode?default('')}" required=true/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "岗位名称"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="postName"  value="${sysPost.postName?default('')}" required=true/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "显示顺序"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="postSort"  value="${sysPost.postSort?default('')}" required=true/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "岗位分类"/>：</label>
        <div class="col-sm-8">
            <@f.select name="postType" value="${sysPost.postType?default('')}" dictType="sys_post_type" required=true/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "状态"/>：</label>
        <div class="col-sm-8">
            <@f.radio name="status" value="${sysPost.status?default('')}" dictType="sys_status"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "备注"/>：</label>
        <div class="col-sm-8">
            <@f.textarea name="remark" value="${sysPost.remark?default('')}"/>
        </div>
    </div>
</@f.form>
</div>
<@footer>
    <script type="text/javascript">
        var prefix = baseURL + "sys/post";
        $("#form-post-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if (opt.validate.form()) {
                opt.operate.save(prefix + "/edit", $('#form-post-edit').serialize());
            }
        }
    </script>
</@footer>
</@pageTheme>