Merge pull request #2448 from CihanSenturk/select-group-placeholder

Select placeholder made dynamic
This commit is contained in:
Cüneyt Şentürk 2022-06-10 19:35:19 +03:00 committed by GitHub
commit 192364a97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 10 deletions

View File

@ -215,6 +215,10 @@ abstract class Form extends Component
$label = $this->name; $label = $this->name;
} }
if ($this->type == 'select') {
return trans('general.form.select.field', ['field' => $label]);
}
return trans('general.form.enter', ['field' => $label]); return trans('general.form.enter', ['field' => $label]);
} }

View File

@ -33,11 +33,7 @@
title="{!! $label !!}" title="{!! $label !!}"
@if (isset($attributes['placeholder'])) placeholder="{{ $placeholder }}"
placeholder="{{ $attributes['placeholder'] }}"
@else
placeholder="{{ trans('general.form.select.field', ['field' => $label]) }}"
@endif
name="{{ $name }}" name="{{ $name }}"

View File

@ -33,11 +33,7 @@
title="{{ $label }}" title="{{ $label }}"
@endif @endif
@if (isset($attributes['placeholder'])) placeholder="{{ $placeholder }}"
placeholder="{{ $attributes['placeholder'] }}"
@else
placeholder="{{ trans('general.form.select.field', ['field' => $label]) }}"
@endif
name="{{ $name }}" name="{{ $name }}"