ESH/form/add_related.php
2024-10-23 18:28:06 +05:30

63 lines
2.0 KiB
PHP

<script>
function validate(){
var health_advice = $('#health_advice').val();
if(health_advice == ''){
BootstrapDialog.alert('Please Enter Health Advice.!!!');
return false;
}
var health_cat = $('#health_cat').val();
if(health_cat == ''){
BootstrapDialog.alert('Please Enter Health Category.!!!');
return false;
}
save_related();
}
</script>
<style>
#modal-add-related{
overflow-y:scroll;
}
</style>
<div class="modal fade" id="modal-add-related" name="modal-add-related" role="dialog" aria-hidden="true">
<form role="form" id="related_form" name="related_form" action="#" method="post">
<div class="modal-dialog">
<div class="modal-content">
<div class="widget-header">
<h5 class="widget-title">Related</h5>
<div class="widget-toolbar">
<div class="widget-menu">
<a href="#" class="close" data-action="close" data-dismiss="modal">
<i class="ace-icon fa fa-times"></i>
</a>
</div>
</div>
</div>
<div class="modal-body">
<div class="form-group">
<label for="role">Health Advice</label>
<input type="hidden" class="form-control" name="related_id"
id="related_id" value="" required/>
<input type="text" class="form-control" name="health_advice"
id="health_advice" placeholder="Enter Health Advice" required/>
</div>
<div class="form-group">
<label for="related">Health Category</label>
<input type="text" class="form-control" name="health_cat"
id="health_cat" placeholder="Enter Health Category" required/>
</div>
<div class="widget-toolbox padding-8 clearfix" >
<button type="button" class="btn btn-info btn-sm save_button" onclick="validate();"><i class="ace-icon fa fa-floppy-o bigger-110"></i>Save </button>
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal"><i class="ace-icon fa fa-times bigger-110"></i>Cancel</button>
</div>
</div>
</div>
</form>
</div>