Team 3 (HN Camp Arise
Specific Folder FTP Upload / ftp-deploy (push) Successful in 38s Details

This commit is contained in:
zeeshan 2026-09-25 17:08:28 +05:30
parent 8f127ae599
commit 8e737f1bfe
1 changed files with 37 additions and 4 deletions

View File

@ -82,10 +82,25 @@
@endphp
<tr>
<td>
<button type="button"
class="btn btn-xs btn-info edit-btn"
plan_details="{{ json_encode($sub->formdata) }}"><i
class="mdi mdi-pencil"></i> Edit</button>
@if(isset($sub->formdata->execution_done) && $sub->formdata->execution_done == 'yes') Execution Done
@elseif(isset($sub->workflow_status) && $sub->workflow_status == 'approved')
<button type="button" class="btn btn-xs btn-info edit-btn"
plan_details="{{ json_encode($sub->formdata) }}">
<i class="mdi mdi-pencil"></i> Execute
</button>
@elseif(isset($sub->workflow_status) && $sub->workflow_status == 'rejected')
<button type="button" class="btn btn-xs btn-info edit-plan"
plan_details="{{ json_encode($sub->formdata) }}">
<i class="mdi mdi-pencil"></i> Edit Plan
</button>
@endif
</td>
<td>{{ isset($sub->formdata->execution_date) && $sub->formdata->execution_date > 0 ? 'Yes' : 'No' }}
</td>
@ -345,6 +360,21 @@
})
$('.edit-btn').click(function() {
let selected = JSON.parse($(this).attr('plan_details'))
for (let k of Object.keys(selected)) {
if (selected[k] != '')
$('#execution-' + k).val(selected[k]);
}
$('#execution-id').val(selected['id'])
$('#form-wrapper').hide()
$('#execution-form-wrapper').show()
$('#table-wrapper').hide();
$('#execution-form').append('<input type="hidden" name="execution_done" value="yes" />');
})
$('.edit-plan').click(function() {
let selected = JSON.parse($(this).attr('plan_details'))
for (let k of Object.keys(selected)) {
if (selected[k] != '')
@ -354,6 +384,9 @@
$('#form-wrapper').hide()
$('#execution-form-wrapper').show()
$('#table-wrapper').hide()
$('#execution-execution_date,#execution-actual_number_of_patients,#execution-number_of_patients_detected_with_copd,#execution-number_of_patients_on_home_nebulization,#execution-foracort_rx,#execution-glycohale_rx,#execution-business_generated_for_foracort,#execution-business_generated_for_glycohale').parent().hide();
$('#execution-execution_date,#execution-actual_number_of_patients,#execution-number_of_patients_detected_with_copd,#execution-number_of_patients_on_home_nebulization,#execution-foracort_rx,#execution-glycohale_rx,#execution-business_generated_for_foracort,#execution-business_generated_for_glycohale').attr('required', false);
})
jQuery(document).ready(function($) {