add edit batch file
This commit is contained in:
parent
ba45cb5e36
commit
3805ac40c3
102
Apollo/assets/views/editBatchDetails.html
Normal file
102
Apollo/assets/views/editBatchDetails.html
Normal file
@ -0,0 +1,102 @@
|
||||
<form name="Form" id="form" novalidate>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<fieldset>
|
||||
<legend>
|
||||
Update Batch Details
|
||||
</legend>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3 form-group"
|
||||
ng-class="{'has-error':Form.batchcode.$dirty && Form.batchcode.$invalid, 'has-success':Form.batchcode.$valid}">
|
||||
<label>
|
||||
Batch Code<span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Batch Code"
|
||||
tabindex="1" class="form-control" name="batchcode"
|
||||
ng-model="p.BatchCode" ng-pattern="/^[a-zA-Z0-9\s]*$/" readonly required/>
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.batchcode.$dirty && Form.batchcode.$error.required">Batch Code is required</span>
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.batchcode.$dirty && Form.batchcode.$error.pattern">Invalid batch Code </span>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3 form-group"
|
||||
ng-class="{'has-error':Form.batchName.$dirty && Form.batchName.$invalid, 'has-success':Form.batchcode.$valid}">
|
||||
<label>
|
||||
Batch Name <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<input type="text" placeholder="Enter Batch Name"
|
||||
tabindex="1" class="form-control" name="batchName"
|
||||
ng-model="p.BatchName" required/>
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.batchName.$dirty && Form.batchName.$error.required">Batch Code is required</span>
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.batchName.$dirty && Form.batchName.$error.pattern">Invalid Batch Code </span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-3 form-group"
|
||||
ng-class="{'has-error':Form.university.$dirty && Form.university.$invalid, 'has-success':Form.university.$valid}">
|
||||
<label>
|
||||
University <span class="symbol required"></span>
|
||||
</label>
|
||||
<select class="form-control" name="university" tabindex="3" id="university"
|
||||
ng-model="p.UniversityID"
|
||||
ng-options="details.UniversityID as details.UniversityName for details in university"
|
||||
disabled required>
|
||||
<option value=""> Select University</option>
|
||||
</select>
|
||||
<span class="error text-small block"
|
||||
ng-if="Form.university.$dirty && Form.university.$invalid">University is required</span>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label>
|
||||
Active/De-Active
|
||||
</label>
|
||||
<div ng-if="p.IsActive==true">
|
||||
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = true" class="green"></switch>
|
||||
|
||||
</div>
|
||||
<div ng-if="p.IsActive==false">
|
||||
<switch ng-model="p.IsActive" ng-init="p.IsActive = false" class="green"></switch>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button type="submit" ladda="ldloading.zoom_in" tabindex="9" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateBatch(p,Form,'zoom-in')">
|
||||
Save
|
||||
</button>
|
||||
|
||||
<input type="button" class="btn btn-warning btn-wide" tabindex="10" value="Cancel"
|
||||
ng-click="cancel();">
|
||||
|
||||
</input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- class="editRowTd" -->
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user