116 lines
6.3 KiB
HTML
Executable File
116 lines
6.3 KiB
HTML
Executable File
<style>
|
|
b.fa {
|
|
display: inline-block;
|
|
border-radius: 60px;
|
|
box-shadow: 0px 0px 2px #007AFF;
|
|
padding: 0.5em 0.6em;
|
|
}
|
|
</style>
|
|
<section id="page-title">
|
|
<div class="row">
|
|
<div class="col-sm-8">
|
|
<h1 class="mainTitle" translate="Status"></h1>
|
|
|
|
<span class="mainDescription">Manage various status for the entire application. </span>
|
|
|
|
</div>
|
|
<div ncy-breadcrumb></div>
|
|
</div>
|
|
</section>
|
|
<div class="container-fluid container-fullw bg-white">
|
|
<div ng-controller="statusCtrl" ng-init="initHead()">
|
|
<tabset class="tabbable">
|
|
<tab heading="Add Status" id="statuAddNew">
|
|
<form name="Form" id="form" novalidate ng-submit="statusForm.submit(Form, myModel, 'zoom-in')" method="post">
|
|
<fieldset>
|
|
<legend>Add Status Details</legend>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="row">
|
|
<div class="col-md-4 form-group" ng-class="{'has-error':Form.StatusName.$dirty && Form.StatusName.$invalid, 'has-success':Form.StatusName.$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="myModel.StatusName"
|
|
ng-pattern="/^[a-zA-Z0-9.\s]*$/" capitalize required/>
|
|
<span class="error text-small block" ng-if="Form.StatusName.$dirty && Form.StatusName.$error.required">Status name is required</span>
|
|
<span class="error text-small block" ng-if="Form.StatusName.$dirty && Form.StatusName.$error.pattern">Invalid Status name </span>
|
|
</div>
|
|
<div class="col-md-2" >
|
|
<div class="pull-right">
|
|
<button style="margin-top:20px;" type="submit" ladda="ldloading1.zoom_in" tabindex="2" class="btn btn-wide btn-success" data-style="zoom-in">
|
|
Add
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<script>
|
|
$(function () {
|
|
$("#search").focus();
|
|
});
|
|
</script>
|
|
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="5" placeholder="Search" /><br><br>
|
|
</div>
|
|
</div>
|
|
<table class="table table-hover" ng-init="init();">
|
|
<thead>
|
|
<tr>
|
|
<th ng-click="sort('ListCode')">Status ID
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='ListCode'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"> </span>
|
|
</th>
|
|
<th ng-click="sort('ListName')">Status Name
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='ListName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"> </span>
|
|
</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody dir-paginate="p in statusInfo|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10">
|
|
<tr>
|
|
<td>{{p.ListCode}}</td>
|
|
<td>{{p.ListName}}</td>
|
|
<td><span ng-if="p.IsActive == 1"> Active </span><span ng-if="p.IsActive == 0">In-Active</span></td>
|
|
<td>
|
|
<a class="text-azure" id="editRowBtn{{p.ListCode}}" ng-click="setEditId(p.ListCode);"><b class="fa fa-hover fa-pencil " aria-hidden="true"></b>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr ng-show="editId === p.ListCode" ng-if="editId === p.ListCode">
|
|
<td colspan="12" ng-include src="'assets/views/editStatusDetails.html'"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
|
</dir-pagination-controls>
|
|
</tab>
|
|
<!--<tab heading="Status Branch Access" id="statusViewBranchRelation">
|
|
<pre>{{ branchList }}</pre>
|
|
<div class="row">
|
|
<div class="col-lg-4"></div>
|
|
<div class="col-lg-4">
|
|
<div>
|
|
<label for="form-field-select-2">
|
|
Select Branch
|
|
</label>
|
|
|
|
<select class="form-control" tabindex="0" class="cs-select cs-skin-elastic" name="branch" ng-model="localBranchDetails"
|
|
ng-change="selectBranch(localBranchDetails)" id="selectBranch" required>
|
|
<option value="" disabled selected>Select Branch</option>
|
|
<option ng-repeat="bdata in branchList" value="{{bdata.BranchCode}}">{{bdata.BranchName}}</option>
|
|
</select>
|
|
</div>
|
|
<span ng-if="loader == true" style="color: #007AFF;
|
|
font-size: 16px;">Loading...</span>
|
|
</div>
|
|
<div class="col-lg-4"></div>
|
|
</div>
|
|
</tab>-->
|
|
</tabset>
|
|
</div>
|
|
</div> |