@model string
<div class="main">
    <form method="post" class="form-horizontal form form-group-sm ui-validForm" action="@Url.Action()">
        <div class="control-group">
            <label class="control-label">接口名称</label>
            <div class="controls">
                <input type="text" id="name" name="name" class="form-control" value="" data-validate="dataType:'*" nullMsg:'请填写接口名称！">
                <span class="help-block"></span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label radio">是否启用</label>
            <div class="controls">
                <label class="radio-inline">
                    <input type="radio" name="isopen" id="isopen" checked value="1">启用
                </label>
                <label class="radio-inline">
                    <input type="radio" name="isopen" id="isopen" value="0">关闭
                </label>
                <span class="help-block"></span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">支付页面路径</label>
            <div class="controls">
                <input name="pay_path" id="pay_path" class="form-control"  data-validate="dataType:'*" nullMsg:'请填写支付页面路径！"/>
                <span class="help-block"></span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">序号</label>
            <div class="controls">
                <input name="xuhao" id="xuhao" style="width:50px;" class="form-control" value="1" />
                <span class="help-block"></span>
            </div>
        </div>
        <div class="postarea">
            <div class="control-group">
                <div class="controls">
                    <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 serverData =@Html.Raw(Model??"null");
    var jsonData = serverData[0];
    $(".form").setForm(jsonData);
</script>

