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

72 lines
2.4 KiB
PHP

<script>
function validate(){
var medical_form_name = $('#medical_form_name').val();
if(medical_form_name == ''){
BootstrapDialog.alert('Please Enter medical_form Name.!!!');
return false;
}
var medical_form_code = $('#medical_form_code').val();
if(medical_form_code == ''){
BootstrapDialog.alert('Please Enter medical_form Code.!!!');
return false;
}
save_medical_form();
}
</script>
<style>
#modal-add-medical_form{
overflow-y:scroll;
}
</style>
<div class="modal fade" id="modal-add-medical-form" name="modal-add-medical-form" role="dialog" aria-hidden="true">
<form role="form" id="medical_form_form" name="medical_form_form" action="#" method="post">
<div class="modal-dialog">
<div class="modal-content">
<div class="widget-header">
<h5 class="widget-title">Medical Form</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">Medical Form Name</label>
<input type="hidden" class="form-control" name="medical_form_id"
id="medical_form_id" value="" required/>
<input type="text" class="form-control" autofocus="autofocus" name="medical_form_name"
id="medical_form_name" maxlength="30" placeholder="Enter Medical Name" required/>
</div>
<div class="form-group">
<label for="medical_form">Medical Form code</label>
<input type="text" class="form-control" name="medical_form_code"
id="medical_form_code" maxlength="20" placeholder="Enter Medical Code" required/>
</div>
<div class="form-group">
<label for="is_qty_fixed">Is Qty Fixed</label>
<select name="is_qty_fixed" id="is_qty_fixed" class="form-control">
<option value="NO">NO</option>
<option value="YES">YES</option>
</select>
</div>
</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>