Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perbaikan select epidemi penyakit #414

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"symfony/thanks": true
}
},
"extra": {
"laravel": {
Expand Down
6 changes: 5 additions & 1 deletion resources/views/data/epidemi_penyakit/form_edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
<div class="col-md-8">
<select class="form-control" id="penyakit_id" name="penyakit_id">
@foreach($jenis_penyakit as $key=>$penyakit)
<option value="{{ $key }}">{{$penyakit}}</option>
@if($epidemi->penyakit_id == $key)
<option selected value="{{ $key }}">{{ $penyakit }}</option>
@else
<option value="{{ $key }}">{{ $penyakit }}</option>
@endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gunakan @selected, cek komentar issue apa yg disarankan #400 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mas @andifahruddinakas sudah dipush kembali, tolong direview apa sudah sesuai

@endforeach
</select>
</div>
Expand Down