Compare commits

..

No commits in common. "49053e37d8fe1e808f1d4f89c97ba5df9ac3a3c3" and "43d812217d6d699fba2e4eb02b76e5a6647d8907" have entirely different histories.

1 changed files with 1 additions and 15 deletions

View File

@ -65,15 +65,7 @@
@endphp
<tr>
<td>
@if(isset($sub->formdata->execution_done) && $sub->formdata->execution_done == 'yes') Executed
@else
<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>
@endif
<button type="button" class="btn btn-xs btn-info edit-btn" plan_details="{{json_encode($sub->formdata)}}"><i class="mdi mdi-pencil"></i> Edit</button>
</td>
<td>{{(isset($sub->formdata->record_date) && $sub->formdata->record_date > 0) ?'Yes':'No' }}</td>
<td>{{$sub->formdata->plan_date}}</td>
@ -151,7 +143,6 @@
<input type="hidden" name="form_id" value="{{$form_id}}">
@csrf
<input type="hidden" name="id" value="" id="execution-id">
<input type="hidden" name="execution_done" value="yes">
@foreach($questions as $question)
<div class="col-md-12 mb-2">
<label for="execution-{{$question->code}}" class="form-label">{{$question->question}} {!!$question->required == 'yes' ? '<span class="text-danger">*</span>':''!!} </label>
@ -254,11 +245,6 @@
})
$('.edit-btn').click(function(){
$('#execution-plan_date').attr('readonly',true);
let contacts = document.getElementById('execution-type_of_meeting');
contacts.addEventListener('mousedown', function(e) {
e.preventDefault();
})
let selected = JSON.parse($(this).attr('plan_details'))
for(let k of Object.keys(selected)) {
if(selected[k] != '')