Team 4 (ARDC Camps)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m52s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m52s
Details
This commit is contained in:
parent
e00e3b802f
commit
97341dfe37
|
|
@ -83,7 +83,7 @@
|
||||||
<th>Rxn of Furamist</th>
|
<th>Rxn of Furamist</th>
|
||||||
<th>Rxn of Furamist AZ</th>
|
<th>Rxn of Furamist AZ</th>
|
||||||
<th>Total Rxns</th>
|
<th>Total Rxns</th>
|
||||||
|
<th>Upload Acrylic Poster Image</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -188,8 +188,9 @@
|
||||||
</td>
|
</td>
|
||||||
<td>{{isset($sub->formdata->rxn_of_furamist_az) ? $sub->formdata->rxn_of_furamist_az: ''}}
|
<td>{{isset($sub->formdata->rxn_of_furamist_az) ? $sub->formdata->rxn_of_furamist_az: ''}}
|
||||||
</td>
|
</td>
|
||||||
<td>{{isset($sub->formdata->total_rxns) ? $sub->formdata->total_rxns: ''}}
|
<td>{{isset($sub->formdata->total_rxns) ? $sub->formdata->total_rxns: ''}}</td>
|
||||||
</td>
|
<td>{{isset($sub->formdata->file_upload) ? $sub->formdata->file_upload: ''}}</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
@ -207,7 +208,7 @@
|
||||||
<input type="hidden" name="id" value="{{ $id }}">
|
<input type="hidden" name="id" value="{{ $id }}">
|
||||||
@endif
|
@endif
|
||||||
@foreach ($questions as $question)
|
@foreach ($questions as $question)
|
||||||
@if (in_array($question->code, ['execution_date','executed_as_per_plan' ,'revised_start_time','patient_screened','patients_diagnosed','rxn_of_montair_lc_adult','rxn_of_montair_lc_kid_tab','rxn_of_montair_lc_kid_syrup','rxn_of_furamist','rxn_of_furamist_az','total_rxns']))
|
@if (in_array($question->code, ['execution_date','executed_as_per_plan' ,'revised_start_time','patient_screened','patients_diagnosed','rxn_of_montair_lc_adult','rxn_of_montair_lc_kid_tab','rxn_of_montair_lc_kid_syrup','rxn_of_furamist','rxn_of_furamist_az','total_rxns','file_upload']))
|
||||||
@continue
|
@continue
|
||||||
@endif
|
@endif
|
||||||
<div class="col-md-12 mb-2">
|
<div class="col-md-12 mb-2">
|
||||||
|
|
@ -672,6 +673,32 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#execution-form').append('<input type="hidden" name="execution_done" value="yes">');
|
$('#execution-form').append('<input type="hidden" name="execution_done" value="yes">');
|
||||||
|
|
||||||
|
$('#execution-file_upload').on('change', function () {
|
||||||
|
let file = this.files[0];
|
||||||
|
|
||||||
|
if (file) {
|
||||||
|
let allowedTypes = ['image/png', 'image/jpg', 'image/jpeg'];
|
||||||
|
let maxSize = 10 * 1024 * 1024; // 10 MB
|
||||||
|
|
||||||
|
// Type validation
|
||||||
|
if (!allowedTypes.includes(file.type)) {
|
||||||
|
alert('Only PNG, JPG, and JPEG files are allowed.');
|
||||||
|
$(this).val('');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Size validation
|
||||||
|
if (file.size > maxSize) {
|
||||||
|
alert('File size should not exceed 10 MB.');
|
||||||
|
$(this).val('');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue