Arise Form Changes

This commit is contained in:
zeeshan 2026-06-17 16:09:39 +05:30
parent aa64f54f0e
commit 7b98181a80
4 changed files with 16 additions and 7 deletions

View File

@ -5,6 +5,7 @@
@include('layouts.shared/title-meta', ['title' => 'Form'])
@include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? ''])
<link href="{{ asset('assets/libs/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/libs/select2/select2.min.css') }}" rel="stylesheet" type="text/css" />
</head>
<div id="pageloader">
<img src="/images/loader-large.gif" alt="processing..." />
@ -207,7 +208,8 @@
@break
@case('dropdown')
<select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
<select class="form-control"{!!($question->code
== 'contact_id')?'data-toggle="select2"':'' !!} id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
<option value=""> -- Select -- </option>
@foreach ($question->options as $option)
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type != 'Chemist' )
@ -394,8 +396,10 @@
</style>
@include('layouts.shared/footer-script')
<script src="{{ asset('assets/libs/sweetalert2/sweetalert2.min.js') }}"></script>
<script src="{{ asset('assets/libs/select2/select2.min.js') }}"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('[data-toggle="select2"]').select2();
$('#form-wrapper').hide()
$('#execution-form-wrapper').hide()
@ -428,7 +432,7 @@
e.preventDefault();
})
$('#execution-msl_code,#execution-speciality,execution-plan_date').prop('readonly',true);
$('#execution-msl_code,#execution-speciality,#execution-plan_date').prop('readonly',true);
let selected = JSON.parse($(this).attr('plan_details'));
console.log("Plan Detail : ", selected);

View File

@ -65,7 +65,7 @@
<th>Execution Done</th>
<th>Execution Date</th>
<th>Camp Execution Date</th>
{{-- <th>Camp Execution Date</th> --}}
<th>Type of meet</th>
<th>Other type of meet</th>
<th>Location</th>
@ -96,8 +96,9 @@
<td>{{ $sub->formdata->execution_date }}</td>
<td>{{ isset($sub->formdata->type_of_meet) ? $sub->formdata->type_of_meet : '' }}</td>
<td>{{ isset($sub->formdata->location) ? $sub->formdata->location : '' }}</td>
<td>{{ isset($sub->formdata->other_type_of_meet) ? $sub->formdata->other_type_of_meet : '' }}</td>
<td>{{ isset($sub->formdata->location) ? $sub->formdata->location : '' }}</td>
{{-- <td>{{ isset($sub->formdata->module_type) ? $sub->formdata->module_type : '' }}</td> --}}
<td>{{ isset($sub->formdata->meeting_done) ? $sub->formdata->meeting_done : '' }}</td>

View File

@ -5,6 +5,7 @@
@include('layouts.shared/title-meta', ['title' => 'Form'])
@include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? ''])
<link href="{{ asset('assets/libs/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/libs/select2/select2.min.css') }}" rel="stylesheet" type="text/css" />
</head>
<div id="pageloader">
<img src="/images/loader-large.gif" alt="processing..." />
@ -195,7 +196,8 @@
@break
@case('dropdown')
<select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
<select class="form-control" {!!($question->code
== 'contact_id')?'data-toggle="select2"':'' !!} id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
<option value=""> -- Select -- </option>
@foreach ($question->options as $option)
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type != 'Chemist' )
@ -382,8 +384,10 @@
</style>
@include('layouts.shared/footer-script')
<script src="{{ asset('assets/libs/sweetalert2/sweetalert2.min.js') }}"></script>
<script src="{{ asset('assets/libs/select2/select2.min.js') }}"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('[data-toggle="select2"]').select2();
$('#form-wrapper').hide()
$('#execution-form-wrapper').hide()
@ -416,7 +420,7 @@
e.preventDefault();
})
$('#execution-msl_code,#execution-speciality,execution-plan_date').prop('readonly',true);
$('#execution-msl_code,#execution-speciality,#execution-plan_date').prop('readonly',true);
let selected = JSON.parse($(this).attr('plan_details'));
console.log("Plan Detail : ", selected);

View File

@ -65,7 +65,7 @@
<th>Execution Done</th>
<th>Execution Date</th>
<th>Camp Execution Date</th>
<th>Type of meet</th>
<th>Other type of meet</th>
<th>Location</th>