Team 3 Form changes
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m23s Details

This commit is contained in:
zeeshan 2026-08-06 15:38:58 +05:30
parent f352499ad2
commit 38d8e25e57
3 changed files with 15 additions and 13 deletions

View File

@ -77,8 +77,8 @@
<button type="button" <button type="button"
class="btn btn-xs btn-info edit-btn" class="btn btn-xs btn-info edit-btn"
plan_details="{{ json_encode($sub->formdata) }}"><i plan_details="{{ json_encode($sub->formdata) }}"><i
class="mdi mdi-pencil"></i> Edit</button> class="mdi mdi-pencil"></i> Execute</button>
<button type="button" class="btn btn-danger btn-xs mt-1 delete-btn" data-form-id="{{ $sub->formdata->form_id }}" data-id="{{ $sub->id }}">Delete</button> <button type="button" class="btn btn-danger btn-xs delete-btn" data-form-id="{{ $sub->formdata->form_id }}" data-id="{{ $sub->id }}">Delete</button>
</td> </td>
<td>{{ isset($sub->formdata->record_date) && $sub->formdata->record_date > 0 ? 'Yes' : 'No' }} <td>{{ isset($sub->formdata->record_date) && $sub->formdata->record_date > 0 ? 'Yes' : 'No' }}
</td> </td>
@ -104,7 +104,7 @@
<input type="hidden" name="form_id" value="{{ $form_id }}"> <input type="hidden" name="form_id" value="{{ $form_id }}">
@csrf @csrf
@foreach ($questions as $question) @foreach ($questions as $question)
@if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality'])) @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules']))
@continue @continue
@endif @endif
<div class="col-md-12 mb-2"> <div class="col-md-12 mb-2">
@ -364,6 +364,7 @@
$('#form-wrapper').hide() $('#form-wrapper').hide()
$('#execution-form-wrapper').show() $('#execution-form-wrapper').show()
$('#table-wrapper').hide() $('#table-wrapper').hide()
$('#execution-no_of_patients_on_duolin').attr('max',10);
}) })
jQuery(document).ready(function($) { jQuery(document).ready(function($) {
@ -443,15 +444,15 @@
$('.edit-btn').click(function() { $('.edit-btn').click(function() {
var executionexeField = document.getElementById('execution-record_date'); var executionexeField = document.getElementById('execution-record_date');
executionexeField.setAttribute('min', executionDateField.value); executionexeField.setAttribute('max', today);
}); });
executionDateField.addEventListener('change', function() { /* executionDateField.addEventListener('change', function() {
console.log('gg'); console.log('gg');
var executionexeField = document.getElementById('execution-record_date'); var executionexeField = document.getElementById('execution-record_date');
executionexeField.setAttribute('min', executionDateField.value); executionexeField.setAttribute('min', executionDateField.value);
}); });
*/

View File

@ -187,7 +187,7 @@
<input type="hidden" name="planning" value="yes"> <input type="hidden" name="planning" value="yes">
@csrf @csrf
@foreach ($questions as $question) @foreach ($questions as $question)
@if (in_array($question->code, ['record_date','attendence','new_continue','lta_regional','physical_virtual','yearly_honorarium','venue_av_food_etc_cost','total_eas_required'])) @if (in_array($question->code, ['record_date','attendence','new_continue','lta_regional','physical_virtual','yearly_honorarium','venue_av_food_etc_cost','total_eas_required','no_of_patients_on_duolin','no_of_units_duolin_respules']))
@continue @continue
@endif @endif
<div class="col-md-12 mb-2"> <div class="col-md-12 mb-2">
@ -411,6 +411,7 @@
$('#execution-form-wrapper').show() $('#execution-form-wrapper').show()
$('#table-wrapper').hide() $('#table-wrapper').hide()
$('#execution-attendence').attr({min:"1"}); $('#execution-attendence').attr({min:"1"});
$('#execution-no_of_patients_on_duolin').attr('max',10);
}) })
@ -533,14 +534,14 @@
$('.edit-btn').click(function() { $('.edit-btn').click(function() {
var executionexeField = document.getElementById('execution-record_date'); var executionexeField = document.getElementById('execution-record_date');
executionexeField.setAttribute('min', executionDateField.value); executionexeField.setAttribute('max', today);
}); });
executionDateField.addEventListener('change', function() { /* executionDateField.addEventListener('change', function() {
console.log('gg'); console.log('gg');
var executionexeField = document.getElementById('execution-record_date'); var executionexeField = document.getElementById('execution-record_date');
executionexeField.setAttribute('min', executionDateField.value); executionexeField.setAttribute('min', executionDateField.value);
}); }); */

View File

@ -347,14 +347,14 @@
$('.edit-btn').click(function() { $('.edit-btn').click(function() {
var executionexeField = document.getElementById('execution-record_date'); var executionexeField = document.getElementById('execution-record_date');
executionexeField.setAttribute('min', executionDateField.value); executionexeField.setAttribute('max', today);
}); });
executionDateField.addEventListener('change', function() { /* executionDateField.addEventListener('change', function() {
console.log('gg'); console.log('gg');
var executionexeField = document.getElementById('execution-record_date'); var executionexeField = document.getElementById('execution-record_date');
executionexeField.setAttribute('min', executionDateField.value); executionexeField.setAttribute('min', executionDateField.value);
}); }); */
}); });
</script> </script>