<div class="col-lg-12" *ngIf="!show">
    <tabset>
        <tab>
            <ng-template tabHeading> Form List</ng-template>
            <div class="card">
                <div class="card-header">
                    <i class="fa fa-align-justify"></i> Form 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>From Name</th>
                                <th>From Type</th>
                                <th>Course / University</th>
                                <th>Description</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr *ngFor="let form of formsList">
                                <td>{{form.formName}}</td>
                                <td>{{form.formType}}</td>
                                <td>{{form.course}} / {{form.univ}}</td>
                                <td>{{form.description}}</td>
                                <td>
                                    <span *ngIf="form.status == 1" class="badge badge-success">Active</span>
                                    <span *ngIf="form.status == 0" class="badge badge-danger">In-Active</span>
                                </td>
                                 <td>
                                    <i class="fa fa-download" tooltip="Download"></i> |
                                      <i class="fa fa-eye" tooltip="View More" data-toggle="modal" (click)="myModal.show(); getModelWindowDetails(form)"></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 Form</ng-template>
            <div class="card">
                <div class="card-header">
                    <i class="fa fa-align-justify"></i> Form Details
                </div>
                <fieldset>
                    <!--<legend>Role Details</legend>-->
                    <div class="container">
                        <div class="row">
                            <div class="form-group col-md-4">
                                <label for="formName">Form Name<span class="danger">*</span></label>
                                <input type="text" class="form-control" id="formName" placeholder="Enter Form Name">
                            </div>
                            <div class="form-group col-md-4">
                                <label for="formType">From Type <span class="danger">*</span></label>
                                <select class="form-control" id="formType" placeholder="Select Form Type">
                                                    <option disabled>Select Form Type</option>
                                                    <option>Admission Form</option>
                                                    <option>Exam Timetable</option>
                                                </select>
                            </div>
                            <div class="col-md-4">
                                <label for="formType">Select University<span class="danger">*</span></label>
                                
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Please Select University</option>
                                    <option value="1">MMM univ</option>
                                    <option value="2">PPP univ</option>
                                    <option value="3">SSS univ</option>
                                </select>
                            </div>
                        </div>
                        <div class="row">
                              <div class="col-md-4">
                                <label for="formType">Select Course<span class="danger">*</span></label>
                                
                                <select id="disabledSelect" class="form-control">
                                    <option value="0">Please Select Course</option>
                                    <option value="1">B.com</option>
                                    <option value="2">MCA</option>
                                    <option value="3">M.Sc</option>
                                </select>
                            </div>
                            <div class="form-group col-md-4">
                                <label for="formDescription">Description</label>
                                <textarea class="form-control" id="formDescription" placeholder="Enter Description"></textarea>
                            </div>
                            <div class="form-group col-md-4">
                                Upload Form :
                                <input type="file" class="file-input">
                            </div>
                        </div>
                        <div class="row">
                              <div class="form-group col-md-4">
                                Active/De-Active : <label class="switch switch-default switch-pill switch-primary">
                                        <input type="checkbox" class="switch-input" checked>
                                        <span class="switch-label"></span>
                                        <span class="switch-handle"></span>
                                    </label>
                            </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>
            </div>
        </tab>
    </tabset>
</div>

<div bsModal #myModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg" role="document" *ngIf="myModalData">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">{{ myModalData.empId }}</h4>
                <button type="button" class="close" (click)="myModal.hide()" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
            </div>
            <div class="modal-body">
                <div class="container">
                    <div class="row">
                        <div class="col-md-6">
                            <label><b>Form Name : </b> </label> {{myModalData.formName}}
                        </div>
                        <div class="col-md-6">
                            <label><b>Form Type : </b> </label> {{myModalData.formType}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <label><b>Description : </b> </label> {{myModalData.description}}
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group col-md-4">
                            <b>Active/De-Active :</b>
                            <div> <label class="switch switch-default switch-pill switch-primary">
                                        <input type="checkbox" class="switch-input" checked>
                                        <span class="switch-label"></span>
                                        <span class="switch-handle"></span>
                                    </label>
                            </div>
                        </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 -->