Arise Form Changes
This commit is contained in:
parent
aa64f54f0e
commit
7b98181a80
|
|
@ -5,6 +5,7 @@
|
||||||
@include('layouts.shared/title-meta', ['title' => 'Form'])
|
@include('layouts.shared/title-meta', ['title' => 'Form'])
|
||||||
@include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? ''])
|
@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/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="{{ asset('assets/libs/select2/select2.min.css') }}" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<div id="pageloader">
|
<div id="pageloader">
|
||||||
<img src="/images/loader-large.gif" alt="processing..." />
|
<img src="/images/loader-large.gif" alt="processing..." />
|
||||||
|
|
@ -207,7 +208,8 @@
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('dropdown')
|
@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>
|
<option value=""> -- Select -- </option>
|
||||||
@foreach ($question->options as $option)
|
@foreach ($question->options as $option)
|
||||||
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type != 'Chemist' )
|
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type != 'Chemist' )
|
||||||
|
|
@ -394,8 +396,10 @@
|
||||||
</style>
|
</style>
|
||||||
@include('layouts.shared/footer-script')
|
@include('layouts.shared/footer-script')
|
||||||
<script src="{{ asset('assets/libs/sweetalert2/sweetalert2.min.js') }}"></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">
|
<script type="text/javascript">
|
||||||
jQuery(document).ready(function($) {
|
jQuery(document).ready(function($) {
|
||||||
|
$('[data-toggle="select2"]').select2();
|
||||||
$('#form-wrapper').hide()
|
$('#form-wrapper').hide()
|
||||||
$('#execution-form-wrapper').hide()
|
$('#execution-form-wrapper').hide()
|
||||||
|
|
||||||
|
|
@ -428,7 +432,7 @@
|
||||||
e.preventDefault();
|
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'));
|
let selected = JSON.parse($(this).attr('plan_details'));
|
||||||
console.log("Plan Detail : ", selected);
|
console.log("Plan Detail : ", selected);
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<th>Execution Done</th>
|
<th>Execution Done</th>
|
||||||
<th>Execution Date</th>
|
<th>Execution Date</th>
|
||||||
|
|
||||||
<th>Camp Execution Date</th>
|
{{-- <th>Camp Execution Date</th> --}}
|
||||||
<th>Type of meet</th>
|
<th>Type of meet</th>
|
||||||
<th>Other type of meet</th>
|
<th>Other type of meet</th>
|
||||||
<th>Location</th>
|
<th>Location</th>
|
||||||
|
|
@ -96,8 +96,9 @@
|
||||||
<td>{{ $sub->formdata->execution_date }}</td>
|
<td>{{ $sub->formdata->execution_date }}</td>
|
||||||
|
|
||||||
<td>{{ isset($sub->formdata->type_of_meet) ? $sub->formdata->type_of_meet : '' }}</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->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->module_type) ? $sub->formdata->module_type : '' }}</td> --}}
|
||||||
<td>{{ isset($sub->formdata->meeting_done) ? $sub->formdata->meeting_done : '' }}</td>
|
<td>{{ isset($sub->formdata->meeting_done) ? $sub->formdata->meeting_done : '' }}</td>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
@include('layouts.shared/title-meta', ['title' => 'Form'])
|
@include('layouts.shared/title-meta', ['title' => 'Form'])
|
||||||
@include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? ''])
|
@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/sweetalert2/sweetalert2.min.css') }}" rel="stylesheet" type="text/css" />
|
||||||
|
<link href="{{ asset('assets/libs/select2/select2.min.css') }}" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
<div id="pageloader">
|
<div id="pageloader">
|
||||||
<img src="/images/loader-large.gif" alt="processing..." />
|
<img src="/images/loader-large.gif" alt="processing..." />
|
||||||
|
|
@ -195,7 +196,8 @@
|
||||||
@break
|
@break
|
||||||
|
|
||||||
@case('dropdown')
|
@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>
|
<option value=""> -- Select -- </option>
|
||||||
@foreach ($question->options as $option)
|
@foreach ($question->options as $option)
|
||||||
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type != 'Chemist' )
|
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type != 'Chemist' )
|
||||||
|
|
@ -382,8 +384,10 @@
|
||||||
</style>
|
</style>
|
||||||
@include('layouts.shared/footer-script')
|
@include('layouts.shared/footer-script')
|
||||||
<script src="{{ asset('assets/libs/sweetalert2/sweetalert2.min.js') }}"></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">
|
<script type="text/javascript">
|
||||||
jQuery(document).ready(function($) {
|
jQuery(document).ready(function($) {
|
||||||
|
$('[data-toggle="select2"]').select2();
|
||||||
$('#form-wrapper').hide()
|
$('#form-wrapper').hide()
|
||||||
$('#execution-form-wrapper').hide()
|
$('#execution-form-wrapper').hide()
|
||||||
|
|
||||||
|
|
@ -416,7 +420,7 @@
|
||||||
e.preventDefault();
|
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'));
|
let selected = JSON.parse($(this).attr('plan_details'));
|
||||||
console.log("Plan Detail : ", selected);
|
console.log("Plan Detail : ", selected);
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
<th>Execution Done</th>
|
<th>Execution Done</th>
|
||||||
<th>Execution Date</th>
|
<th>Execution Date</th>
|
||||||
|
|
||||||
<th>Camp Execution Date</th>
|
|
||||||
<th>Type of meet</th>
|
<th>Type of meet</th>
|
||||||
<th>Other type of meet</th>
|
<th>Other type of meet</th>
|
||||||
<th>Location</th>
|
<th>Location</th>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue