@using Common
@model string
@*<style>
    .form .control-group .controls .form-control {
        width: 90%;
    }
</style>*@
<div class="main">
    <form method="post" class="form-horizontal form ui-validForm" action="@Url.Action()">
        <div class="control-group">
            <label class="control-label">分组名称：</label>
            <div class="controls">
                <input type="text" name="name" id="name" class="form-control" data-validate="dataType:'*" nullMsg:'请填写分组名称" checkUrl="@Url.Action("CheckExists",new {id=Request.QueryString["id"],fieldName = "好友分组"})" placeholder="半角逗号隔开同时增加多个分组">
                <span class="help-block"></span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">序号：</label>
            <div class="controls form-group-sm">
                <input type="text" name="xuhao" id="xuhao" class="form-control" value='1' data-validate="dataType:'n1-7" nullMsg:'请输入序号" style="width:50px" maxlength="3" />
                <span class="help-block"></span>
            </div>
        </div>
        <div class="postarea">
            <div class="control-group">
                <div class="controls">
                    <input type="hidden" id="id" name="id" value=""/>
                    <input type="hidden" id="uid" name="uid" value="@PA.GetCurrentUser().Uid" />
                    <button type="button" class="btn btn-primary btn-sm ui-pagePost" data-custom-params="url:'@Url.Action()',callBack:'PostRefreshBack'">提交</button>
                    <button type="button" class="btn btn-default btn-sm ui-closeDialog">关闭</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    //绑定数据
    var id =Request("id");
    if (id != "")
    {
        var data = @Html.Raw(Model??"null");
        $(".form").FormBind(data);
    }

</script>