select group placeholder made dynamic

This commit is contained in:
Cihan Şentürk 2022-06-10 18:59:17 +03:00 committed by GitHub
parent 5890a99bf9
commit 12d3a926d0
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 }}"