<div class="panel panel-default" 
		ng-controller="BatchInfoPaperCtrl">
	<div class="wrapper">
		<button ui-sref="batch.add" class="btn btn-default"><i class="glyphicon glyphicon-plus"> 添加试卷</i></button>
		<div class="btn-group" dropdown is-open="status.isopen">
      <a class="btn btn-default dropdown-toggle" 
      	dropdown-toggle ng-disabled="disabled"><i class="glyphicon glyphicon-print"></i>&nbsp;&nbsp;打印 <span class="caret"></span>
      </a>
      <ul class="dropdown-menu" role="menu">
        <li><a target="_blank" href="examPaper/printAllCodeInfo/{{batch.id}}">打印试卷条码</a></li>
        <li><a href="#">打印答案条码</a></li>
        <li><a href="#">工作登记表</a></li>
      </ul>
    </div>
    </div>
	<div class="panel-body" >
		<table class="table table-striped" style="
              table-layout: fixed;">
			<thead>
					<tr>
						<th width="5%" >#</th>
						<th>试卷</th>
                		<th  >状态</th>
                		<th  >专卡</th>
                		<th  >课程代码</th>
                		<th  >课程</th>
                		<th>教材</th>
                		<th  >编者</th>
                		<th  >版次</th>
               			<th >学校</th>
               			<th>操作</th>
					</tr>
					<tr>
						<th></th>
						<th><input type="text" placeholder="试卷代码" class="input-sm form-control" ng-model="search.code" /></th>
						<th>
							<select ng-model="search.status" class="form-control" >
								<option value="">所有</option>
								<option value="DRAFT">毛坯</option>
								<option value="FORMAL" >清样</option>
				      			<option value="USED" >启用</option>
							</select>
						</th>
						<th></th>
						<th><input type="text" placeholder="课程代码" class="input-sm form-control" ng-model="search.courseCode" /></th>
					</tr>
				</thead>
			<tbody>
				<tr ng-repeat="row in papers | filter:search">
					<td>{{$index+1}}</td>
					<td>{{row.code}}</td>
					<td>{{row.status | paperStatus}}</td>
					<td>{{row.isSpecialAnswerSheet == 1?'有':'无'}}</td>
					<td>{{row.courseCode}}</td>
					<td class="clip" title="{{row.courseName}}">{{row.courseName}}</td>
					<td class="clip" title="{{row.bookName}}">{{row.bookName}}</td>
					<td>{{row.bookAuthor}}</td>
					<td>{{row.bookPressYear}}</td>
					<td>{{row.school}}</td>
					<td><a href="javascript:void(0)" tooltip="移出试卷">
		<i class="glyphicon glyphicon-remove"></i>
		</a></td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
