This commit is contained in:
2022-08-21 20:20:54 -04:00
parent 99223bab2d
commit ae25b88a68
3 changed files with 45 additions and 14 deletions
+3 -1
View File
@@ -104,7 +104,9 @@ define('OFFER_CANCEL',222);
define('OFFER_EXPIRE',444);
define('OFFER_EXTEND',555);
define('OFFER_SENDTOME',777);
define('OFFER_SENDTOME',777);
define('OFFER_RESEND',888);
define('WEBSITE_LOGIN', 1100);
+10 -1
View File
@@ -1226,6 +1226,12 @@ Indexes:
$this->concludeOffer(OFFER_SENDTOME);
}
public function viewjob_resend()
{
$this->concludeOffer(OFFER_RESEND);
}
public function viewjob_extend()
{
$this->concludeOffer(OFFER_EXTEND);
@@ -1241,7 +1247,10 @@ Indexes:
$in['action'] = WRENCHBOARD_JOB_OFFER_CONCLUDE;
$this->load->model('backend_model');
$out = array();
$res = $this->backend_model->wrenchboard_api($in, $out);
if ( $in['member_id']!= 0){
$res = $this->backend_model->wrenchboard_api($in, $out);
}
if ($out["result"] == "OK") {
switch ($offer_result) {
@@ -78,19 +78,23 @@
</div>
</div>
<div class="row mb-10">
<label class="col-lg-4 fw-bold text-muted"></label>
<div class="col-lg-8" style="text-align: right;">
<input type="button" name="sendjob_tome" id="sendjob_tome" onclick="return sendOfferToMe();" value='Send to me' class="btn btn-info btn-sm" >
<div class="row mb-10" style="text-align: right'">
<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group mr-2" role="group" aria-label="cancel grp" style="padding-left: 0px; padding-right: 10px;">
<input type="button" name="reject_submit" id="reject_submit" onclick="return cancelOffer();" value='Cancel Offer' class="btn btn-danger btn-sm" >
</div>
<div class="btn-group mr-2" role="group" aria-label="Second group" style="padding-left: 10px; padding-right: 10px;">
<input type="button" name="sendjob_resend" id="sendjob_resend" onclick="return resendOffer();" value='Resend Offer' class="btn btn-primary btn-sm" >
</div>
<div class="btn-group" role="group" aria-label="Third group" style="padding-left: 10px; padding-right: 0px;">
<input type="button" name="sendjob_tome" id="sendjob_tome" onclick="return sendOfferToMe();" value='Send to me' class="btn btn-info btn-sm" >
</div>
</div>
</div>
<div class="row mb-10">
<label class="col-lg-4 fw-bold text-muted"></label>
<div class="col-lg-8" style="text-align: right;">
<input type="button" name="reject_submit" id="reject_submit" onclick="return cancelOffer();" value='Cancel Offer' class="btn btn-danger btn-sm" >
</div>
</div>
</div>
</div>
</div>
@@ -171,8 +175,24 @@
});
return false;
}
function cancelOffer() {
function resendOffer() {
$('#mailsent_sent').html('Processing...');
$('#sendjob_resend').prop('disabled', true);
//alert(element.value);
$.ajax({
url: "/jobs/viewjob_resend?jobOfferID=<?php echo $jobOfferID; ?>"
}).done(function( data ) {
$('#mailsent_sent').html(data);
//document.offer_group.job_group.value = '';
$('#sendjob_resend').prop('disabled', false);
});
return false;
}
function cancelOffer() {
$('#offer_result').html('Processing...');
$('#reject_submit').prop('disabled', true);