<div class="panel panel-default mg" ng-controller="BatchInfoSupplyFormCtrl">
<div class="panel-body">
<div cg-busy="{promise:myPromise,message:'正在加载...'}"></div>
<form class="form-horizontal" name="form" novalidate ng-submit="submit()">
	<fieldset><legend>{{title}}供卷课程</legend></fieldset>
  <div class="form-group">
    <label for="" class="col-sm-3 control-label">供卷课程<span class="req">*</span></label>
    <div class="col-sm-4">
    	
    	<select ng-disabled="op == 'edit'" class="form-control" ng-options="(item.courseCode + ' ' + item.courseName) for item in courses track by item.courseCode" ng-model="selected">
    		<option value="">-- 选择供卷课程 --</option>
    	</select>
    </div>
    <div class="col-sm-3">
    	<button ng-hide="!selected" ng-click="save()" class="btn btn-md btn-info">提交{{title}}</button>
    </div>
  </div>
  <div class="col-md-6" ng-repeat="p in provs">
  <div class="form-group" >
    <label for="" class="col-sm-3 control-label" ><span ng-class="p.enabled?'font-bold':'text-muted'">{{p.name}}</span></label>
    <div class="col-sm-2">
    	<label class="i-switch i-switch-lg bg-info m-t-xs m-r">
              <input type="checkbox" ng-model="p.enabled">
              <i></i>
            </label>
    </div>
    <div class="col-sm-3">
    	<select class="form-control" ng-disabled="!p.enabled" ng-model="p.paperFormat">
    		<option value="SEPERATE">网评卷</option><!-- 2016-01-20 张璇要求把“分卷”改成“网评卷” -->
    		<option value="MERGE">合卷</option>
    		<option value="ALL">所有</option>
    	</select>
    </div>
    <div class="col-sm-3">
    	<select class="form-control" ng-disabled="!p.enabled" ng-model="p.paperType">
    		<option value="BLANK">{{(p.name == '国家')?'白纸一份':'白纸两份'}}</option>
    		<option value="ACID">硫酸纸、白纸各一份</option>
    	</select>
    </div>
    
  </div>
  </div>
</form>
    </div>
</div>