Team 3 (HN Camp Arise
Specific Folder FTP Upload / ftp-deploy (push) Successful in 38s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 38s
Details
This commit is contained in:
parent
8f127ae599
commit
8e737f1bfe
|
|
@ -82,10 +82,25 @@
|
||||||
@endphp
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<button type="button"
|
@if(isset($sub->formdata->execution_done) && $sub->formdata->execution_done == 'yes') Execution Done
|
||||||
class="btn btn-xs btn-info edit-btn"
|
|
||||||
plan_details="{{ json_encode($sub->formdata) }}"><i
|
@elseif(isset($sub->workflow_status) && $sub->workflow_status == 'approved')
|
||||||
class="mdi mdi-pencil"></i> Edit</button>
|
<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>
|
||||||
<td>{{ isset($sub->formdata->execution_date) && $sub->formdata->execution_date > 0 ? 'Yes' : 'No' }}
|
<td>{{ isset($sub->formdata->execution_date) && $sub->formdata->execution_date > 0 ? 'Yes' : 'No' }}
|
||||||
</td>
|
</td>
|
||||||
|
|
@ -345,6 +360,21 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
$('.edit-btn').click(function() {
|
$('.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'))
|
let selected = JSON.parse($(this).attr('plan_details'))
|
||||||
for (let k of Object.keys(selected)) {
|
for (let k of Object.keys(selected)) {
|
||||||
if (selected[k] != '')
|
if (selected[k] != '')
|
||||||
|
|
@ -354,6 +384,9 @@
|
||||||
$('#form-wrapper').hide()
|
$('#form-wrapper').hide()
|
||||||
$('#execution-form-wrapper').show()
|
$('#execution-form-wrapper').show()
|
||||||
$('#table-wrapper').hide()
|
$('#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($) {
|
jQuery(document).ready(function($) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue