133 lines
7.0 KiB
HTML
Executable File
133 lines
7.0 KiB
HTML
Executable File
<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-4 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 data-ng-controller="DatepickerDemoCtrl">
|
|
<div class="col-md-4 form-group"
|
|
ng-class="{'has-error':Form.date.$dirty && Form.date.$invalid, 'has-success':Form.date.$valid}">
|
|
<label>
|
|
Batch Date <span
|
|
class="symbol required"></span>
|
|
</label>
|
|
<input type="text"
|
|
class="form-control "
|
|
ng-click="startOpen = !startOpen"
|
|
datepicker-popup="dd-MM-yyyy"
|
|
ng-model="p.BatchDate"
|
|
is-open="startOpen"
|
|
ng-init="startOpen = false"
|
|
name="date"
|
|
datepicker-options="dateOptions"
|
|
placeholder="Select Date"
|
|
close-text="Close" ng-change="getDateFormat(p.BatchDate,'2');" required="required" ng-readonly="true"/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.date.$dirty && Form.date.$error.required">Batch date is required.</span>
|
|
<!--<span class="success text-small block"-->
|
|
<!--ng-if="Form.date.$valid ">Thank You</span>-->
|
|
</div>
|
|
<input class="ng-hide" type="text" name="editDate"
|
|
ng-model="editModel.editDate">
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-4 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="editModel.editBatchName" 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>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 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 localUniversityDetails"
|
|
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',editModel)">
|
|
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" -->
|
|
|
|
|
|
|
|
|