select group placeholder made dynamic
This commit is contained in:
parent
5890a99bf9
commit
12d3a926d0
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 }}"
|
||||||
|
|
||||||
|
@ -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 }}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user