236 lines
13 KiB
HTML
Executable File
236 lines
13 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>
|
|
<!-- start: PAGE TITLE -->
|
|
<section id="page-title">
|
|
<div class="row">
|
|
<div class="col-sm-8">
|
|
<h1 class="mainTitle" translate="Add/View Center Details"></h1>
|
|
<!--
|
|
<span class="mainDescription">Over a dozen reusable components built to provide popovers, media objects, navigation, tooltips and much more. </span>
|
|
-->
|
|
</div>
|
|
<div ncy-breadcrumb></div>
|
|
</div>
|
|
</section>
|
|
<!-- end: PAGE TITLE -->
|
|
<!-- start: LIST GROUP -->
|
|
<div class="container-fluid container-fullw bg-white">
|
|
<div class="row" ng-controller="centerCtrl" data-ng-init="init()">
|
|
<tabset class="tabbable">
|
|
<tab heading="View Center" id="viewcenter">
|
|
<div class="container-fluid container-fullw">
|
|
<div class="row">
|
|
<div ng-if="loader == ''" class="col-md-12" align="center">
|
|
<!--<img src="assets/images/ajax_loader_blue.gif" style="width: 5%; height: 30%">-->
|
|
<spinner name="html5spinner"> <div class="overlay"></div> <div class="spinner"> <div class="double-bounce1"></div> <div class="double-bounce2"></div> </div> <div class="please-wait">Please Wait...</div>
|
|
</spinner>
|
|
</div>
|
|
|
|
<div class="col-md-12" ng-if="emptyData == false && loader != ''" style="min-height: 281px;">
|
|
<p style="color: red;" align="center"><strong><h3 class="text-center">oops! No
|
|
records found... </h3></strong></p>
|
|
</div>
|
|
<div class="col-md-12" ng-if="emptyData == true">
|
|
<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="1"
|
|
placeholder="Search"/><br><br>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<fieldset>
|
|
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th ng-click="sort('CenterCode')">Center Code
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='CenterCode'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
<th ng-click="sort('CenterName')">Center Name
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='CenterName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
<th ng-click="sort('CenterAddress')">Center Address
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='CenterAddress'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
<!-- <th>Comments</th> -->
|
|
<th>Status</th>
|
|
<th> Action</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10">
|
|
<!-- <pre>p|json</pre> -->
|
|
<tr>
|
|
<td>{{p.CenterCode}}</td>
|
|
<td>{{p.CenterName}}</td>
|
|
<td>{{p.CenterAddress}}</td>
|
|
<!-- <td>{{p.Comments}}</td> -->
|
|
<td><span ng-if="p.IsActive == 1"> Active </span><span ng-if="p.IsActive == 0">De-Active</span></td>
|
|
<td>
|
|
|
|
<a class="text-azure" id="editRowBtn{{p.CenterID}}" ng-click="setEditId(p.CenterID);"><b class="fa fa-hover fa-pencil " aria-hidden="true"></b>
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-show="editId === p.CenterID" ng-if="editId === p.CenterID" >
|
|
<td colspan="6" ng-include src="'assets/views/editCenterDetails.html'"></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
|
</dir-pagination-controls>
|
|
</fieldset>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--
|
|
view tab end
|
|
-->
|
|
</tab>
|
|
<script>
|
|
$('#addcenter').click(function () {
|
|
$('#center').focus();
|
|
});
|
|
</script>
|
|
|
|
<tab heading="Add Center" id="addcenter">
|
|
<div>
|
|
<form name="Form" id="form" novalidate ng-submit="centerForm.submit(Form, myModel, 'zoom-in')" method="post">
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
<fieldset>
|
|
<legend>
|
|
Add New Center Details
|
|
</legend>
|
|
|
|
<div class="row">
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.centerCode.$dirty && Form.centerCode.$invalid, 'has-success':Form.centerCode.$valid}">
|
|
<label>
|
|
Center Code <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Center Code"
|
|
tabindex="1" disallow-spaces="" class="form-control" name="centerCode"
|
|
ng-model="myModel.centerCode" ng-pattern="" required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.centerCode.$dirty && Form.centerCode.$error.required">Center code is required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.centerCode.$dirty && Form.centerCode.$error.pattern">Invalid center code </span>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-md-3 form-group"
|
|
ng-class="{'has-error':Form.centerName.$dirty && Form.centerName.$invalid, 'has-success':Form.centerName.$valid}">
|
|
<label>
|
|
Center Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Center Name"
|
|
tabindex="2" class="form-control" name="centerName"
|
|
ng-model="myModel.centerName" ng-pattern="" required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.centerName.$dirty && Form.centerName.$error.required">Center name is required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.centerName.$dirty && Form.centerName.$error.pattern">Invalid center name </span>
|
|
|
|
<!--ng-if="Form.stopname.$valid">Thank You!</span>-->
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-3 form-group" ng-class="{'has-error':Form.Address.$dirty && Form.Address.$invalid, 'has-success':Form.Address.$valid}">
|
|
<label>
|
|
Address <span class="symbol required"></span>
|
|
</label>
|
|
<textarea placeholder="Enter Address" tabindex="3" class="form-control textdsc" name="Address" ng-model="myModel.Address" required></textarea>
|
|
<span class="error text-small block" ng-if="Form.Address.$dirty && Form.Address.$invalid">Address is required</span>
|
|
</div>
|
|
|
|
<div class="col-md-3 form-group" ng-class="{'has-error':Form.Comments.$dirty && Form.Comments.$invalid}">
|
|
<label>
|
|
Comments
|
|
</label>
|
|
<textarea placeholder="Enter Comment" tabindex="4" class="form-control textdsc" name="Comment" ng-model="myModel.Comment"></textarea>
|
|
<span class="error text-small block" ng-if="Form.Comments.$dirty && Form.Comments.$invalid">Comments is required</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>
|
|
Active/De-Active
|
|
</label>
|
|
<div ng-switch="myModel.switchsetting">
|
|
<div ng-switch-when="true">
|
|
<switch ng-model="myModel.switchsetting" ng-init="myModel.switchsetting = true" class="green"></switch>
|
|
|
|
</div>
|
|
<div ng-switch-when="false">
|
|
<switch ng-model="myModel.switchsetting" ng-init="myModel.switchsetting = false" class="green"></switch>
|
|
|
|
</div>
|
|
|
|
|
|
<div ng-switch-default>
|
|
<switch ng-model="myModel.switchsetting" ng-init="myModel.switchsetting = true" class="green"></switch>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button type="submit" tabindex="5" class="btn btn-wide btn-success" data-style="zoom-in">
|
|
Submit
|
|
</button>
|
|
|
|
<button type="reset" class="btn btn-warning btn-wide" tabindex="6"
|
|
ng-click="centerForm.reset(Form)">
|
|
Reset
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</tab>
|
|
</tabset>
|
|
</div>
|
|
</div>
|
|
<!-- End: LIST GROUP -->
|
|
|
|
|
|
|
|
|
|
|