142 lines
6.2 KiB
HTML
Executable File
142 lines
6.2 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="Certificate Details"></h1>
|
|
|
|
</div>
|
|
<div ncy-breadcrumb></div>
|
|
</div>
|
|
</section>
|
|
<div class="container-fluid container-fullw bg-white">
|
|
<div ng-controller="certificateCtrl">
|
|
<form name="Form" id="form" novalidate ng-submit="certificateForm.submit(Form, myModel, 'zoom-in')" method="post">
|
|
<fieldset>
|
|
<legend>Add Certificate 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.CertificateName.$dirty && Form.CertificateName.$invalid, 'has-success':Form.CertificateName.$valid}">
|
|
<label>
|
|
Certificate Name <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<input type="text" placeholder="Enter Certificate Name"
|
|
tabindex="1" class="form-control" name="CertificateName"
|
|
ng-model="myModel.CertificateName" capitalize required/>
|
|
<span class="error text-small block"
|
|
ng-if="Form.CertificateName.$dirty && Form.CertificateName.$error.required">Certificate Name is required</span>
|
|
<span class="error text-small block"
|
|
ng-if="Form.CertificateName.$dirty && Form.CertificateName.$error.pattern">Invalid Certificate name </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 class="col-md-2" style="padding-top: 2.3%;">
|
|
<div class="pull-right">
|
|
<button type="submit" ladda="ldloading1.zoom_in" tabindex="2" 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="3"
|
|
ng-click="statusForm.reset(Form)">
|
|
Reset
|
|
</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('CertificationID')">Certification ID
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='CertificationID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"> </span>
|
|
</th>
|
|
<th ng-click="sort('CertificateName')">Certificate Nmae
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='CertificateName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"> </span>
|
|
</th>
|
|
<th>Status</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody dir-paginate="p in statusInfo|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10">
|
|
<tr>
|
|
<td>{{p.CertificationID}}</td>
|
|
<td>{{p.CertificateName}}</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.CertificationID}}" ng-click="setEditId(p.CertificationID);"><b class="fa fa-hover fa-pencil " aria-hidden="true"></b>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr ng-show="editId === p.CertificationID" ng-if="editId === p.CertificationID">
|
|
<td colspan="12" ng-include src="'assets/views/certificate/editCertificationDetails.html'"></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
|
</dir-pagination-controls>
|
|
|
|
</div>
|
|
</div> |