183 lines
10 KiB
HTML
183 lines
10 KiB
HTML
<span *ngIf="show" class="backToList">
|
|
<a (click)="show = !show;" tooltip="Go to listing">Back to List</a>
|
|
</span>
|
|
<div class="col-lg-12" *ngIf="!show">
|
|
<tabset>
|
|
<tab>
|
|
<ng-template tabHeading> Study Center List</ng-template>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<i class="fa fa-align-justify"></i> Study Center List
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<div class="input-prepend input-group">
|
|
<span class="input-group-addon">
|
|
<i class="fa fa-search"></i>
|
|
</span>
|
|
<input id="search" class="form-control" type="text" placeholder="search">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<table class="table table-bordered table-responsive">
|
|
<thead>
|
|
<tr>
|
|
<th>Study Center Code</th>
|
|
<th>Study Center Name</th>
|
|
<th>Contact Person</th>
|
|
<th>Mobile Number</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr *ngFor="let stuCent of studyCenterDetails">
|
|
<td>{{stuCent.stdyId}}</td>
|
|
<td>{{stuCent.name}}</td>
|
|
<td>{{stuCent.contactPerson}}</td>
|
|
<td>{{stuCent.mobile}}</td>
|
|
<td>
|
|
<span *ngIf="stuCent.status == 1" class="badge badge-success">Active</span>
|
|
<span *ngIf="stuCent.status == 0" class="badge badge-danger">In-Active</span>
|
|
</td>
|
|
<td>
|
|
<i class="fa fa-edit" tooltip="Edit" (click)="editStudyCenter()"></i> |
|
|
<i class="fa fa-eye" tooltip="View More" data-toggle="modal" (click)="myModal.show(); getModelWindowDetails(stuCent)"></i>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<ul class="pagination">
|
|
<li class="page-item"><a class="page-link" href="#">Prev</a></li>
|
|
<li class="page-item active">
|
|
<a class="page-link" href="#">1</a>
|
|
</li>
|
|
<li class="page-item"><a class="page-link" href="#">2</a></li>
|
|
<li class="page-item"><a class="page-link" href="#">3</a></li>
|
|
<li class="page-item"><a class="page-link" href="#">4</a></li>
|
|
<li class="page-item"><a class="page-link" href="#">Next</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</tab>
|
|
<tab>
|
|
<ng-template tabHeading> Add Study Center</ng-template>
|
|
<div class="animated fadeIn">
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<i class="fa fa-align-justify"></i> Study Center Details
|
|
</div>
|
|
<form>
|
|
<fieldset>
|
|
<!--<legend>Study Center Details</legend>-->
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label for="name"> Name <span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="name" placeholder="Enter Name">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="pNumber">Phone Number<span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="pNumber" placeholder="Enter Phone Number">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="pNumber">Email<span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="email" placeholder="Enter Email">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label for="city">City<span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="city" placeholder="Enter City">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="state">State<span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="state" placeholder="Enter State">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="pincode">Pin Code<span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="pincode" placeholder="Enter PinCode">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label for="premanentAddress">Full Contact Address <span class="danger">*</span></label>
|
|
<textarea class="form-control" id="premanentAddress" placeholder="Enter Full Contact Address"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="card-header">
|
|
Contact Person Details
|
|
</div>
|
|
<div class="row">
|
|
<div class="form-group col-md-4">
|
|
<label for="contactPerson"> Contact Person <span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="contactPerson" placeholder="Enter Contact Person">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="mobile"> Mobile Number</label>
|
|
<input type="text" class="form-control" id="mobile" placeholder="Enter Mobile Number">
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="email">Email <span class="danger">*</span></label>
|
|
<input type="text" class="form-control" id="email" placeholder="Enter Email">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</fieldset>
|
|
<div class="card-footer" align="right">
|
|
<button type="submit" class="btn btn-sm btn-success"><i class="fa fa-dot-circle-o"></i> Submit</button>
|
|
<button type="reset" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> Reset</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</tab>
|
|
</tabset>
|
|
</div>
|
|
|
|
<app-edit-study-center *ngIf="show"></app-edit-study-center>
|
|
|
|
<div bsModal #myModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document" *ngIf="myModalData">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">{{ myModalData.stdyId }}</h4>
|
|
<button type="button" class="close" (click)="myModal.hide()" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<label><b> Study Center Name : </b> </label> {{myModalData.name}}
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label><b>Mobile : </b> </label> {{myModalData.mobile}}
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<label><b> Contact Person Name : </b> </label> {{myModalData.contactPerson}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" (click)="myModal.hide()">Close</button>
|
|
<!--<button type="button" class="btn btn-primary">Save changes</button>-->
|
|
</div>
|
|
</div>
|
|
<!-- /.modal-content -->
|
|
</div>
|
|
<!-- /.modal-dialog -->
|
|
</div>
|
|
<!-- /.modal --> |