#if(hasEdit2)
<style>
    .dropdown-menu{background:white;}
</style>
#end
<div class="cat__core__top-sidebar cat__core__top-sidebar--bg">
    <div class="modal-header">
        <h4 class="modal-title">{{title}}</h4>
    </div>
    <form ng-submit="submitForm(model)" id="#(beanFL)">
        <div class="modal-body">
            <div class="form-group row">
                #for(x : fieldList)
                #if(x.edit)
                <!--#(x.remark1)-->
                <div class="col-sm-6" style="padding-bottom: 20px">
                    <label class="col-md-8">#(x.remark1.replace(" ",""))</label>
                    <div class="col-md-11" #if(x.isMust)required #end>
                    #if(x.edit == "1")
                        #if(x.tag == "INPUT_DT")
                        <input type="text" class="form-control" placeholder="#(x.remark1)" id="#(x.field)" ng-model="model.#(x.field)" readonly calendar>
                        #elseif(x.tag == "SELECT")
                        <select ng-model="model.#(x.field)" class="form-control" #if(x.isMust)required #end>
                            <option value="">--请选择--</option>
                            <option ng-repeat='m in #(x.selects)' value="{{m.key}}">{{m.value}}</option>
                        </select>
                        #elseif(x.tag == "SELECT_EXT")
                        <select ng-model="model.#(x.field)" class="form-control" #if(x.isMust)required #end>
                            <option value="">--请选择--</option>
                            <option ng-repeat="m in dict('#(x.selects)')" value="{{m.key}}">{{m.value}}</option>
                        </select>
                        #elseif(x.tag == "TEXTAREA")
                        <textarea rows="3" class="form-control" placeholder="请输入#(x.remark1)" ng-model="model.#(x.field)"></textarea>
                        #elseif(x.tag == "FILE_EXT")
                        <input ng-file-select="onFileSelect($files, model, '#(x.selects)')" type="file">
                        #else
                        <input type="text" class="form-control" placeholder="" ng-model="model.#(x.field)">
                        #end
                    #elseif(x.edit == "2")
                        <select style="display:none" data-live-search="true" data-actions-box="true" ng-model="model.#(x.field)" class="form-control" multiple multiple-select event="optEvt" action="bbb(val)">
                            <option ng-repeat="m in dict('#(x.selects)')"  value="{{m.key}}" on-finish-render-filters event="optEvt">{{m.value}}</option>
                        </select>
                    #end
                    </div>
                </div>
                #end
                #end
            </div>

        </div>
        <div class="modal-footer">
            <div style="margin:0 auto">
                <button style="position:relative; right:15px"  type="submit" class="btn btn-sm btn-primary mr-2 mb-2"> <i class="fa fa-check icon-on-right"></i> 确认</button>
                <button style="position:relative; left:15px" type="button" class="btn btn-sm btn-default mr-2 mb-2" ng-click="cancel()"> <i class="fa fa-close icon-on-right"></i> 取消</button>
            </div>
        </div>
    </form>
</div>