102 lines
4.8 KiB
HTML
102 lines
4.8 KiB
HTML
<form name="Form" id="form" novalidate>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
<fieldset>
|
|
<legend>
|
|
Update Activity 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>
|
|
Activity ID<span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Activity ID"
|
|
tabindex="1" class="form-control" name="ActivityID"
|
|
ng-model="p.ListCode" readonly required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.ListCode.$dirty && Form.ListCode.$error.required">Activity 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>
|
|
Activity Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Activity Name"
|
|
tabindex="1" class="form-control" name="ListName"
|
|
ng-model="p.ListName" required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.ListName.$dirty && Form.ListName.$error.required">Activity Name is required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.ListName.$dirty && Form.ListName.$error.pattern">Invalid Activity Name </span>
|
|
|
|
</div>
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.Description.$dirty && Form.Description.$invalid, 'has-success':Form.Description.$valid}">
|
|
<label>
|
|
Description <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Description Name"
|
|
tabindex="1" class="form-control" name="Description"
|
|
ng-model="p.Description" required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Description.$dirty && Form.Description.$error.required">Description is required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.Description.$dirty && Form.Description.$error.pattern">Invalid Description Code </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="updateActivity(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" -->
|
|
|
|
|
|
|
|
|