apollodec/Apollo/assets/views/editStatusDetails.html
2017-12-09 16:32:39 +05:30

70 lines
3.2 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 Status Details
</legend>
<div class="row">
<div class="col-md-3 form-group" ng-class="{'has-error':Form.ListCode.$dirty && Form.ListCode.$invalid, 'has-success':Form.ListCode.$valid}">
<label>
Status ID<span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Status ID" tabindex="1" class="form-control" name="StatusID" ng-model="p.ListCode"
readonly required/>
<span class="error text-small block" ng-if="Form.ListCode.$dirty && Form.ListCode.$error.required">status ID is required</span>
</div>
<div class="col-md-3 form-group" ng-class="{'has-error':Form.ListName.$dirty && Form.ListName.$invalid, 'has-success':Form.ListName.$valid}">
<label>
Status Name <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Status Name" tabindex="1" class="form-control" name="StatusName" ng-model="p.ListName" capitalize
required/>
<span class="error text-small block" ng-if="Form.ListName.$dirty && Form.ListName.$error.required">status Name is required</span>
<span class="error text-small block" ng-if="Form.ListName.$dirty && Form.ListName.$error.pattern">Invalid status Name </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="updatestatus(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>
</form>
<!-- class="editRowTd" -->