course details changes done

This commit is contained in:
gandhimathi 2017-11-30 19:32:49 +05:30
parent 1cd46de68d
commit 255fac389b

View File

@ -156,12 +156,13 @@
</label>
<input type="text" placeholder="Enter Course ID"
tabindex="2" class="form-control" name="coursecode"
tabindex="2" class="form-control" name="coursecode" ng-maxlength="20"
ng-model="myModel.courseCode" ng-pattern="/^[a-zA-Z0-9\s]*$/" required/>
<span class="error text-small block"
ng-if="Form.coursecode.$dirty && Form.coursecode.$error.required">Course id is required</span>
<span class="error text-small block"
ng-if="Form.coursecode.$dirty && Form.coursecode.$error.pattern">Invalid course id </span>
ng-if="Form.coursecode.$dirty && Form.coursecode.$error.pattern || Form.coursecode.$error.maxlength ">Invalid course id </span>
</div>