fix
This commit is contained in:
@@ -43,10 +43,56 @@ $read_level = " readonly "
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-secondary" name="signup" value="Sign up">Update</button>
|
||||
<button type="submit" class="btn btn-danger" name="signup" value="Sign up">Reject</button>
|
||||
<button type="submit" class="btn btn-primary" name="signup" value="Sign up">Approve</button>
|
||||
<button type="submit" class="btn btn-secondary" name="signup" value="Sign up">Update</button>
|
||||
<button type="submit" class="btn btn-danger" onclick='rejectPracticeSignup(<?=$pending_id?>);' name="reject_signup" value="Sign up">Reject</button>
|
||||
<button type="submit" class="btn btn-primary" onclick='approvePracticeSignup(<?=$pending_id?>);' name="approve_signup" value="Sign up">Approve</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
|
||||
function approvePracticeSignup(pending_practice_id) {
|
||||
// alert(pending_practice_id);
|
||||
|
||||
if(!confirm("Do you really want to APPROVE the new user?")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#transp_detail').html('Starting...');
|
||||
$('#bremail' + pending_practice_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/practice/approvePracticeSignup?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#bremail' + pending_practice_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function rejectPracticeSignup(pending_practice_id) {
|
||||
// alert(pending_practice_id);
|
||||
|
||||
if(!confirm("Do you really want to REJECT the new user?")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$('#transp_detail').html('Starting...');
|
||||
$('#bremail' + pending_practice_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/practice/rejectPracticeSignup?proc=PROCESS&pending_practice_id=" + pending_practice_id
|
||||
}).done(function (data) {
|
||||
$('#transp_detail').html(data);
|
||||
$('#bremail' + pending_practice_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user