<div class="col-md-8 col-md-offset-2">
    <div class="panel panel-default mg" ng-controller="CorrigendumAddCtrl">
        <div cg-busy="{promise:myPromise,message:'正在加载...'}"></div>
        <div class="panel-body">
            <form class="form-horizontal {{submitted ? 'submitted' : ''}}" name="form" novalidate ng-submit="submit()">
                <fieldset ng-if="model.id == null">
                    <legend>新增试卷更正<div style="float: right;"><span class="icon icon-close" ng-click="closeModel()"></span></div></legend>
                </fieldset>
                <fieldset ng-if="model.id != null">
                    <legend>编辑试卷更正<div style="float: right;"><span class="icon icon-close" ng-click="closeModel()"></span></div></legend>
                </fieldset>
                <div class="form-group">
                    <label for="form-control" class="col-sm-3 control-label">考次<span class="req">*</span></label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" ng-model="model.batch" placeholder="考次"
                               ng-required="true">
                    </div>
                </div>

                <div class="form-group">
                    <label for="form-control" class="col-sm-3 control-label">课程<span class="req">*</span></label>
                    <div class="col-sm-4">
                        <select class="selectpicker form-control" ng-model="model.course_id" id="select1" data-live-search="true">>
                            <option value="{{c.id}}" ng-selected="model.course_id === c.id" ng-repeat="c in courses">{{c.code}}-{{c.name}}</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="form-control" class="col-sm-3 control-label">更正内容<span class="req">*</span></label>
                    <div class="col-md-8">
                        <textarea id="editor1" class="form-control" ng-model="model.content" >
	    	</textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label for="form-control" class="col-sm-3 control-label">涉及省份数量<span class="req">*</span></label>
                    <div class="col-sm-4">
                        <input type="number" class="form-control" ng-model="model.num" placeholder="涉及省份数量"
                               ng-required="true">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-9">
                        <button type="submit" class="btn btn-info btn-lg">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>