nhance/app/Views/client_policy.php

116 lines
4.3 KiB
PHP

<div class="tab-pane fade" id="police-tab">
<div class="row float-right" style="padding-bottom: 10px;">
<div class="col-6">
<button type="button" id="BtnAdd" class="btn btn-primary waves-effect waves-light btnAdd">Add</button>
</div>
</div>
<div class="table-responsive" id="table_list" >
<table class="table table-borderless table-nowrap mb-0">
<thead class="thead-light">
<tr>
<th>#</th>
<th>Branch Name</th>
<th>Branch Code</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>App design and development</td>
<td>01/01/2015</td>
</tr>
<tr>
<td>2</td>
<td>Coffee detail page - Main Page</td>
<td>21/07/2016</td>
</tr>
</tbody>
</table>
</div>
<div class="row" id="add_form">
<div class="col-12">
<div class="card-body">
<div class="row float-right" style="position: relative; bottom: 20px;">
<div class="col-6">
<button type="button" class="btn btn-primary waves-effect waves-light btnBack">Back</button>
</div>
</div>
<hr>
<form role="form" class="parsley-examples" method="post" id="UserForm" action=""
enctype="multipart/form-data">
<input type="hidden" value="<?= csrf_hash() ?>" name="<?= csrf_token() ?>" />
<input type="hidden" name="PrimaryKey" id="UserId" />
<div class="form-group">
<div class="form-row">
<div class="form-group col-md-4">
<label for="email">Insurer<span
class="text-danger">*</span></label>
<select class="form-control" id="role" name="role">
<option value="">Select Insurer Branch</option>
</select>
</div>
<div class="form-group col-md-4">
<label for="first_name">Polices<span
class="text-danger">*</span></label>
<select class="form-control" id="role" name="role">
<option value="">Select Policy</option>
</select>
</div>
<div class="form-group col-md-4">
<label for="mobile">TPA<span
class="text-danger">*</span></label>
<select class="form-control" id="role" name="role">
<option value="">Select TPA Branch</option>
</select>
</div>
</div>
</div>
<div class="form-group text-right m-b-0">
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"
id="btnSubmit">Submit</button>
<button type="button" class="btn btn-secondary waves-effect btnBack"
id="btnBack">Cancel</button>
</div>
</form>
</div>
</div> <!-- end col-->
</div>
</div>
<!-- end -->
<script>
$(document).ready(function () {
$('#add_form').hide();
$('.btnBack').hide();
$('.btnAdd').click(function(){
$('#add_form').show();
$('#table_list').hide();
$('.btnBack').show();
$('.btnAdd').hide();
$('#UserForm').attr('action', '<?php echo base_url('/user/create');?>');
})
$('.btnBack').click(function(){
$('#add_form').hide();
$('#table_list').show();
$('.btnBack').hide();
$('.btnAdd').show();
})
});
</script>