Team 3 (GNP Camp for Neb Arise- Approval Change)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s
Details
This commit is contained in:
parent
126cae1ef1
commit
1e587077f1
|
|
@ -87,10 +87,24 @@
|
|||
@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 @endif
|
||||
@if(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>
|
||||
@else
|
||||
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ isset($sub->formdata->execution_date) && $sub->formdata->execution_date > 0 ? 'Yes' : 'No' }}
|
||||
</td>
|
||||
|
|
@ -370,9 +384,27 @@
|
|||
$('#execution-id').val(selected['id'])
|
||||
$('#form-wrapper').hide()
|
||||
$('#execution-form-wrapper').show()
|
||||
$('#table-wrapper').hide()
|
||||
$('#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] != '')
|
||||
$('#execution-' + k).val(selected[k]);
|
||||
}
|
||||
$('#execution-id').val(selected['id'])
|
||||
$('#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-budecort_rx,#execution-duolin_rx,#execution-levolin_rx,#execution-business_generated_for_budecort_rx,#execution-business_generated_for_duolin_rx,#execution-business_generated_for_levolin_rx').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-budecort_rx,#execution-duolin_rx,#execution-levolin_rx,#execution-business_generated_for_budecort_rx,#execution-business_generated_for_duolin_rx,#execution-business_generated_for_levolin_rx').attr('required', false);
|
||||
|
||||
})
|
||||
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
$('#report-form').on('submit', function(event) {
|
||||
event.preventDefault();
|
||||
|
|
@ -467,6 +499,9 @@
|
|||
// });
|
||||
|
||||
const executionDateField = document.getElementById('execution-execution_date');
|
||||
executionDateField.setAttribute('max', today);
|
||||
|
||||
|
||||
executionDateField.addEventListener('change', function() {
|
||||
// let selectedDate = this.value;
|
||||
// if (selectedDate !=='2024-01-08' && selectedDate !=='2024-01-22') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue