apollo_developers/assets/views/subjectMaster.html
venbatechnologies@gmail.com 1809bcf9c9 fixed table for student details
2018-04-23 18:34:11 +05:30

218 lines
10 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 Subject 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="subjectCtrl" data-ng-init="init()">
<tabset class="tabbable">
<tab heading="View Subject">
<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('SubjectCode')">Subject Code
<span class="glyphicon sort-icon" ng-show="sortKey=='SubjectCode'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th>
<th ng-click="sort(SubjectName)">Subject Name
<span class="glyphicon sort-icon" ng-show="sortKey=='Course'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody dir-paginate="p in data|orderBy:sortKey:reverse|filter:search:strict|itemsPerPage:10">
<tr>
<td>{{p.SubjectCode}}</td>
<td>{{p.SubjectName}}</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.SubjectID}}" ng-click="setEditId(p.SubjectID,p);"><b class="fa fa-hover fa-pencil " aria-hidden="true"></b>
</a>
</td>
</tr>
<tr ng-show="editId === p.SubjectID" ng-if="editId === p.SubjectID">
<td colspan="12" ng-include
src="'assets/views/editSubjectDetails.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>
$('#addbatch').click(function () {
$('#batch').focus();
});
</script>
<tab heading="Add Subject" id="addbatch">
<form name="Form" id="form" novalidate ng-submit="subjectFORM.submit(Form, myModel, 'zoom-in')" method="post">
<div class="row">
<div class="col-md-12">
<!-- -->
<fieldset>
<legend>
Subject
</legend>
<div class="row">
<div class="col-md-4 form-group"
ng-class="{'has-error':Form.SubjectCode.$dirty && Form.SubjectCode.$invalid,'has-success':Form.SubjectCode.$valid}">
<label>
Subject Code
<span
class="symbol required"></span>
</label>
<input type="text" placeholder="Enter Subject Code"
autofocus tabindex="7" class="form-control" name="SubjectCode"
ng-model="myModel.SubjectCode" ng-pattern="" required />
<span class="error text-small block"
ng-if="Form.SubjectCode.$dirty && Form.SubjectCode.$error.required">Subject code is required</span>
<span class="error text-small block"
ng-if="Form.SubjectCode.$dirty && Form.SubjectCode.$error.pattern">Enter a valid subject code</span>
</div>
<div class="col-md-4 form-group"
ng-class="{'has-error':Form.SubjectName.$dirty && Form.SubjectName.$invalid,'has-success':Form.SubjectName.$valid}">
<label>
Subject Name
<span
class="symbol required"></span>
</label>
<input type="text" placeholder="Enter SubjectName"
tabindex="6" class="form-control" name="SubjectName"
ng-model="myModel.SubjectName" ng-pattern="" required />
<span class="error text-small block"
ng-if="Form.SubjectName.$dirty && Form.SubjectName.$error.required"> Subject name is required</span>
<span class="error text-small block"
ng-if="Form.SubjectName.$dirty && Form.SubjectName.$error.pattern">Invalid subject 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>
<div class="row">
<div class="col-md-12">
<div class="pull-right">
<button type="submit" ng-disabled="disableButton" tabindex="30" class="btn btn-wide btn-success"
data-style="zoom-in"> Submit </button>
<button type="reset" class="btn btn-warning btn-wide" tabindex="14" ng-click="subjectFORM.reset(Form);">
Reset
</button>
</div>
</div>
</div>
</fieldset>
<!--<pre> {{ myModel | json }}</pre>
<pre> {{ myModelCourse | json }}</pre>-->
</div>
</div>
</form>
</div>
</tab>
</tabset>
</div>
</div>
<!-- end: LIST GROUP -->