apollodec/Apollo/assets/views/status.html
venbatechnologies@gmail.com d06b1c0cba status file
2017-12-07 11:31:25 +05:30

146 lines
7.7 KiB
HTML

<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 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>
<div class="container-fluid container-fullw bg-white">
<div ng-controller="statusCtrl">
<form name="Form" id="form" novalidate ng-submit="statusForm.submit(Form, myModel, 'zoom-in')" method="post">
<div class="row">
<!--<div class="col-md-6">
<div class="padding-30">
<h2 class="StepTitle"><i
class="ti-face-smile fa-2x text-primary block margin-bottom-10"></i>
Enter Bus Stop Details</h2>
</div>
</div>-->
<div class="col-md-12">
<div class="row">
<div class="col-md-4 form-group" style="display:none">
<label>
Status ID <span class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Status ID"
tabindex="1" class="form-control" name="StatusID"
ng-model="myModel.StatusID"/>
<!--<span class="error text-small block"
ng-if="Form.StatusID.$dirty && Form.StatusID.$error.required">Status ID is required</span>
<span class="error text-small block"
ng-if="Form.StatusID.$dirty && Form.StatusID.$error.pattern">Invalid Status ID </span>-->
</div>
<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="2" class="form-control" name="StatusName"
ng-model="myModel.StatusName" ng-pattern="/^[a-zA-Z0-9.\s]*$/" 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>
<!--<span class="success text-small"-->
<!--ng-if="Form.stopname.$valid">Thank You!</span>-->
</div>
<div class="col-md-4">
<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>
<div class="col-md-12">
<div class="pull-right">
<button type="submit" ladda="ldloading1.zoom_in" tabindex="9" class="btn btn-wide btn-success" data-style="zoom-in">
Submit
</button>
<!-- <button type="submit" class="btn btn-success btn-o" tabindex="8">
Submit
</button>-->
<button type="reset" class="btn btn-warning btn-wide" tabindex="10"
ng-click="statusForm.reset(Form)">
Reset
</button>
</div>
</div>
</div>
</div>
</form>
<table class="table table-hover" ng-init="init();">
<thead>
<tr>
<th>Status ID
</th>
<th>Status Name
</th>
<th></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>
<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>
</div>
</div>