1 |
- <div class="btn btn-success" ng-click="add()" ng-show="!stdConfirmed"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加</div>
<form novalidate name='experience-form' class="std-form" cg-busy="{promise:myPromise,message:'正在处理,请稍后...'}">
<table class="table table-condensed table-hover table-striped">
<thead>
<tr>
<th width="15%">阶段</th>
<th width="15%">开始日期</th>
<th width="15%">结束日期</th>
<th width="35%">在何地何学校学习</th>
<th width="12%">证明人</th>
<th width="8%"></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="experience in experiences" ng-form="cellForm" class="form-group">
<td ng-class="{ 'has-error' : cellForm.period_name.$invalid && experienceFormSubmitted}">
<input type="text" name="period_name" ng-model="experience.period_name" required />
<p ng-show="cellForm.period_name.$error.required && experienceFormSubmitted" class="help-block">请输入</p>
</td>
<td ng-class="{ 'has-error' : cellForm.start_date.$invalid && experienceFormSubmitted}">
<input type="date" name="start_date" ng-model="experience.start_date" required />
<p ng-show="cellForm.start_date.$error.required && experienceFormSubmitted" class="help-block">请输入</p>
</td>
<td ng-class="{ 'has-error' : cellForm.end_date.$invalid && experienceFormSubmitted}">
<input type="date" name="end_date" ng-model="experience.end_date" required />
<p ng-show="cellForm.end_date.$error.required && experienceFormSubmitted" class="help-block">请输入</p>
</td>
<td ng-class="{ 'has-error' : cellForm.school.$invalid && experienceFormSubmitted}">
<input type="text" name="school" ng-model="experience.school" required />
<p ng-show="cellForm.school.$error.required && experienceFormSubmitted" class="help-block">请输入</p>
</td>
<td ng-class="{ 'has-error' : cellForm.certifier.$invalid && experienceFormSubmitted}">
<input type="text" name="certifier" ng-model="experience.certifier" required />
<p ng-show="cellForm.certifier.$error.required && experienceFormSubmitted" class="help-block">请输入</p>
</td>
<td class="v-middle">
<button class="btn btn-danger btn-xs glyphicon glyphicon-minus" ng-click="remove($index)" ng-if="$index>2"></button>
</td>
</tr>
</tbody>
</table>
<div class="form-group text-center" >
<button class="btn btn-primary" ng-click='submitExperienceForm()' ng-show="!stdConfirmed">保存</button>
<button class="btn btn-info" ng-click='goNext("graduateSchool", experience-form.$dirty)'>下一步</button>
</div>
</form>
|