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

Conversation

devrakapriyo
Copy link
Contributor

Comment on lines 14 to 18
@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

@@ -11,7 +11,7 @@
<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>
<option value="{{ $key }}" {{ old('penyakit_id', $epidemi->penyakit_id) == $key ? 'selected' : null}}>{{ $penyakit }}</option>
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()

@andifahruddinakas
Copy link
Member

Mas @devrakapriyo, silahkan diperbaiki PR ini sesuai yang diharapkan.

@devrakapriyo
Copy link
Contributor Author

Mas @devrakapriyo, silahkan diperbaiki PR ini sesuai yang diharapkan.

Pagi mas @andifahruddinakas tolong direview lagi, sudah ditambahkan blade @selected
Terima kasih

@andifahruddinakas
Copy link
Member

Pak @eddieridwan, ini sudah ok.

@andifahruddinakas
Copy link
Member

@all-contributors please add @devrakapriyo for code

@allcontributors
Copy link
Contributor

@andifahruddinakas

I've put up a pull request to add @devrakapriyo! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants