changes status updation : kdk
This commit is contained in:
parent
0d8f9fd4a4
commit
b78f96a700
@ -364,7 +364,7 @@ $scope.editStatusID = id;
|
||||
|
||||
$scope.statusUpdate = {
|
||||
submit: function (form, localBranchDetails, id) {
|
||||
alert(id);
|
||||
// alert(id);
|
||||
var firstError = null;
|
||||
if (form.$invalid) {
|
||||
var field = null, firstError = null;
|
||||
|
||||
@ -208,11 +208,11 @@
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
<!--<li ui-sref-active="active">
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.application" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkSuperAdmin()">
|
||||
Application
|
||||
</a>
|
||||
</li>-->
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@ -671,6 +671,11 @@
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.application" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkAdmin()">
|
||||
Application
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
@ -1053,6 +1058,11 @@
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.application" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkStaff()">
|
||||
Application
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
@ -1320,6 +1330,11 @@
|
||||
Certificate
|
||||
</a>
|
||||
</li>
|
||||
<li ui-sref-active="active">
|
||||
<a ui-sref="app.student.status.application" translate="sidebar.nav.student.status.APPLICATION" ng-click="checkStaff()">
|
||||
Application
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
@ -241,7 +241,90 @@
|
||||
<span class="glyphicon glyphicon-remove-circle"></span>
|
||||
</a>
|
||||
</div>
|
||||
{ {studentFormTypeList | json}}
|
||||
<div ng-if="studentFormTypeList">
|
||||
<table class="table table-strip" ng-init="editStatus = false; stufmtype.ID = -1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Batch</th>
|
||||
<th>Sem/Year</th>
|
||||
<th>From Type</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody ng-repeat="stufmtype in studentFormTypeList">
|
||||
<tr>
|
||||
<td>{{stufmtype.ID}}</td>
|
||||
<td>{{stufmtype.BatchCode}}</td>
|
||||
<td>{{stufmtype.Sem_Year}}</td>
|
||||
<td>{{stufmtype.RegistrationType}}</td>
|
||||
<td><i ng-click="statusUpdateView(stufmtype.ID)" tooltip="STATUS UPDATE" class="ti-slice"></i></td>
|
||||
</tr>
|
||||
<tr ng-if="editStatusID == stufmtype.ID">
|
||||
<td colspan="6"><form name="Form" id="form" novalidate ng-submit="statusUpdate.submit(Form, localBranchDetails, stufmtype.ID)" method="post">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}">
|
||||
<label for="form-field-select-2">
|
||||
Status <span class="symbol required"></span>
|
||||
</label>
|
||||
|
||||
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatusModel.staus"
|
||||
required>
|
||||
<option value="" disabled selected>Select Status</option>
|
||||
<option ng-repeat="itemStatus in statusDetailsList" value="{{itemStatus.ListCode}}">{{itemStatus.ListName}}</option>
|
||||
</select>
|
||||
<span class="error text-small block" ng-if="Form.status.$dirty && Form.status.$error.required">Status is Required</span>
|
||||
|
||||
</div>
|
||||
<div data-ng-controller="DatepickerDemoCtrl">
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.dateofstaus.$dirty && Form.dateofstaus.$invalid, 'has-success':Form.dateofstaus.$valid}">
|
||||
<label>
|
||||
Date <span
|
||||
class="symbol required"></span>
|
||||
</label>
|
||||
<input type="text" tabindex="6" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myStatusModel.dateOn"
|
||||
is-open="startOpen" ng-init="startOpen = false" name="dateofstaus"
|
||||
datepicker-options="dateOptions" placeholder="Select Date " close-text="Close"
|
||||
required="required" ng-change="getMaxEndDate(myModel.startDate)"
|
||||
/>
|
||||
|
||||
<span class="error text-small block" ng-if="Form.dateofstaus.$dirty && Form.dateofstaus.$invalid" ng-hide="Form.dateofstaus.$error.maxlength">Date is required.</span>
|
||||
<span class="error text-small block" ng-if="Form.dateofstaus.$error.maxlength">Enter a Valid Date</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.description.$dirty && Form.description.$invalid}">
|
||||
<label>
|
||||
Comments
|
||||
</label>
|
||||
|
||||
<textarea type="text" placeholder="Enter Comments" tabindex="7" class="form-control" name="description" ng-model="myStatusModel.comment"
|
||||
/>
|
||||
<span class="error text-small block" ng-if="Form.description.$dirty && Form.description.$error.pattern">Invalid Comments</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="pull-right">
|
||||
<button type="submit" ng-disabled="disableButton" tabindex="8" ladda="ldloading1.zoom_in" class="btn btn-wide btn-success"
|
||||
data-style="zoom-in">
|
||||
<i class="fa fa-circle-o-notch fa-spin" ng-if="disableButton" style="font-size:14px"></i> Submit
|
||||
</button>
|
||||
<button type="reset" tabindex="9" class="btn btn-warning btn-wide" tabindex="9" ng-click="statusUpdate.reset(Form)">
|
||||
Reset
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!--<div class="row">
|
||||
<div class="col-md-6 form-group" ng-class="{'has-error':Form.certificatetype.$dirty && Form.certificatetype.$invalid, 'has-success':Form.certificatetype.$valid}">
|
||||
<label for="form-field-select-2">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user