103 lines
5.1 KiB
HTML
Executable File
103 lines
5.1 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
|
|
</legend>
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 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="ListCode" ng-model="p.ActivityID"
|
|
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-4 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="2" class="form-control" name="ListName" ng-model="p.ActivityName"
|
|
readonly 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-4">
|
|
<div class="form-group"
|
|
ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid && viewEditStatus.list.length==0, 'has-success':Form.status.$valid}">
|
|
<label >
|
|
Status<span
|
|
class="symbol required"></span>
|
|
</label>
|
|
|
|
<ui-select multiple ng-model="viewEditStatus.list" tabindex="4">
|
|
<ui-select-match placeholder="Select Status">
|
|
{{$item.name}}
|
|
</ui-select-match>
|
|
<ui-select-choices
|
|
repeat="d.id as d in localStatusDetails | filter:$select.search">
|
|
{{d.name}}
|
|
</ui-select-choices>
|
|
</ui-select>
|
|
|
|
<input class="ng-hide" type="text" name="status"
|
|
ng-model="viewEditStatus.list"
|
|
required>
|
|
<span class="error text-small block"
|
|
ng-if="Form.status.$dirty && Form.status.$error.required && viewEditStatus.list.length==0">Status is required.</span>
|
|
<!--<span class="success text-small block"-->
|
|
<!--ng-if="Form.subjects.$valid && myModel.subjects.length!=0">Thank You</span>-->
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
|
|
|
|
<!--<div class="col-md-4">
|
|
<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="ldloading3.zoom_in" tabindex="2" class="btn btn-wide btn-success" data-style="zoom-in" ng-click="updateActivity(p,viewEditStatus,Form,'zoom-in')">
|
|
Save
|
|
</button>
|
|
|
|
<input type="button" class="btn btn-warning btn-wide" tabindex="3" value="Cancel" ng-click="cancel();">
|
|
|
|
</input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<!-- class="editRowTd" --> |